<div dir="ltr"><div class="gmail_quote">On Fri, Aug 3, 2012 at 4:56 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I&#39;m talking about a specific channel variable that you say works when it&#39;s set global but does not work when you only use the &quot;set&quot; 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...<span class="HOEnZb"><font color="#888888"><br>


<br>-MC</font></span><div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div><font face="trebuchet ms, sans-serif">Ok, so that&#39;s what I was going to ask; is setting the channel variable in the dialstring different than setting it within the dialplan just before bridge is called. I guess Leg B doesn&#39;t really start until the Bridge is called ...duh! Setting the {chan_var} in the dialstring worked. Thanks!</font></div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 1:49 PM, A E G <span dir="ltr">&lt;<a href="mailto:all.eforums@gmail.com" target="_blank">all.eforums@gmail.com</a>&gt;</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>On Fri, Aug 3, 2012 at 4:26 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</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&#39;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>

<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">&lt;<a href="mailto:all.eforums@gmail.com" target="_blank">all.eforums@gmail.com</a>&gt;</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">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</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:&#39;courier new&#39;,monospace">sdp_m_per_ptime=false</span><font face="trebuchet ms, sans-serif"> as a channel variable (just before calling bridge) didn&#39;t seem to have any affect on the behaviour. Didn&#39;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">&lt;<a href="mailto:all.eforums@gmail.com" target="_blank">all.eforums@gmail.com</a>&gt;</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&#39;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&#39;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&#39;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&#39;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">&lt;<a href="mailto:all.eforums@gmail.com" target="_blank">all.eforums@gmail.com</a>&gt;</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:&#39;courier new&#39;,monospace">&lt;action application=&quot;set&quot; data=&quot;sdp_m_per_ptime=false&quot;/&gt;</span><font color="#333333" face="trebuchet ms, sans-serif"> </font><font color="#663366" face="trebuchet ms, sans-serif">should&#39;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">&lt;<a href="mailto:all.eforums@gmail.com" target="_blank">all.eforums@gmail.com</a>&gt;</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&#39;t seem to figure out where to set the codecs to be &quot;well recd&quot; 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&#39;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">&quot;Originate Resulted in Error Cause: 88 [INCOMPATIBLE_DESTINATION]&quot;</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:&#39;courier new&#39;,monospace"><br></span></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">












<div><span style="font-family:&#39;courier new&#39;,monospace">&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</span></div><div><div><font face="courier new, monospace">&lt;action application=&quot;set&quot; data=&quot;absolute_codec_string=PCMU@40i&quot;/&gt;</font></div>












</div><div><div><font face="courier new, monospace">&lt;action application=&quot;set&quot; data=&quot;sdp_m_per_ptime=false&quot;/&gt;</font></div></div><div><div><font face="courier new, monospace">&lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/mycore1/1111&quot;/&gt;</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 &quot;absolute_codec_string&quot;, 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 &quot;sdp_m_per_ptime&quot;  that lets me &quot;cheat&quot; but that ain&#39;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" 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">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></div>