<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">You can set dynamic data in dial plan
      as below<br>
      <br>
      &lt;action application="set" data="gateway_id=1"/&gt;<br>
      <br>
      <br>
      Anand<br>
      <br>
      On 10/18/2013 8:01 AM, Victor Chukalovskiy wrote:<br>
    </div>
    <blockquote cite="mid:52609D74.20906@gmail.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Hi, yes, I already use all of these.
        The profile_name variable and putting different profiles into
        different contexts.<br>
        <br>
        But what I really need is to be able to set a couple custom
        variables per profile. This would allow to use the exact same
        context with different profiles....as well as couple other
        things.<br>
        <br>
        I guess it's not possible!!!!&nbsp; :-(<br>
        <br>
        On 13-10-17 05:59 PM, Stanislav Sinyagin wrote:<br>
      </div>
      <blockquote
        cite="mid:1382047176.4841.YahooMailNeo@web126205.mail.ne1.yahoo.com"
        type="cite">
        <div style="color:#000; background-color:#fff;
          font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
          Lucida Grande, sans-serif;font-size:12pt">if you run info() on
          the incoming call, you can see the profile's IP address and
          port and profile name in various variables.<br>
          Then you can build the matching rules in your dialplan and
          differentiate between the profiles, and set variables that you
          need.<br>
          <br>
          But probably simply assigning different contexts to your
          profiles would do the job :)<br>
          <br>
          <br>
          <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 <a moz-do-not-send="true"
                    class="moz-txt-link-rfc2396E"
                    href="mailto:victor.chukalovskiy@gmail.com">&lt;victor.chukalovskiy@gmail.com&gt;</a><br>
                  <b><span style="font-weight: bold;">To:</span></b> <a
                    moz-do-not-send="true"
                    class="moz-txt-link-abbreviated"
                    href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>
                  <br>
                  <b><span style="font-weight: bold;">Sent:</span></b>
                  Thursday, October 17, 2013 10:59 PM<br>
                  <b><span style="font-weight: bold;">Subject:</span></b>
                  Re: [Freeswitch-users] How to set channel variable per
                  SIP profile<br>
                </font> </div>
              <div class="y_msg_container"><br>
                <div id="yiv6120974075">
                  <div>
                    <div class="yiv6120974075moz-cite-prefix">Hmm, no
                      gateways involved. Only SIP profile and
                      apply-inbound-acl.<br clear="none">
                      <br clear="none">
                      Is it possible?<br clear="none">
                      On 13-10-17 04:50 PM, Stanislav Sinyagin wrote:<br
                        clear="none">
                    </div>
                    <blockquote type="cite">
                      <div class="yiv6120974075yqt2729129017"
                        id="yiv6120974075yqt88085">
                        <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 clear="none">
                          <br clear="none">
                          <a moz-do-not-send="true" rel="nofollow"
                            shape="rect"
                            class="yiv6120974075moz-txt-link-freetext"
                            target="_blank"
                            href="http://wiki.freeswitch.org/wiki/Sofia.conf.xml">http://wiki.freeswitch.org/wiki/Sofia.conf.xml</a><br
                            clear="none">
                          <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;

</pre>
                          <br clear="none">
                          <div><span><br clear="none">
                            </span></div>
                          <div><br clear="none">
                          </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 <a
                                    moz-do-not-send="true"
                                    rel="nofollow" shape="rect"
                                    class="yiv6120974075moz-txt-link-rfc2396E"
ymailto="mailto:victor.chukalovskiy@gmail.com" target="_blank"
                                    href="mailto:victor.chukalovskiy@gmail.com">&lt;victor.chukalovskiy@gmail.com&gt;</a><br
                                    clear="none">
                                  <b><span style="font-weight:bold;">To:</span></b>
                                  FreeSWITCH Users Help <a
                                    moz-do-not-send="true"
                                    rel="nofollow" shape="rect"
                                    class="yiv6120974075moz-txt-link-rfc2396E"
ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank"
                                    href="mailto:freeswitch-users@lists.freeswitch.org">&lt;freeswitch-users@lists.freeswitch.org&gt;</a>
                                  <br clear="none">
                                  <b><span style="font-weight:bold;">Sent:</span></b>
                                  Thursday, October 17, 2013 8:36 PM<br
                                    clear="none">
                                  <b><span style="font-weight:bold;">Subject:</span></b>
                                  [Freeswitch-users] How to set channel
                                  variable per SIP profile<br
                                    clear="none">
                                </font> </div>
                              <div class="yiv6120974075y_msg_container"><br
                                  clear="none">
                                Hi,<br clear="none">
                                <br clear="none">
                                Subject says it all. Is there a way to
                                set channel variable for all <br
                                  clear="none">
                                calls passing through a SIP profile?<br
                                  clear="none">
                                <br clear="none">
                                For example, I want all calls authorized
                                with ACL and hitting SIP <br
                                  clear="none">
                                profile to have country=foo. This has to
                                be done before hitting the <br
                                  clear="none">
                                dialplan.<br clear="none">
                                There is a bunch of "params" in the SIP
                                profile, but these aren't <br
                                  clear="none">
                                channel variables.<br clear="none">
                                <br clear="none">
                                Thanks!<br clear="none">
                                -Victor<br clear="none">
                                <br clear="none">
                                <br clear="none">
                                <br clear="none">
                                <br clear="none">
_________________________________________________________________________<br
                                  clear="none">
                                Professional FreeSWITCH Consulting
                                Services:<br clear="none">
                                <a moz-do-not-send="true" rel="nofollow"
                                  shape="rect"
                                  ymailto="mailto:consulting@freeswitch.org"
                                  target="_blank"
                                  href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br
                                  clear="none">
                                <a moz-do-not-send="true" rel="nofollow"
                                  shape="rect" target="_blank"
                                  href="http://www.freeswitchsolutions.com/">http://www.freeswitchsolutions.com</a><br
                                  clear="none">
                                <br clear="none">
                                FreeSWITCH-powered IP PBX: The CudaTel
                                Communication Server<br clear="none">
                                <a moz-do-not-send="true" rel="nofollow"
                                  shape="rect" target="_blank"
                                  href="http://www.cudatel.com/">http://www.cudatel.com</a><br
                                  clear="none">
                                <br clear="none">
                                Official FreeSWITCH Sites<br
                                  clear="none">
                                <a moz-do-not-send="true" rel="nofollow"
                                  shape="rect" target="_blank"
                                  href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br
                                  clear="none">
                                <a moz-do-not-send="true" rel="nofollow"
                                  shape="rect" target="_blank"
                                  href="http://wiki.freeswitch.org/">http://wiki.freeswitch.org</a><br
                                  clear="none">
                                <a moz-do-not-send="true" rel="nofollow"
                                  shape="rect" target="_blank"
                                  href="http://www.cluecon.com/">http://www.cluecon.com</a><br
                                  clear="none">
                                <br clear="none">
                                FreeSWITCH-users mailing list<br
                                  clear="none">
                                <a moz-do-not-send="true" rel="nofollow"
                                  shape="rect"
                                  ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org"
                                  target="_blank"
                                  href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br
                                  clear="none">
                                <a moz-do-not-send="true" rel="nofollow"
                                  shape="rect" target="_blank"
                                  href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br
                                  clear="none">
                                UNSUBSCRIBE:<a moz-do-not-send="true"
                                  rel="nofollow" shape="rect"
                                  target="_blank"
                                  href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br
                                  clear="none">
                                <a moz-do-not-send="true" rel="nofollow"
                                  shape="rect" target="_blank"
                                  href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br
                                  clear="none">
                                <br clear="none">
                                <br clear="none">
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <br clear="none">
                      <fieldset
                        class="yiv6120974075mimeAttachmentHeader"></fieldset>
                      <br clear="none">
                      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv6120974075moz-txt-link-abbreviated" ymailto="mailto:consulting@freeswitch.org" target="_blank" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv6120974075moz-txt-link-freetext" target="_blank" href="http://www.freeswitchsolutions.com/">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv6120974075moz-txt-link-freetext" target="_blank" href="http://www.cudatel.com/">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv6120974075moz-txt-link-freetext" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a>
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv6120974075moz-txt-link-freetext" target="_blank" href="http://wiki.freeswitch.org/">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv6120974075moz-txt-link-freetext" target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv6120974075moz-txt-link-abbreviated" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv6120974075moz-txt-link-freetext" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv6120974075moz-txt-link-freetext" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv6120974075moz-txt-link-freetext" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a>
</pre>
                    </blockquote>
                    <br clear="none">
                  </div>
                </div>
                <br>
                <div class="yqt2729129017" id="yqt42935">_________________________________________________________________________<br
                    clear="none">
                  Professional FreeSWITCH Consulting Services:<br
                    clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    ymailto="mailto:consulting@freeswitch.org"
                    href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br
                    clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    href="http://www.freeswitchsolutions.com/"
                    target="_blank">http://www.freeswitchsolutions.com</a><br
                    clear="none">
                  <br clear="none">
                  FreeSWITCH-powered IP PBX: The CudaTel Communication
                  Server<br clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br
                    clear="none">
                  <br clear="none">
                  Official FreeSWITCH Sites<br clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br
                    clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br
                    clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br
                    clear="none">
                  <br clear="none">
                  FreeSWITCH-users mailing list<br clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org"
                    href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br
                    clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                    target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br
                    clear="none">
                  UNSUBSCRIBE:<a moz-do-not-send="true" shape="rect"
                    href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                    target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br
                    clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br
                    clear="none">
                </div>
                <br>
                <br>
              </div>
            </div>
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>