Hi,
I am trying to modify audio gateway codes to comply the handsfree
profile. So I move some audio gateway functions into a application and
try to run it in application level. In far, the acl connection seems to
be ok, but the establishment of sco link fails. After I call
OpenAudioChannel, the btscosnd driver try to establish a sco link by
calling the InitSco (). In the debug output, the part of reading the
device voice setting succeed, but the part of writing device voice
setting failed. The error is BT_ERROR_COMMAND_DISALLOWED ( in
StatusToError (), it is translated to system error
ERROR_CALL_NOT_IMPLEMENTED). If I skip the voice setting writting, it
fails in EstablishScoConnection. The debug output is
BTSCOSND:: [ERROR] "Call UCT_CONNECT failed 1450"
BTSCOSND:: [ERROR] "EstablishScoConnection FAILED 1450"
Does anyone knows that if the voice setting writting must be executed?
What is the possible reason of the fail of the sco link establishment?
Any suggestions would be appreciated.