Hi, I'm trying to force the use of a specific codec when originating a call from the command line. This is my codecs config in vars.xml: <X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU,PCMA,SPEEX,G729"/> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,SPEEX,G729"/> If I just originate a call: originate {ignore_early_media}sofia/gateway/mygateway/444444 &bridge(user/1001) I get the following SDP: v=0 o=FreeSWITCH 1303727406 1303727407 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 17054 RTP/AVP 0 8 98 18 101 13 a=rtpmap:98 SPEEX/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 If I originate a call with the absolute_codec_string variable set like this: originate {ignore_early_media,absolute_codec_string='G729,PCMU'}sofia/gateway/ mygateway/444444 &bridge(user/1001) I get the following SDP: v=0 o=FreeSWITCH 1303719860 1303719861 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24894 RTP/AVP 0 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 And it doesn't matter the value I give to the absolute_codec_string, I will get the same SDP, except if I specify SPEEX, then I'll get the same SDP as the one above. Am I missing something, or is this the way it's supposed to work? I also tried with the codec_string variable, and I get the same results. I'm using the following version from the git repository: head-git-244fd68 2011-03-21 14-27-57 -0400 Thanks for your help, Nicolas
On 25/04/11 16:22, Nicolas Brenner wrote:
I'm trying to force the use of a specific codec when originating a call from the command line.
m=audio 17054 RTP/AVP 0 8 98 18 101 13
m=audio 24894 RTP/AVP 0 101 13
And it doesn't matter the value I give to the absolute_codec_string, I will get the same SDP, except if I specify SPEEX, then I'll get the same SDP as the one above. Am I missing something, or is this the way it's supposed to work?
Looks okay to me. Perhaps you are not looking at the m=audio line in the SDP which you will is different - this reflects the difference in the offered codecs. You might be expecting to see all of the codecs itemised in the a=fmtp lines - this is known as verbose-sdp and is disabled by default. Have a look at: http://wiki.freeswitch.org/wiki/Variable_verbose_sdp Regards,
Thanks Paul! You are totally right, I was looking for the a=rtpmap:18 G729/8000 line. I find it weird that it is automatically inserted for SPEEX, but not for other codecs. Another thing I noticed, is I can't specify more than one codec, according to what I've read about other issues, this has something to do with a comma parsing problem on the console (for some reason commas can't be escaped, this also affects trying to originate calls from ESL). So for absolute_codec_string=G729 I get this SDP (with verbose_sdp=true): v=0 o=FreeSWITCH 1303718366 1303718367 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 29882 RTP/AVP 18 101 13 a=rtpmap:18 G729/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 But for absolute_codec_string=G729,PCMU I get no additional m= lines in the SDP: v=0 o=FreeSWITCH 1303716332 1303716333 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 32008 RTP/AVP 18 101 13 a=rtpmap:18 G729/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 On Mon, Apr 25, 2011 at 12:06 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 25/04/11 16:22, Nicolas Brenner wrote:
I'm trying to force the use of a specific codec when originating a call from the command line.
m=audio 17054 RTP/AVP 0 8 98 18 101 13
m=audio 24894 RTP/AVP 0 101 13
And it doesn't matter the value I give to the absolute_codec_string, I will get the same SDP, except if I specify SPEEX, then I'll get the same SDP as the one above. Am I missing something, or is this the way it's supposed to work?
Looks okay to me. Perhaps you are not looking at the m=audio line in the SDP which you will is different - this reflects the difference in the offered codecs.
You might be expecting to see all of the codecs itemised in the a=fmtp lines - this is known as verbose-sdp and is disabled by default.
Have a look at: http://wiki.freeswitch.org/wiki/Variable_verbose_sdp
Regards,
_______________________________________________ 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
Nicolas, it's because the payload type for G729 is an old static one. Speex doesnt have its own static payload type, as all the recent codecs. It's dynamic, so a fmtp line is required. For your issue with 2 codecs, that's not normal. Are you sure you did reloadxml ? David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 25/04/2011 à 18:22, Nicolas Brenner a écrit :
Thanks Paul!
You are totally right, I was looking for the a=rtpmap:18 G729/8000 line. I find it weird that it is automatically inserted for SPEEX, but not for other codecs.
Another thing I noticed, is I can't specify more than one codec, according to what I've read about other issues, this has something to do with a comma parsing problem on the console (for some reason commas can't be escaped, this also affects trying to originate calls from ESL).
So for absolute_codec_string=G729 I get this SDP (with verbose_sdp=true):
v=0 o=FreeSWITCH 1303718366 1303718367 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 29882 RTP/AVP 18 101 13 a=rtpmap:18 G729/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
But for absolute_codec_string=G729,PCMU I get no additional m= lines in the SDP:
v=0 o=FreeSWITCH 1303716332 1303716333 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 32008 RTP/AVP 18 101 13 a=rtpmap:18 G729/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On Mon, Apr 25, 2011 at 12:06 PM, Paul Cupis <paul@cupis.co.uk> wrote: On 25/04/11 16:22, Nicolas Brenner wrote:
I'm trying to force the use of a specific codec when originating a call from the command line.
m=audio 17054 RTP/AVP 0 8 98 18 101 13
m=audio 24894 RTP/AVP 0 101 13
And it doesn't matter the value I give to the absolute_codec_string, I will get the same SDP, except if I specify SPEEX, then I'll get the same SDP as the one above. Am I missing something, or is this the way it's supposed to work?
Looks okay to me. Perhaps you are not looking at the m=audio line in the SDP which you will is different - this reflects the difference in the offered codecs.
You might be expecting to see all of the codecs itemised in the a=fmtp lines - this is known as verbose-sdp and is disabled by default.
Have a look at: http://wiki.freeswitch.org/wiki/Variable_verbose_sdp
Regards,
_______________________________________________ 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
_______________________________________________ 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
On 25/04/11 17:22, Nicolas Brenner wrote:
You are totally right, I was looking for the a=rtpmap:18 G729/8000 line. I find it weird that it is automatically inserted for SPEEX, but not for other codecs.
SPEEX does not have an IANA allocated mapping, so used dynamic mapping (98 is within the dynamic range) - dynamically mapped codecs must be specified verbosely in the SDP.
Another thing I noticed, is I can't specify more than one codec, according to what I've read about other issues, this has something to do with a comma parsing problem on the console (for some reason commas can't be escaped, this also affects trying to originate calls from ESL).
So for absolute_codec_string=G729 I get this SDP (with verbose_sdp=true):
Try something like: {absolute_codec_string='G729,PCMU'} The quoting of the codecs should mean that the comma is "escaped" and therefore both codecs will be offered. Regards,
Thanks for the information, good to know FreeSWITCH is behaving well :P David, reloadxml doesn't do anything, since I'm trying to use the absolute_codec_string with originate from the console, like so: originate {ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444 &bridge(user/1001) Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as if I don't quote the string, or if I just specify one codec: v=0 o=FreeSWITCH 1303728783 1303728784 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 22426 RTP/AVP 18 101 13 a=rtpmap:18 G729/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 On Mon, Apr 25, 2011 at 12:45 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 25/04/11 17:22, Nicolas Brenner wrote:
You are totally right, I was looking for the a=rtpmap:18 G729/8000 line. I find it weird that it is automatically inserted for SPEEX, but not for other codecs.
SPEEX does not have an IANA allocated mapping, so used dynamic mapping (98 is within the dynamic range) - dynamically mapped codecs must be specified verbosely in the SDP.
Another thing I noticed, is I can't specify more than one codec, according to what I've read about other issues, this has something to do with a comma parsing problem on the console (for some reason commas can't be escaped, this also affects trying to originate calls from ESL).
So for absolute_codec_string=G729 I get this SDP (with verbose_sdp=true):
Try something like:
{absolute_codec_string='G729,PCMU'}
The quoting of the codecs should mean that the comma is "escaped" and therefore both codecs will be offered.
Regards,
_______________________________________________ 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
On 25/04/11 18:08, Nicolas Brenner wrote:
I'm trying to use the absolute_codec_string with originate from the console, like so:
originate {ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444 &bridge(user/1001)
Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as if I don't quote the string, or if I just specify one codec:
Can you provide (on pastebin.freeswitch.org) a complete log of a call, please? Regards,
Thanks, yes, here you go: I'm making calls from the console to an X-Lite registered on extension 1001 which doesn't support G729. Calls 1 and 3 below fail because the codec options are not supported, and even though on the third call the absolute_codec_string variable should be 'G729,PCMU', it is not offering both codecs. On http://pastebin.freeswitch.org/16167 the SIP trace for: originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000) This is the SDP: v=0 o=FreeSWITCH 1303734153 1303734154 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24036 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 On http://pastebin.freeswitch.org/16169 the SIP trace for: originate {ignore_early_media,absolute_codec_string=PCMU}user/1001 &bridge(user/1000) This is the SDP: v=0 o=FreeSWITCH 1303733515 1303733516 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24896 RTP/AVP 0 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 On http://pastebin.freeswitch.org/16170 the SIP trace for: originate {ignore_early_media,absolute_codec_string='G729,PCMU'}user/1001 &bridge(user/1000) This is the SDP: v=0 o=FreeSWITCH 1303733520 1303733521 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 25138 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 On Mon, Apr 25, 2011 at 2:20 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 25/04/11 18:08, Nicolas Brenner wrote:
I'm trying to use the absolute_codec_string with originate from the console, like so:
originate
{ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444
&bridge(user/1001)
Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as if I don't quote the string, or if I just specify one codec:
Can you provide (on pastebin.freeswitch.org) a complete log of a call, please?
Regards,
_______________________________________________ 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
Maybe I am wrong, but I see a typo in the following string, after " ignore_early_media": originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000) It should be: originate {ignore_early_media=true,absolute_codec_string=G729}user/1001 &bridge(user/1000) Vitalie 2011/4/25 Nicolas Brenner <nico@clickfono.com>
Thanks, yes, here you go:
I'm making calls from the console to an X-Lite registered on extension 1001 which doesn't support G729. Calls 1 and 3 below fail because the codec options are not supported, and even though on the third call the absolute_codec_string variable should be 'G729,PCMU', it is not offering both codecs.
On http://pastebin.freeswitch.org/16167 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303734153 1303734154 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24036 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16169 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=PCMU}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733515 1303733516 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24896 RTP/AVP 0 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16170 the SIP trace for:
originate {ignore_early_media,absolute_codec_string='G729,PCMU'}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733520 1303733521 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 25138 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On Mon, Apr 25, 2011 at 2:20 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 25/04/11 18:08, Nicolas Brenner wrote:
I'm trying to use the absolute_codec_string with originate from the console, like so:
originate
{ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444
&bridge(user/1001)
Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as if I don't quote the string, or if I just specify one codec:
Can you provide (on pastebin.freeswitch.org) a complete log of a call, please?
Regards,
_______________________________________________ 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
_______________________________________________ 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
Oops, sorry you are right, I copied it wrong, doesn't fix it though. On Mon, Apr 25, 2011 at 3:35 PM, Vitalie Colosov <vetali100@gmail.com>wrote:
Maybe I am wrong, but I see a typo in the following string, after " ignore_early_media":
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
It should be:
originate {ignore_early_media=true,absolute_codec_string=G729}user/1001 &bridge(user/1000)
Vitalie
2011/4/25 Nicolas Brenner <nico@clickfono.com>
Thanks, yes, here you go:
I'm making calls from the console to an X-Lite registered on extension 1001 which doesn't support G729. Calls 1 and 3 below fail because the codec options are not supported, and even though on the third call the absolute_codec_string variable should be 'G729,PCMU', it is not offering both codecs.
On http://pastebin.freeswitch.org/16167 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303734153 1303734154 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24036 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16169 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=PCMU}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733515 1303733516 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24896 RTP/AVP 0 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16170 the SIP trace for:
originate {ignore_early_media,absolute_codec_string='G729,PCMU'}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733520 1303733521 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 25138 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On Mon, Apr 25, 2011 at 2:20 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 25/04/11 18:08, Nicolas Brenner wrote:
I'm trying to use the absolute_codec_string with originate from the console, like so:
originate
{ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444
&bridge(user/1001)
Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as if I don't quote the string, or if I just specify one codec:
Can you provide (on pastebin.freeswitch.org) a complete log of a call, please?
Regards,
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
{ignore_early_media,absolute_codec_string='G729,PCMU'}
The problem is that FS splits the variable names using commas. When there's a comma in a value it gets confused. Using quotation marks doesn't make any difference - they're treated as part of the value. So FS is seeing this: ignore_early_media absolute_codec_string='G729 PCMU' So the only codec that gets set is the G729. There is a workaround for this. You want to use {ignore_early_media,absolute_codec_string=^^:G729:PCMU}. The ^^ at the start of a value tells FS 'treat the following character as a comma'. Now FS sees: ignore_early_media absolute_codec_string=^^:G729:PCMU And sets absolute_codec_string to G729,PCMU. -Steve On 25 April 2011 21:44, Nicolas Brenner <nico@clickfono.com> wrote:
Oops, sorry you are right, I copied it wrong, doesn't fix it though.
On Mon, Apr 25, 2011 at 3:35 PM, Vitalie Colosov <vetali100@gmail.com>wrote:
Maybe I am wrong, but I see a typo in the following string, after " ignore_early_media":
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
It should be:
originate {ignore_early_media=true,absolute_codec_string=G729}user/1001 &bridge(user/1000)
Vitalie
2011/4/25 Nicolas Brenner <nico@clickfono.com>
Thanks, yes, here you go:
I'm making calls from the console to an X-Lite registered on extension 1001 which doesn't support G729. Calls 1 and 3 below fail because the codec options are not supported, and even though on the third call the absolute_codec_string variable should be 'G729,PCMU', it is not offering both codecs.
On http://pastebin.freeswitch.org/16167 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303734153 1303734154 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24036 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16169 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=PCMU}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733515 1303733516 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24896 RTP/AVP 0 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16170 the SIP trace for:
originate {ignore_early_media,absolute_codec_string='G729,PCMU'}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733520 1303733521 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 25138 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On Mon, Apr 25, 2011 at 2:20 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 25/04/11 18:08, Nicolas Brenner wrote:
I'm trying to use the absolute_codec_string with originate from the console, like so:
originate
{ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444
&bridge(user/1001)
Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as if I don't quote the string, or if I just specify one codec:
Can you provide (on pastebin.freeswitch.org) a complete log of a call, please?
Regards,
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
Oh, and you'll need a version since 14 April 2011 for it to work in {}. It'll work in [] since September 2010. -Steve On 26 April 2011 09:20, Steven Ayre <steveayre@gmail.com> wrote:
{ignore_early_media,absolute_codec_string='G729,PCMU'}
The problem is that FS splits the variable names using commas. When there's a comma in a value it gets confused. Using quotation marks doesn't make any difference - they're treated as part of the value.
So FS is seeing this:
ignore_early_media absolute_codec_string='G729 PCMU'
So the only codec that gets set is the G729.
There is a workaround for this. You want to use {ignore_early_media,absolute_codec_string=^^:G729:PCMU}.
The ^^ at the start of a value tells FS 'treat the following character as a comma'. Now FS sees:
ignore_early_media absolute_codec_string=^^:G729:PCMU
And sets absolute_codec_string to G729,PCMU.
-Steve
On 25 April 2011 21:44, Nicolas Brenner <nico@clickfono.com> wrote:
Oops, sorry you are right, I copied it wrong, doesn't fix it though.
On Mon, Apr 25, 2011 at 3:35 PM, Vitalie Colosov <vetali100@gmail.com>wrote:
Maybe I am wrong, but I see a typo in the following string, after " ignore_early_media":
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
It should be:
originate {ignore_early_media=true,absolute_codec_string=G729}user/1001 &bridge(user/1000)
Vitalie
2011/4/25 Nicolas Brenner <nico@clickfono.com>
Thanks, yes, here you go:
I'm making calls from the console to an X-Lite registered on extension 1001 which doesn't support G729. Calls 1 and 3 below fail because the codec options are not supported, and even though on the third call the absolute_codec_string variable should be 'G729,PCMU', it is not offering both codecs.
On http://pastebin.freeswitch.org/16167 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303734153 1303734154 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24036 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16169 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=PCMU}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733515 1303733516 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24896 RTP/AVP 0 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16170 the SIP trace for:
originate {ignore_early_media,absolute_codec_string='G729,PCMU'}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733520 1303733521 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 25138 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On Mon, Apr 25, 2011 at 2:20 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 25/04/11 18:08, Nicolas Brenner wrote:
I'm trying to use the absolute_codec_string with originate from the console, like so:
originate
{ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444
&bridge(user/1001)
Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as if I don't quote the string, or if I just specify one codec:
Can you provide (on pastebin.freeswitch.org) a complete log of a call, please?
Regards,
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
Awesome! that worked perfectly. Thanks Steve. On Tue, Apr 26, 2011 at 4:21 AM, Steven Ayre <steveayre@gmail.com> wrote:
Oh, and you'll need a version since 14 April 2011 for it to work in {}. It'll work in [] since September 2010.
-Steve
On 26 April 2011 09:20, Steven Ayre <steveayre@gmail.com> wrote:
{ignore_early_media,absolute_codec_string='G729,PCMU'}
The problem is that FS splits the variable names using commas. When there's a comma in a value it gets confused. Using quotation marks doesn't make any difference - they're treated as part of the value.
So FS is seeing this:
ignore_early_media absolute_codec_string='G729 PCMU'
So the only codec that gets set is the G729.
There is a workaround for this. You want to use {ignore_early_media,absolute_codec_string=^^:G729:PCMU}.
The ^^ at the start of a value tells FS 'treat the following character as a comma'. Now FS sees:
ignore_early_media absolute_codec_string=^^:G729:PCMU
And sets absolute_codec_string to G729,PCMU.
-Steve
On 25 April 2011 21:44, Nicolas Brenner <nico@clickfono.com> wrote:
Oops, sorry you are right, I copied it wrong, doesn't fix it though.
On Mon, Apr 25, 2011 at 3:35 PM, Vitalie Colosov <vetali100@gmail.com>wrote:
Maybe I am wrong, but I see a typo in the following string, after " ignore_early_media":
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
It should be:
originate {ignore_early_media=true,absolute_codec_string=G729}user/1001 &bridge(user/1000)
Vitalie
2011/4/25 Nicolas Brenner <nico@clickfono.com>
Thanks, yes, here you go:
I'm making calls from the console to an X-Lite registered on extension 1001 which doesn't support G729. Calls 1 and 3 below fail because the codec options are not supported, and even though on the third call the absolute_codec_string variable should be 'G729,PCMU', it is not offering both codecs.
On http://pastebin.freeswitch.org/16167 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303734153 1303734154 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24036 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16169 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=PCMU}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733515 1303733516 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24896 RTP/AVP 0 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16170 the SIP trace for:
originate {ignore_early_media,absolute_codec_string='G729,PCMU'}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733520 1303733521 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 25138 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On Mon, Apr 25, 2011 at 2:20 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 25/04/11 18:08, Nicolas Brenner wrote: > I'm trying to use the > absolute_codec_string with originate from the console, like so: > > originate > {ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444 > &bridge(user/1001) > > Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as > if I don't quote the string, or if I just specify one codec:
Can you provide (on pastebin.freeswitch.org) a complete log of a call, please?
Regards,
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
This email is a perfect example of community members stepping up! Thanks Steven!! -MC On Tue, Apr 26, 2011 at 1:20 AM, Steven Ayre <steveayre@gmail.com> wrote:
{ignore_early_media,absolute_codec_string='G729,PCMU'}
The problem is that FS splits the variable names using commas. When there's a comma in a value it gets confused. Using quotation marks doesn't make any difference - they're treated as part of the value.
So FS is seeing this:
ignore_early_media absolute_codec_string='G729 PCMU'
So the only codec that gets set is the G729.
There is a workaround for this. You want to use {ignore_early_media,absolute_codec_string=^^:G729:PCMU}.
The ^^ at the start of a value tells FS 'treat the following character as a comma'. Now FS sees:
ignore_early_media absolute_codec_string=^^:G729:PCMU
And sets absolute_codec_string to G729,PCMU.
-Steve
On 25 April 2011 21:44, Nicolas Brenner <nico@clickfono.com> wrote:
Oops, sorry you are right, I copied it wrong, doesn't fix it though.
On Mon, Apr 25, 2011 at 3:35 PM, Vitalie Colosov <vetali100@gmail.com>wrote:
Maybe I am wrong, but I see a typo in the following string, after " ignore_early_media":
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
It should be:
originate {ignore_early_media=true,absolute_codec_string=G729}user/1001 &bridge(user/1000)
Vitalie
2011/4/25 Nicolas Brenner <nico@clickfono.com>
Thanks, yes, here you go:
I'm making calls from the console to an X-Lite registered on extension 1001 which doesn't support G729. Calls 1 and 3 below fail because the codec options are not supported, and even though on the third call the absolute_codec_string variable should be 'G729,PCMU', it is not offering both codecs.
On http://pastebin.freeswitch.org/16167 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303734153 1303734154 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24036 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16169 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=PCMU}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733515 1303733516 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24896 RTP/AVP 0 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16170 the SIP trace for:
originate {ignore_early_media,absolute_codec_string='G729,PCMU'}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733520 1303733521 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 25138 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On Mon, Apr 25, 2011 at 2:20 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 25/04/11 18:08, Nicolas Brenner wrote:
I'm trying to use the absolute_codec_string with originate from the console, like so:
originate
{ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444
&bridge(user/1001)
Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as if I don't quote the string, or if I just specify one codec:
Can you provide (on pastebin.freeswitch.org) a complete log of a call, please?
Regards,
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
No problem! :) Steve on iPhone On 26 Apr 2011, at 20:53, Michael Collins <msc@freeswitch.org> wrote:
This email is a perfect example of community members stepping up! Thanks Steven!! -MC
On Tue, Apr 26, 2011 at 1:20 AM, Steven Ayre <steveayre@gmail.com> wrote: {ignore_early_media,absolute_codec_string='G729,PCMU'}
The problem is that FS splits the variable names using commas. When there's a comma in a value it gets confused. Using quotation marks doesn't make any difference - they're treated as part of the value.
So FS is seeing this:
ignore_early_media absolute_codec_string='G729 PCMU'
So the only codec that gets set is the G729.
There is a workaround for this. You want to use {ignore_early_media,absolute_codec_string=^^:G729:PCMU}.
The ^^ at the start of a value tells FS 'treat the following character as a comma'. Now FS sees:
ignore_early_media absolute_codec_string=^^:G729:PCMU
And sets absolute_codec_string to G729,PCMU.
-Steve
On 25 April 2011 21:44, Nicolas Brenner <nico@clickfono.com> wrote: Oops, sorry you are right, I copied it wrong, doesn't fix it though.
On Mon, Apr 25, 2011 at 3:35 PM, Vitalie Colosov <vetali100@gmail.com> wrote: Maybe I am wrong, but I see a typo in the following string, after "ignore_early_media":
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
It should be:
originate {ignore_early_media=true,absolute_codec_string=G729}user/1001 &bridge(user/1000)
Vitalie
2011/4/25 Nicolas Brenner <nico@clickfono.com> Thanks, yes, here you go:
I'm making calls from the console to an X-Lite registered on extension 1001 which doesn't support G729. Calls 1 and 3 below fail because the codec options are not supported, and even though on the third call the absolute_codec_string variable should be 'G729,PCMU', it is not offering both codecs.
On http://pastebin.freeswitch.org/16167 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303734153 1303734154 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24036 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16169 the SIP trace for:
originate {ignore_early_media,absolute_codec_string=PCMU}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733515 1303733516 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 24896 RTP/AVP 0 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On http://pastebin.freeswitch.org/16170 the SIP trace for:
originate {ignore_early_media,absolute_codec_string='G729,PCMU'}user/1001 &bridge(user/1000)
This is the SDP:
v=0 o=FreeSWITCH 1303733520 1303733521 IN IP4 127.0.0.1 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 25138 RTP/AVP 18 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
On Mon, Apr 25, 2011 at 2:20 PM, Paul Cupis <paul@cupis.co.uk> wrote: On 25/04/11 18:08, Nicolas Brenner wrote:
I'm trying to use the absolute_codec_string with originate from the console, like so:
originate {ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444 &bridge(user/1001)
Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as if I don't quote the string, or if I just specify one codec:
Can you provide (on pastebin.freeswitch.org) a complete log of a call, please?
Regards,
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
participants (7)
-
David Ponzone
-
Michael Collins
-
Nicolas Brenner
-
Nicolas Brenner
-
Paul Cupis
-
Steven Ayre
-
Vitalie Colosov