[Freeswitch-users] How to set channel variable per SIP profile

Victor Chukalovskiy victor.chukalovskiy at gmail.com
Fri Oct 18 00:59:12 MSD 2013


Hmm, no gateways involved. Only SIP profile and apply-inbound-acl.

Is it possible?

On 13-10-17 04:50 PM, Stanislav Sinyagin wrote:
> you can set variables at the gateway level, and then they  are set as 
> channel variables for inbound calls:
>
> http://wiki.freeswitch.org/wiki/Sofia.conf.xml
> <gateway name="gateway012">
>     <param name="realm" value="sip.voipcarrier.com" />
>     <param name="username" value="WBrandes" />
>     <param name="password" value="myvoiceismypassword" />
>     <param name="register" value="true" />
>     <param name="caller-id-in-from" value="true" />
>     <param name="ping" value="5" />
>     <param name="ping-max" value="3" />
>     <param name="retry-seconds" value="5" />
>     <param name="expire-seconds" value="60" />
>     <variables>
>       <variable name="verbose_sdp" value="true"/>
>       <variable name="absolute_codec_string" value="PCMU,PCMA" direction="outbound"/>
>       <variable name="customer_id" value="3532" direction="inbound"/>
>     </variables>
>   </gateway>
>
>
>
>
> ------------------------------------------------------------------------
> *From:* Victor Chukalovskiy <victor.chukalovskiy at gmail.com>
> *To:* FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> *Sent:* Thursday, October 17, 2013 8:36 PM
> *Subject:* [Freeswitch-users] How to set channel variable per SIP profile
>
> Hi,
>
> Subject says it all. Is there a way to set channel variable for all
> calls passing through a SIP profile?
>
> For example, I want all calls authorized with ACL and hitting SIP
> profile to have country=foo. This has to be done before hitting the
> dialplan.
> There is a bunch of "params" in the SIP profile, but these aren't
> channel variables.
>
> Thanks!
> -Victor
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>
> 
>  </>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org <http://www.freeswitch.org/>
> http://wiki.freeswitch.org <http://wiki.freeswitch.org/>
> http://www.cluecon.com <http://www.cluecon.com/>
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org 
> <mailto: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 <http://www.freeswitch.org/>
>
>
>
>
> _________________________________________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131017/9fec627a/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list