setting switch_r_sdp with outbound event socket
hello i try to moditfy the sip sdp to get some user agent working, but setting switch_r_sdp doesn't work the way i try it on the loopback interface i do see the command of setting the variable like this sendmsg call-command: execute execute-app-name: set execute-app-arg: <![CDATA[switch_r_sdp=v=0 o=root 713636917 713636917 IN IP4 x.x.x.x s=call c=IN IP4 x.x.x.x t=0 0 m=audio 17300 RTP/AVP 0 9 99 3 18 4 101 a=rtpmap:0 pcmu/8000 a=rtpmap:9 g722/8000 a=rtpmap:3 gsm/8000 a=rtpmap:18 g729/8000 a=fmtp:18 annexb=no a=rtpmap:4 g723/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 ]]> (btw this example sdp is ok) but on the console i get the error [ERR] switch_ivr.c:469 Invalid Command! and the b-leg doesn't get the modified sdp. what could i get wrong here? br -- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
Why are you trying to put it in the CDATA? You know you only have to do that if you're trying to do that in the XML dialplan. /b On Aug 31, 2010, at 5:28 PM, Christian Löschenkohl wrote:
hello
i try to moditfy the sip sdp to get some user agent working, but setting switch_r_sdp doesn't work the way i try it
on the loopback interface i do see the command of setting the variable like this
sendmsg call-command: execute execute-app-name: set execute-app-arg: <![CDATA[switch_r_sdp=v=0 o=root 713636917 713636917 IN IP4 x.x.x.x s=call c=IN IP4 x.x.x.x t=0 0 m=audio 17300 RTP/AVP 0 9 99 3 18 4 101 a=rtpmap:0 pcmu/8000 a=rtpmap:9 g722/8000 a=rtpmap:3 gsm/8000 a=rtpmap:18 g729/8000 a=fmtp:18 annexb=no a=rtpmap:4 g723/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 ]]>
(btw this example sdp is ok)
but on the console i get the error [ERR] switch_ivr.c:469 Invalid Command! and the b-leg doesn't get the modified sdp.
what could i get wrong here?
br
thank you for your reply i read it here http://wiki.freeswitch.org/wiki/Codec_negotiation#Rewriting_SDP and it seemed logic to me (which isn't true as i seems). of course i tried it without CDATA - then the command on the loopback looks like this sendmsg call-command: execute execute-app-name: set execute-app-arg: switch_r_sdp=v=0 o=root 1051875459 1051875459 IN IP4 x.x.x.x s=call c=IN IP4 x.x.x.x t=0 0 m=audio 19156 RTP/AVP 0 9 99 3 18 4 101 a=rtpmap:0 pcmu/8000 a=rtpmap:9 g722/8000 a=rtpmap:3 gsm/8000 a=rtpmap:18 g729/8000 a=fmtp:18 annexb=no a=rtpmap:4 g723/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 and i also do get [ERR] switch_ivr.c:469 Invalid Command! these lines print out the error (switch_ivr.c:469) if (zstr(cmd)) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Invalid Command!\n"); return SWITCH_STATUS_FALSE; } br On 2010-09-01 00:34, Brian West wrote:
Why are you trying to put it in the CDATA? You know you only have to do that if you're trying to do that in the XML dialplan.
/b
On Aug 31, 2010, at 5:28 PM, Christian Löschenkohl wrote:
hello
i try to moditfy the sip sdp to get some user agent working, but setting switch_r_sdp doesn't work the way i try it
on the loopback interface i do see the command of setting the variable like this
sendmsg call-command: execute execute-app-name: set execute-app-arg:<![CDATA[switch_r_sdp=v=0 o=root 713636917 713636917 IN IP4 x.x.x.x s=call c=IN IP4 x.x.x.x t=0 0 m=audio 17300 RTP/AVP 0 9 99 3 18 4 101 a=rtpmap:0 pcmu/8000 a=rtpmap:9 g722/8000 a=rtpmap:3 gsm/8000 a=rtpmap:18 g729/8000 a=fmtp:18 annexb=no a=rtpmap:4 g723/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 ]]>
(btw this example sdp is ok)
but on the console i get the error [ERR] switch_ivr.c:469 Invalid Command! and the b-leg doesn't get the modified sdp.
what could i get wrong here?
br
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
You have to urlencode it too and that does not guarentee it will work.... On Aug 31, 2010 6:01 PM, "Christian Löschenkohl" < christian.loeschenkohl@xpirio.com> wrote: thank you for your reply i read it here http://wiki.freeswitch.org/wiki/Codec_negotiation#Rewriting_SDP and it seemed logic to me (which isn't true as i seems). of course i tried it without CDATA - then the command on the loopback looks like this sendmsg call-command: execute execute-app-name: set execute-app-arg: switch_r_sdp=v=0 o=root 1051875459 1051875459 IN IP4 x.x.x.x s=call c=IN IP4 x.x.x.x t=0 0 m=audio 19156 RTP/AVP 0 9 99 3 18 4 101 a=rtpmap:0 pcmu/8000 a=rtpmap:9 g722/8000 a=rtpmap:3 gsm/8000 a=rtpmap:18 g729/8000 a=fmtp:18 annexb... and i also do get [ERR] switch_ivr.c:469 Invalid Command! these lines print out the error (switch_ivr.c:469) if (zstr(cmd)) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Invalid Command!\n"); return SWITCH_STATUS_FALSE; } br On 2010-09-01 00:34, Brian West wrote:
Why are you trying to put it in the CDATA? You know you...
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunik... FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mail...
hello message on loopback look now like this sendmsg call-command: execute execute-app-name: set execute-app-arg: switch_r_sdp=v%3D0%0D%0Ao%3Droot+2099281814+2099281814+IN+IP4+xx.xx.xx.xx%0D%0As%3Dcall%0D%0Ac%3DIN+IP4+xx.xx.xx.xx%0D%0At%3D0+0%0D%0Am%3Daudio+18888+RTP%2FAVP+9+99+3+18+4+101%0D%0Aa%3Drtpmap%3A9+g722%2F8000%0D%0Aa%3Drtpmap%3A3+gsm%2F8000%0D%0Aa%3Drtpmap%3A18+g729%2F8000%0D%0Aa%3Dfmtp%3A18+annexb%3Dno%0D%0Aa%3Drtpmap%3A4+g723%2F8000%0D%0Aa%3Drtpmap%3A101+telephone-event%2F8000%0D%0Aa%3Dfmtp%3A101+0-16%0D%0Aa%3Dptime%3A20%0D%0A server respons now with "SIP/2.0 500 Internal Server Error" when trying to bridge this call with this sdp why does that not guarentee it will work? what could be a possible solution here? bg On 2010-09-01 03:31, Anthony Minessale wrote:
You have to urlencode it too and that does not guarentee it will work....
On Aug 31, 2010 6:01 PM, "Christian Löschenkohl" <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>> wrote:
thank you for your reply
i read it here http://wiki.freeswitch.org/wiki/Codec_negotiation#Rewriting_SDP and it seemed logic to me (which isn't true as i seems).
of course i tried it without CDATA - then the command on the loopback looks like this
sendmsg call-command: execute execute-app-name: set
execute-app-arg: switch_r_sdp=v=0 o=root 1051875459 1051875459 IN IP4 x.x.x.x
s=call c=IN IP4 x.x.x.x t=0 0
m=audio 19156 RTP/AVP 0 9 99 3 18 4 101
a=rtpmap:0 pcmu/8000 a=rtpmap:9 g722/8000 a=rtpmap:3 gsm/8000 a=rtpmap:18 g729/8000 a=fmtp:18 annexb...
and i also do get [ERR] switch_ivr.c:469 Invalid Command!
these lines print out the error (switch_ivr.c:469)
if (zstr(cmd)) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Invalid Command!\n"); return SWITCH_STATUS_FALSE; }
br
On 2010-09-01 00:34, Brian West wrote:
Why are you trying to put it in the CDATA? You know you...
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunik...
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mail...
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
participants (3)
-
Anthony Minessale
-
Brian West
-
Christian Löschenkohl