[Freeswitch-users] set ptime and handle "a=sendonly"

Dmitriy Shumaev pm_zefman_r at mail.ru
Thu Jun 5 14:21:17 MSD 2014


 Hi.
1.
I'm trying to send 40 ms of speech in each RTP frame  when working with a specific/ certain   gateway .
By means of modifying [var.xml]:
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMA at 8000h@40i,PCMU at 8000h@40i"/>
<X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMA at 8000h@40i,PCMU at 8000h@40i"/>
, it is possible to call FROM this gateway (gateway does not send ptime in SDP).
But, when the call comes from the other client with ptime set to 20 in SDP, outgoing INVITE messange TO this gateway contains ptime set to 20.
How can I set ptime to 40 ( it's desirable to do so only for one specific gateway ).

2.
I'm using FS for PTT (Push-To_Talk) services.
2.1
When FS gets incoming INVITE / reINVITE with "a=sendonly" in SDP and responde with "a=recvonly" it MUST *NOT* send RTP packets to UAC, but FS does so.
So, how can I fix this?
2.2
To start talking FS sends reINVITE (I use "uuid_media_reneg __uuid" command for this).
I need to add "a=sendonly" to this reINVITE.
How it can be done?


With best regards, Shumaev D.A., programmer @ KBR Ltd.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140605/a0c6ab4c/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list