Can make call

ST
Shamun toha md
Tue, Aug 3, 2010 8:53 PM

Dear Sir,

How can i fix it?

Code:

     pj_str_t uri = pj_str(argv[1]);
     status = pjsua_call_make_call(acc_id, &uri, 0, NULL, NULL, NULL);
     if (status != PJ_SUCCESS) error_exit("Error making call", status);

When i make a call

[sun@example mysip]$ ./myapp sip:5000@ipaddress

I get error:

--end msg--
22:49:44.192    pjsua_acc.c  Registration sent
22:49:44.192  pjsua_media.c  Error retrieving default audio device
parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV)
[status=420006]
22:49:44.192            APP  Error making call: Unable to find default
audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006]
22:49:44.202  pjsua_core.c  Shutting down...
22:49:44.202  pjsua_pres.c  Shutting down presence..
22:49:44.202  pjsua_media.c  Shutting down media..
22:49:44.667      pa_dev.c  PortAudio sound library shutting down..
22:49:44.667      sip_reg.c  Unable to send request, regc has another
transaction pending
22:49:44.667    pjsua_acc.c  Unable to create/send REGISTER: Object is busy
(PJSIP_EBUSY) [status=171001]

Thank you
Regards

Dear Sir, How can i fix it? Code: ===== pj_str_t uri = pj_str(argv[1]); status = pjsua_call_make_call(acc_id, &uri, 0, NULL, NULL, NULL); if (status != PJ_SUCCESS) error_exit("Error making call", status); When i make a call ================== [sun@example mysip]$ ./myapp sip:5000@ipaddress I get error: ========== --end msg-- 22:49:44.192 pjsua_acc.c Registration sent 22:49:44.192 pjsua_media.c Error retrieving default audio device parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006] 22:49:44.192 APP Error making call: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006] 22:49:44.202 pjsua_core.c Shutting down... 22:49:44.202 pjsua_pres.c Shutting down presence.. 22:49:44.202 pjsua_media.c Shutting down media.. 22:49:44.667 pa_dev.c PortAudio sound library shutting down.. 22:49:44.667 sip_reg.c Unable to send request, regc has another transaction pending 22:49:44.667 pjsua_acc.c Unable to create/send REGISTER: Object is busy (PJSIP_EBUSY) [status=171001] Thank you Regards
PL
Peter Lukac
Wed, Aug 4, 2010 9:59 AM

Hello
As you can see from log, pjsua can't find audio device..if you sound device is
not present set null sound device or set right ID for sound device.

Dear Sir,

How can i fix it?

Code:

      pj_str_t uri = pj_str(argv[1]);
      status = pjsua_call_make_call(acc_id, &uri, 0, NULL, NULL, NULL);
      if (status != PJ_SUCCESS) error_exit("Error making call", status);

When i make a call

[sun@example mysip]$ ./myapp sip:5000@ipaddress

I get error:

--end msg--
22:49:44.192    pjsua_acc.c  Registration sent
22:49:44.192  pjsua_media.c  Error retrieving default audio device
parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV)
[status=420006]
22:49:44.192            APP  Error making call: Unable to find default
audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006]
22:49:44.202  pjsua_core.c  Shutting down...
22:49:44.202  pjsua_pres.c  Shutting down presence..
22:49:44.202  pjsua_media.c  Shutting down media..
22:49:44.667      pa_dev.c  PortAudio sound library shutting down..
22:49:44.667      sip_reg.c  Unable to send request, regc has another
transaction pending
22:49:44.667    pjsua_acc.c  Unable to create/send REGISTER: Object is
busy (PJSIP_EBUSY) [status=171001]

Thank you
Regards

Hello As you can see from log, pjsua can't find audio device..if you sound device is not present set null sound device or set right ID for sound device. > Dear Sir, > > How can i fix it? > > Code: > ===== > pj_str_t uri = pj_str(argv[1]); > status = pjsua_call_make_call(acc_id, &uri, 0, NULL, NULL, NULL); > if (status != PJ_SUCCESS) error_exit("Error making call", status); > > When i make a call > ================== > [sun@example mysip]$ ./myapp sip:5000@ipaddress > > I get error: > ========== > --end msg-- > 22:49:44.192 pjsua_acc.c Registration sent > 22:49:44.192 pjsua_media.c Error retrieving default audio device > parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) > [status=420006] > 22:49:44.192 APP Error making call: Unable to find default > audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006] > 22:49:44.202 pjsua_core.c Shutting down... > 22:49:44.202 pjsua_pres.c Shutting down presence.. > 22:49:44.202 pjsua_media.c Shutting down media.. > 22:49:44.667 pa_dev.c PortAudio sound library shutting down.. > 22:49:44.667 sip_reg.c Unable to send request, regc has another > transaction pending > 22:49:44.667 pjsua_acc.c Unable to create/send REGISTER: Object is > busy (PJSIP_EBUSY) [status=171001] > > > Thank you > Regards