[Freeswitch-users] mod_sofia: Gateway variables not set for inbound calls

Alexander Haugg Alexander.Haugg at c4b.de
Fri Jul 12 11:44:47 MSD 2013


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 at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Alexander Haugg
Sent: Freitag, 12. Juli 2013 08:38
To: freeswitch-users at 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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130712/baeddeb6/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list