<div dir="ltr">If it&#39;s not a registered gateway FS won&#39;t be able to link the incoming call to a specific gateway. You could do this in the dialplan by setting varaibles when matching a specific remote IP.<div><br></div>
<div style>/Peter</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/12 Alexander Haugg <span dir="ltr">&lt;<a href="mailto:Alexander.Haugg@c4b.de" target="_blank">Alexander.Haugg@c4b.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div lang="DE" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span style="color:#1f497d">Addition<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<pre><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">if i use the api-command: </span>sofia_gateway_data &lt;gateway_name&gt; ivar &lt;name&gt;<u></u><u></u></pre>
<p class="MsoNormal"><span style="color:#1f497d">i get the value
 of the inbound variable, but in the channel i can&#39;t found it.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">for outbound
 i can get the value via the api comand or as channel var, in the dialplan like this ${variable_my_var}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><a name="13fd1de31ad55496__MailOriginal"><b><span lang="EN-US">From:</span></b></a><span><span lang="EN-US">
 <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>]
<b>On Behalf Of </b>Alexander Haugg<br>
<b>Sent:</b> Freitag, 12. Juli 2013 08:38<br>
<b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> [Freeswitch-users] mod_sofia: Gateway variables not set for inbound calls<u></u><u></u></span></span></p>
</div>
</div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>for my gateway in the sofia.conf.xml the variables will not set for an inbound call.<u></u><u></u></span></p>
<p class="MsoNormal"><span>for outbound it works successfully.<u></u><u></u></span></p>
<p class="MsoNormal"><span>here my profiles and gateway settings.<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>is there a config fault?<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">&lt;configuration name=&quot;sofia.conf&quot; description=&quot;sofia Endpoint&quot;&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                    &lt;!--
</span></span><a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files" target="_blank"><span><span style="font-size:10.0pt">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</span></span><span></span></a><span><span style="font-size:10.0pt;color:#2f5496">
 --&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"><u></u> <u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                    &lt;global_settings&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                   &lt;param name=&quot;log-level&quot; value=&quot;0&quot;/&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                   &lt;!-- &lt;param name=&quot;auto-restart&quot; value=&quot;false&quot;/&gt; --&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                   &lt;param name=&quot;debug-presence&quot; value=&quot;0&quot;/&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                    &lt;/global_settings&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"><u></u> <u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                    &lt;profiles&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                   &lt;profile name=&quot;profile_H3K_42&quot;&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                   &lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"><u></u> <u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                   &lt;aliases&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                   &lt;/aliases&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"><u></u> <u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                   &lt;domains&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;domain name=&quot;all&quot; alias=&quot;false&quot; parse=&quot;true&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                   &lt;/domains&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"><u></u> <u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                   &lt;settings&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;user-agent-string&quot; value=&quot;FreeSWITCH&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;sip-trace&quot; value=&quot;no&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;rfc2833-pt&quot; value=&quot;101&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;sip-port&quot; value=&quot;$${external_sip_port}&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;dtmf-duration&quot; value=&quot;100&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;inbound-codec-prefs&quot; value=&quot;$${global_codec_prefs}&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;outbound-codec-prefs&quot; value=&quot;$${outbound_codec_prefs}&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;hold-music&quot; value=&quot;$${hold_music}&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;rtp-timer-name&quot; value=&quot;soft&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;local-network-acl&quot; value=&quot;localnet.auto&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;manage-presence&quot; value=&quot;false&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;inbound-codec-negotiation&quot; value=&quot;generous&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;nonce-ttl&quot; value=&quot;60&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;auth-calls&quot; value=&quot;false&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;rtp-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;sip-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;ext-rtp-ip&quot; value=&quot;$${external_rtp_ip}&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;ext-sip-ip&quot; value=&quot;$${external_sip_ip}&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;rtp-timeout-sec&quot; value=&quot;300&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;rtp-hold-timeout-sec&quot; value=&quot;1800&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;!-- 3pcc is used by Hipath3000 / 4000 --&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;enable-3pcc&quot; value=&quot;true&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"><u></u> <u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;!-- on inbound calls make the uuid of the session equal to the sip call id of that
 call --&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;inbound-use-callid-as-uuid&quot; value=&quot;true&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;!-- on outbound calls set the callid to match the uuid of the session --&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;param name=&quot;outbound-use-uuid-as-callid&quot; value=&quot;true&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                   &lt;/settings&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                   &lt;gateways&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;gateway name=&quot;H3K_42&quot;&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;realm&quot; value=&quot;${H3K_ip}:5060&quot; /&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;username&quot; value=&quot;&quot; /&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;password&quot; value=&quot;&quot; /&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;from-user&quot; value=&quot;&quot; /&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;from-domain&quot; value=&quot;${H3K_ip}&quot; /&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;expire-seconds&quot; value=&quot;600&quot; /&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;register&quot; value=&quot;false&quot; /&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;retry-seconds&quot; value=&quot;30&quot; /&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;extension&quot; value=&quot;&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;register-transport&quot; value=&quot;udp&quot;/&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;extension-in-contact&quot; value=&quot;true&quot;/&gt;                 
<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;param name=&quot;ping&quot; value=&quot;30&quot; /&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                 
<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;variables&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                                  &lt;variable name=&quot;prefix_pattern&quot; value=&quot;^42(.+)$&quot; /&gt;<u></u><u></u></span></span></p>

<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                                  &lt;/variables&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                                   &lt;/gateway&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                                   &lt;/gateways&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                                   &lt;/profile&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">                &lt;/profiles&gt;<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496">&lt;/configuration&gt;                               
<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"><u></u> <u></u></span></span></p>
<p class="MsoNormal"><span>Thanks for your Help!</span><span></span><span style="font-size:10.0pt;color:#2f5496"><u></u><u></u></span></p>
</div>
</div>

<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>
<br></blockquote></div><br></div>