<div dir="ltr">Several silly questions to help start debugging:<div><br><div>1) Did you kill the gateway and restart it since adding in this variable? reloadxml doesn&#39;t update active gateways.<br><div>2) Are you sure the call is actually coming in through the gateway and not directly to the sip address?</div>

<div>3) Is the debug extension actually executing? Are you sure ${call_debug}==true -- that lines runs in your logs? </div><div><br clear="all"><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div>


<br><br><div class="gmail_quote">On Thu, Nov 1, 2012 at 11:00 PM, Stanislav Sinyagin <span dir="ltr">&lt;<a href="mailto:ssinyagin@yahoo.com" target="_blank">ssinyagin@yahoo.com</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;ve got the following SIP gateway which registers successfully at the ITSP:<br>
<br>
  &lt;gateway name=&quot;sipcall_41325133196&quot;&gt;<br>
    &lt;param name=&quot;username&quot; value=&quot;41325133196&quot;/&gt;<br>
    &lt;param name=&quot;password&quot; value=&quot;XXXXXXXXXX&quot;/&gt;<br>
    &lt;param name=&quot;extension&quot; value=&quot;0325133196&quot;/&gt;<br>
    &lt;param name=&quot;expire-seconds&quot; value=&quot;125&quot;/&gt;<br>
    &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;<br>
    &lt;param name=&quot;register-transport&quot; value=&quot;udp&quot;/&gt;<br>
    &lt;param name=&quot;proxy&quot; value=&quot;<a href="http://free2.voipgateway.org" target="_blank">free2.voipgateway.org</a>&quot;/&gt;<br>
    &lt;param name=&quot;retry-seconds&quot; value=&quot;30&quot;/&gt;<br>
    &lt;param name=&quot;caller-id-in-from&quot; value=&quot;false&quot;/&gt;<br>
    &lt;param name=&quot;ping&quot; value=&quot;27&quot;/&gt;<br>
    &lt;variables&gt;<br>
     &lt;variable name=&quot;sbc_callee_ccode&quot; data=&quot;41&quot; direction=&quot;inbound&quot;/&gt;<br>
     &lt;variable name=&quot;sbc_caller_ccode&quot; data=&quot;41&quot; direction=&quot;inbound&quot;/&gt;<br>
    &lt;/variables&gt;<br>
  &lt;/gateway&gt;<br>
<br>
<br>
Then the call from PSTN goes into the proper context, and the first condition in the context is:<br>
<br>
   &lt;extension name=&quot;call_debug&quot; continue=&quot;true&quot;&gt;<br>
     &lt;condition field=&quot;${call_debug}&quot; expression=&quot;^true$&quot; break=&quot;never&quot;&gt;<br>
       &lt;action application=&quot;info&quot;/&gt;<br>
       &lt;action application=&quot;log&quot; data=&quot;INFO Country code: ${sbc_callee_ccode}&quot;/&gt;<br>
     &lt;/condition&gt;<br>
   &lt;/extension&gt;<br>
<br>
<br>
Neither the info, nor the log show my two variables on inbound calls.<br>
<br>
<br>
Am I doing something wrong or is it a bug?<br>
<br>
I&#39;m using git commit 94664868a8 in v1.2.stable branch<br>
<br>
<br>
<br>
thanks,<br>
stanislav<br>
<br>
<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>
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>
</blockquote></div><br></div></div></div></div>