HELP!! Voice Connection During A SIP Call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Your code looks proper. But since you mentioned that you can't hear audio
from the remote, don't forget to also do the same thing in the other side.
And to narrow down the problem, I would suggest you use pjsua application on
the other side since we know that it works, and use pjsua's "dq" command to
get the call statistics, as explained in the audio troubleshooting wiki.

Cheers
 Benny


On Tue, Jul 29, 2008 at 9:34 AM, Joseph Maiquez <josephmaiquez at yahoo.com>wrote:

> I have the pjsua_conf_connect()
>
> /* Callback called by the library when call's media state has changed */
> void on_call_media_state(pjsua_call_id call_id)
> {
>     pjsua_call_info ci;
>
>     pjsua_call_get_info(call_id, &ci);
>
>     if (ci.media_status == PJSUA_CALL_MEDIA_ACTIVE) {
>     // When media is active, connect call to sound device.
>     pjsua_conf_connect(ci.conf_slot, 0);
>     pjsua_conf_connect(0, ci.conf_slot);
>     }
> }
>
> I tried running in debug mode and try to catch the value by doing this
>
> void on_call_media_state(pjsua_call_id call_id)
> {
>     pjsua_call_info ci;
>
>     pjsua_call_get_info(call_id, &ci);
>
>     if (ci.media_status == PJSUA_CALL_MEDIA_ACTIVE) {
>     // When media is active, connect call to sound device.
>     int succes=pjsua_conf_connect(ci.conf_slot, 0);
>     int ok=pjsua_conf_connect(0, ci.conf_slot);
>     }
> }
>
> and watch the value of success and ok, the value is 0 which means the
> function call returns success.
>
> BR,
>
> Joseph
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080729/457d1ccc/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux