[Freeswitch-users] Sofia gateway variables

Stanislav Sinyagin ssinyagin at yahoo.com
Fri Nov 2 23:14:23 MSK 2012


it is set in the usual place, in vars.xml as a 
global variable. Besides, I do get the full Info 
output, but those gateway variables are missing:
https://gist.github.com/3997100





----- Original Message -----
> From: Kristian Kielhofner <kris at kriskinc.com>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Cc: 
> Sent: Friday, November 2, 2012 5:06 PM
> Subject: Re: [Freeswitch-users] Sofia gateway variables
> 
> Where are you setting call_debug=true?  Are you doing it before a
> transfer?  Maybe you need to use inline?
> 
> http://wiki.freeswitch.org/wiki/Dialplan_XML#Inline_Actions
> 
> On Thu, Nov 1, 2012 at 5:00 PM, Stanislav Sinyagin <ssinyagin at yahoo.com> 
> wrote:
>>  I've got the following SIP gateway which registers successfully at the 
> ITSP:
>> 
>>    <gateway name="sipcall_41325133196">
>>      <param name="username" value="41325133196"/>
>>      <param name="password" value="XXXXXXXXXX"/>
>>      <param name="extension" value="0325133196"/>
>>      <param name="expire-seconds" value="125"/>
>>      <param name="register" value="true"/>
>>      <param name="register-transport" 
> value="udp"/>
>>      <param name="proxy" 
> value="free2.voipgateway.org"/>
>>      <param name="retry-seconds" value="30"/>
>>      <param name="caller-id-in-from" 
> value="false"/>
>>      <param name="ping" value="27"/>
>>      <variables>
>>       <variable name="sbc_callee_ccode" data="41" 
> direction="inbound"/>
>>       <variable name="sbc_caller_ccode" data="41" 
> direction="inbound"/>
>>      </variables>
>>    </gateway>
>> 
>> 
>>  Then the call from PSTN goes into the proper context, and the first 
> condition in the context is:
>> 
>>     <extension name="call_debug" continue="true">
>>       <condition field="${call_debug}" 
> expression="^true$" break="never">
>>         <action application="info"/>
>>         <action application="log" data="INFO Country code: 
> ${sbc_callee_ccode}"/>
>>       </condition>
>>     </extension>
>> 
>> 
>>  Neither the info, nor the log show my two variables on inbound calls.
>> 
>> 
>>  Am I doing something wrong or is it a bug?
>> 
>>  I'm using git commit 94664868a8 in v1.2.stable branch
>> 
>> 
>> 
>>  thanks,
>>  stanislav
>> 
>> 
>>  _________________________________________________________________________
>>  Professional FreeSWITCH Consulting Services:
>>  consulting at freeswitch.org
>>  http://www.freeswitchsolutions.com
>> 
>>  
>>  
>> 
>>  Official FreeSWITCH Sites
>>  http://www.freeswitch.org
>>  http://wiki.freeswitch.org
>>  http://www.cluecon.com
>> 
>>  FreeSWITCH-users mailing list
>>  FreeSWITCH-users at lists.freeswitch.org
>>  http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>  UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>  http://www.freeswitch.org
> 
> 
> 
> -- 
> Kristian Kielhofner
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list