<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'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"><<a href="mailto:ssinyagin@yahoo.com" target="_blank">ssinyagin@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've got the following SIP gateway which registers successfully at the ITSP:<br>
<br>
<gateway name="sipcall_41325133196"><br>
<param name="username" value="41325133196"/><br>
<param name="password" value="XXXXXXXXXX"/><br>
<param name="extension" value="0325133196"/><br>
<param name="expire-seconds" value="125"/><br>
<param name="register" value="true"/><br>
<param name="register-transport" value="udp"/><br>
<param name="proxy" value="<a href="http://free2.voipgateway.org" target="_blank">free2.voipgateway.org</a>"/><br>
<param name="retry-seconds" value="30"/><br>
<param name="caller-id-in-from" value="false"/><br>
<param name="ping" value="27"/><br>
<variables><br>
<variable name="sbc_callee_ccode" data="41" direction="inbound"/><br>
<variable name="sbc_caller_ccode" data="41" direction="inbound"/><br>
</variables><br>
</gateway><br>
<br>
<br>
Then the call from PSTN goes into the proper context, and the first condition in the context is:<br>
<br>
<extension name="call_debug" continue="true"><br>
<condition field="${call_debug}" expression="^true$" break="never"><br>
<action application="info"/><br>
<action application="log" data="INFO Country code: ${sbc_callee_ccode}"/><br>
</condition><br>
</extension><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'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>