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.

/Peter


2013/7/12 Alexander Haugg <Alexander.Haugg@c4b.de>

Addition

 

if i use the api-command: sofia_gateway_data <gateway_name> ivar <name>

i get the value of the inbound variable, but in the channel i can't found it.

for outbound i can get the value via the api comand or as channel var, in the dialplan like this ${variable_my_var}

 

 

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Alexander Haugg
Sent: Freitag, 12. Juli 2013 08:38
To: freeswitch-users@lists.freeswitch.org
Subject: [Freeswitch-users] mod_sofia: Gateway variables not set for inbound calls

 

Hi,

 

for my gateway in the sofia.conf.xml the variables will not set for an inbound call.

for outbound it works successfully.

here my profiles and gateway settings.

 

is there a config fault?

 

<configuration name="sofia.conf" description="sofia Endpoint">

                    <!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -->

 

                    <global_settings>

                                   <param name="log-level" value="0"/>

                                   <!-- <param name="auto-restart" value="false"/> -->

                                   <param name="debug-presence" value="0"/>

                    </global_settings>

 

                    <profiles>

                                   <profile name="profile_H3K_42">

                                                   <param name="debug" value="0"/>

 

                                                   <aliases>

                                                   </aliases>

 

                                                   <domains>

                                                                   <domain name="all" alias="false" parse="true"/>

                                                   </domains>

 

                                                   <settings>

                                                                   <param name="user-agent-string" value="FreeSWITCH"/>

                                                                   <param name="debug" value="0"/>

                                                                   <param name="sip-trace" value="no"/>

                                                                   <param name="rfc2833-pt" value="101"/>

                                                                   <param name="sip-port" value="$${external_sip_port}"/>

                                                                   <param name="dialplan" value="XML"/>

                                                                   <param name="context" value="public"/>

                                                                   <param name="dtmf-duration" value="100"/>

                                                                   <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/>

                                                                   <param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/>

                                                                   <param name="hold-music" value="$${hold_music}"/>

                                                                   <param name="rtp-timer-name" value="soft"/>

                                                                   <param name="local-network-acl" value="localnet.auto"/>

                                                                   <param name="manage-presence" value="false"/>

                                                                   <param name="inbound-codec-negotiation" value="generous"/>

                                                                   <param name="nonce-ttl" value="60"/>

                                                                   <param name="auth-calls" value="false"/>

                                                                   <param name="rtp-ip" value="$${local_ip_v4}"/>

                                                                   <param name="sip-ip" value="$${local_ip_v4}"/>

                                                                   <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>

                                                                   <param name="ext-sip-ip" value="$${external_sip_ip}"/>

                                                                   <param name="rtp-timeout-sec" value="300"/>

                                                                   <param name="rtp-hold-timeout-sec" value="1800"/>

                                                                   <!-- 3pcc is used by Hipath3000 / 4000 -->

                                                                   <param name="enable-3pcc" value="true"/>

 

                                                                   <!-- on inbound calls make the uuid of the session equal to the sip call id of that call -->

                                                                   <param name="inbound-use-callid-as-uuid" value="true"/>

                                                                   <!-- on outbound calls set the callid to match the uuid of the session -->

                                                                   <param name="outbound-use-uuid-as-callid" value="true"/>

                                                   </settings>

                                                   <gateways>

                                                                   <gateway name="H3K_42">

                                                                                  <param name="realm" value="${H3K_ip}:5060" />

                                                                                  <param name="username" value="" />

                                                                                  <param name="password" value="" />

                                                                                  <param name="from-user" value="" />

                                                                                  <param name="from-domain" value="${H3K_ip}" />

                                                                                  <param name="expire-seconds" value="600" />

                                                                                  <param name="register" value="false" />

                                                                                  <param name="retry-seconds" value="30" />

                                                                                  <param name="extension" value=""/>

                                                                                  <param name="register-transport" value="udp"/>

                                                                                  <param name="extension-in-contact" value="true"/>                 

                                                                                  <param name="ping" value="30" />

                                                                                 

                                                                                  <variables>

                                                                                                  <variable name="prefix_pattern" value="^42(.+)$" />

                                                                                  </variables>

                                                                   </gateway>

                                                   </gateways>

                                   </profile>

                </profiles>

</configuration>                               

 

Thanks for your Help!


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org