<div dir="ltr">If it's not a registered gateway FS won'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"><<a href="mailto:Alexander.Haugg@c4b.de" target="_blank">Alexander.Haugg@c4b.de</a>></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:"Calibri","sans-serif";color:#1f497d">if i use the api-command: </span>sofia_gateway_data <gateway_name> ivar <name><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'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"><configuration name="sofia.conf" description="sofia Endpoint"><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <!--
</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">
--><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"> <global_settings><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="log-level" value="0"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <!-- <param name="auto-restart" value="false"/> --><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="debug-presence" value="0"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> </global_settings><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"> <profiles><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <profile name="profile_H3K_42"><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="debug" value="0"/><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"> <aliases><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> </aliases><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"> <domains><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <domain name="all" alias="false" parse="true"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> </domains><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"> <settings><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="user-agent-string" value="FreeSWITCH"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="debug" value="0"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="sip-trace" value="no"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="rfc2833-pt" value="101"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="sip-port" value="$${external_sip_port}"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="dialplan" value="XML"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="context" value="public"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="dtmf-duration" value="100"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="hold-music" value="$${hold_music}"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="rtp-timer-name" value="soft"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="local-network-acl" value="localnet.auto"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="manage-presence" value="false"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="inbound-codec-negotiation" value="generous"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="nonce-ttl" value="60"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="auth-calls" value="false"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="rtp-ip" value="$${local_ip_v4}"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="sip-ip" value="$${local_ip_v4}"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="ext-rtp-ip" value="$${external_rtp_ip}"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="ext-sip-ip" value="$${external_sip_ip}"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="rtp-timeout-sec" value="300"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="rtp-hold-timeout-sec" value="1800"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <!-- 3pcc is used by Hipath3000 / 4000 --><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="enable-3pcc" value="true"/><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"> <!-- on inbound calls make the uuid of the session equal to the sip call id of that
call --><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="inbound-use-callid-as-uuid" value="true"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <!-- on outbound calls set the callid to match the uuid of the session --><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="outbound-use-uuid-as-callid" value="true"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> </settings><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <gateways><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <gateway name="H3K_42"><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="realm" value="${H3K_ip}:5060" /><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="username" value="" /><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="password" value="" /><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="from-user" value="" /><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="from-domain" value="${H3K_ip}" /><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="expire-seconds" value="600" /><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="register" value="false" /><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="retry-seconds" value="30" /><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="extension" value=""/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="register-transport" value="udp"/><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="extension-in-contact" value="true"/>
<u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <param name="ping" value="30" /><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"> <variables><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> <variable name="prefix_pattern" value="^42(.+)$" /><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> </variables><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> </gateway><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> </gateways><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> </profile><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"> </profiles><u></u><u></u></span></span></p>
<p class="MsoNormal"><span><span style="font-size:10.0pt;color:#2f5496"></configuration>
<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>