<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt">you can set variables at the gateway level, and then they&nbsp; are set as channel variables for inbound calls:<br><br>http://wiki.freeswitch.org/wiki/Sofia.conf.xml<br><pre>&lt;gateway name="gateway012"&gt;
   &lt;param name="realm" value="sip.voipcarrier.com" /&gt;
   &lt;param name="username" value="WBrandes" /&gt;
   &lt;param name="password" value="myvoiceismypassword" /&gt;
   &lt;param name="register" value="true" /&gt;
   &lt;param name="caller-id-in-from" value="true" /&gt;
   &lt;param name="ping" value="5" /&gt;
   &lt;param name="ping-max" value="3" /&gt;
   &lt;param name="retry-seconds" value="5" /&gt;
   &lt;param name="expire-seconds" value="60" /&gt;
   &lt;variables&gt;
     &lt;variable name="verbose_sdp" value="true"/&gt;
     &lt;variable name="absolute_codec_string" value="PCMU,PCMA" direction="outbound"/&gt;
     &lt;variable name="customer_id" value="3532" direction="inbound"/&gt;
   &lt;/variables&gt;
 &lt;/gateway&gt;<br><br></pre><br><div><span><br></span></div><div><br></div>  <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Victor Chukalovskiy &lt;victor.chukalovskiy@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> FreeSWITCH Users Help &lt;freeswitch-users@lists.freeswitch.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, October 17, 2013 8:36 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Freeswitch-users] How to set channel variable per SIP profile<br> </font> </div> <div class="y_msg_container"><br>Hi,<br><br>Subject says it all. Is there a way to set channel variable for all
 <br>calls passing through a SIP profile?<br><br>For example, I want all calls authorized with ACL and hitting SIP <br>profile to have country=foo. This has to be done before hitting the <br>dialplan.<br>There is a bunch of "params" in the SIP profile, but these aren't <br>channel variables.<br><br>Thanks!<br>-Victor<br><br><br><br><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a ymailto="mailto:consulting@freeswitch.org" 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 ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" 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><br></div> </div> </div>  </div></body></html>