SIP Invite with sdp setted to zero

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

 



Hi all,

I need, dont ask why, create invite with sdp setted to zero, something like
this:
m=audio 0

but when I try to set pjsua_call_settings vid_cnt and audio_cnt to zero its
failed, besause it use one of this line to create line origin.

Than I try to modify sdp in on_call_sdp_created:
1.  pjsua_call_settings audio_cnt = 1
2.        pjmedia_sdp_media *p_sdp_media = sdp->media[i];

           // memset(p_sdp_media, 0, sizeof(pjmedia_sdp_media)); //if
uncoment this line will be assert return


            p_sdp_media->desc.transport = pj_strdup3(pool, "RTP/AVP");

            p_sdp_media->desc.fmt_count = 1;


            p_sdp_media->desc.media  = pj_strdup3(pool, "audio");

            p_sdp_media->desc.fmt[0] = pj_strdup3(pool, "0");


but it doesnt work too.


Thanks for any advice.


Regards,

R. Savchenko.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130916/2543e90a/attachment-0001.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