I'm talking about a specific channel variable that you say works when it's set global but does not work when you only use the "set" app in the dialplan. I recommend you take it out of vars.xml and then try using the export application or put it in the dialstring using the {chan_var=value}sofia/foo/bar@baz notation...<br>
<br>-MC<br><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 1:49 PM, A E G <span dir="ltr"><<a href="mailto:all.eforums@gmail.com" target="_blank">all.eforums@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_quote"><div class="im">On Fri, Aug 3, 2012 at 4:26 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could be an issue of export vs. set...<span><font color="#888888"><br>-MC</font></span><div><div><br></div></div></blockquote><div><br></div></div><div><font face="trebuchet ms, sans-serif">The Wiki says that export allows to carry over the value of a variable from Leg A to Leg B. I am not sure this will solve my issue as I don't want to export the codec offerings, more specifically varying ptime from Leg A to Leg B. For this particular gateway, if I can, I only want to send PCMU@40i. Sorry if this is a stupid question, am an FS novice :)</font></div>
<div><div class="h5">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 1:03 PM, A E G <span dir="ltr"><<a href="mailto:all.eforums@gmail.com" target="_blank">all.eforums@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote">On Fri, Aug 3, 2012 at 3:51 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Did you solve it with setting a channel variable or a Sofia profile setting? If a channel variable then you should be able to do a little dialplan logic and set the value only if certain conditions are met, i.e. if a certain gateway is going to be used.<br>
<br>-MC<br><br></blockquote><div><br></div><div><font face="trebuchet ms, sans-serif">Solved it using the Global variable in vars.xml. Sticking </font><span style="font-family:'courier new',monospace">sdp_m_per_ptime=false</span><font face="trebuchet ms, sans-serif"> as a channel variable (just before calling bridge) didn't seem to have any affect on the behaviour. Didn't try it in the specific profile to which that gateway belongs.</font></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><div>On Fri, Aug 3, 2012 at 12:44 PM, A E G <span dir="ltr"><<a href="mailto:all.eforums@gmail.com" target="_blank">all.eforums@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr"><font color="#663366"><font face="trebuchet ms,sans-serif">...and I'm not done yet.</font></font><div><font color="#663366"><font face="trebuchet ms,sans-serif"><br></font></font></div><div><font color="#663366"><font face="trebuchet ms,sans-serif">So while this one below solved the problem, how do we manage this so I don't always suppress all the m= lines in my SDP when sending calls to all the external gateways, but do that only when sending calls to any system that doesn't like it? </font></font></div>
<div><font color="#663366"><font face="trebuchet ms,sans-serif"><br></font></font></div><div><font color="#663366"><font face="trebuchet ms,sans-serif">As I said before, I tried doing this just before the bridge, but didn't work. Only seems to work as a PRE-PROCESS Global setting.</font></font></div>
<div><font color="#663366"><font face="trebuchet ms,sans-serif"><br></font></font></div><div><font color="#663366"><font face="trebuchet ms,sans-serif">Thx</font></font></div><div><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 1:44 AM, A E G <span dir="ltr"><<a href="mailto:all.eforums@gmail.com" target="_blank">all.eforums@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#663366"><font face="trebuchet ms,sans-serif">Well turns out learning to use Google better always helps.</font></font><div>
<font color="#663366"><font face="trebuchet ms,sans-serif"><br></font></font></div>
<div><font color="#663366"><font face="trebuchet ms,sans-serif">Found a nugget of wisdom that </font></font><span style="font-family:'courier new',monospace"><action application="set" data="sdp_m_per_ptime=false"/></span><font color="#333333" face="trebuchet ms, sans-serif"> </font><font color="#663366" face="trebuchet ms, sans-serif">should've actually been in the vars.xml</font></div>
<div><font color="#333333" face="trebuchet ms, sans-serif"><br></font></div><div><font color="#663366" face="trebuchet ms, sans-serif">Seems to have fixed it. </font></div><div><font color="#333333" face="trebuchet ms, sans-serif"><br>
</font></div><div><br></div><div><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 12:01 AM, A E G <span dir="ltr"><<a href="mailto:all.eforums@gmail.com" target="_blank">all.eforums@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#333333" face="trebuchet ms, sans-serif">Gents,</font><div><font color="#333333" face="trebuchet ms, sans-serif"><br>
</font></div><div><font color="#333333" face="trebuchet ms, sans-serif">running version: </font><font color="#333333" face="trebuchet ms, sans-serif">1.2.0-rc2+git~20120731T213556Z~e97da8e20a</font></div>
<div><font color="#333333" face="trebuchet ms, sans-serif"><br></font></div><div><font color="#333333" face="trebuchet ms, sans-serif">have been fighting with this for an hour or more...have done a bit of research on the list and Google itself, scoured the Wiki etc. but can't seem to figure out where to set the codecs to be "well recd" by the remote SIP peer. This used to work fine until I upgraded 2 days ago and it stopped working without my doing / changing anything.</font></div>
<div><font color="#333333" face="trebuchet ms, sans-serif"><br></font></div><div><font color="#333333" face="trebuchet ms, sans-serif">The remote SIP peer is {*} which doesn't like multiple m= lines with differing ptime values.</font></div>
<div><font color="#333333" face="trebuchet ms, sans-serif"><br></font></div><div><font color="#333333" face="trebuchet ms, sans-serif">Debug on near-end says: </font><font color="#333333" face="courier new, monospace">"Originate Resulted in Error Cause: 88 [INCOMPATIBLE_DESTINATION]"</font></div>
<div><font color="#333333" face="trebuchet ms, sans-serif"><br></font></div><div><font color="#333333" face="trebuchet ms, sans-serif">Full SDP here:</font></div>
<div><font color="#333333" face="trebuchet ms, sans-serif"><br></font></div><div><font color="#333333" face="trebuchet ms, sans-serif"><div>
v=0</div><div>o=FreeSWITCH 1343934933 1343934934 IN IP4 192.168.1.80</div><div>s=FreeSWITCH</div><div>c=IN IP4 192.168.1.80</div><div>t=0 0</div><div>m=audio 28884 RTP/AVP 98 8 3 101 13</div><div>a=rtpmap:98 L16/16000</div>
<div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=ptime:20</div><div>a=sendrecv</div><div>m=audio 28884 RTP/AVP 0 101 13</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div>
<div>a=ptime:40</div><div>a=sendrecv</div><div><br></div></font></div><div><font color="#333333" face="trebuchet ms, sans-serif">Far end says: </font><font color="#333333" face="courier new, monospace">Rejecting non-primary audio stream: audio 28884 RTP/AVP 0 101 13</font></div>
<div><font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif">I have tried to play around with the codec globals in vars.xml, to no avail.</font></div><div><font face="trebuchet ms, sans-serif"><br>
</font></div><div><font face="trebuchet ms, sans-serif">have also added stuff directly in the dialplan like so:</font></div><div><span style="font-family:'courier new',monospace"><br></span></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div><span style="font-family:'courier new',monospace"><action application="set" data="hangup_after_bridge=true"/></span></div><div><div><font face="courier new, monospace"><action application="set" data="absolute_codec_string=PCMU@40i"/></font></div>
</div><div><div><font face="courier new, monospace"><action application="set" data="sdp_m_per_ptime=false"/></font></div></div><div><div><font face="courier new, monospace"><action application="bridge" data="sofia/gateway/mycore1/1111"/></font></div>
</div></blockquote><div><br></div><div><font face="trebuchet ms, sans-serif">but no dice. </font></div><div><font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif">Tried to remove the "absolute_codec_string", still no dice.</font></div>
<div><font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif">I read about the "sdp_m_per_ptime" that lets me "cheat" but that ain't doing anything either.</font></div>
<div><font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif">What gives?</font></div><div><font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif">Thx in advance</font></div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>
</font></span><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div></div></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>