[Freeswitch-users] sip trunking question
Steven Ward
steve.d.ward at gmail.com
Mon Mar 16 10:51:20 PDT 2009
Sure thing. Here it is:
<include>
<user id="$${default_provider}">
<gateway name="$${default_provider}">
<param name="username" value="$${default_provider_username}"/>
<param name="password" value="$${default_provider_password}"/>
<param name="from-user" value="$${default_provider_username}"/>
<param name="from-domain" value="$${default_provider_from_domain}"/>
<param name="expire-seconds" value="600"/>
<param name="register" value="$${default_provider_register}"/>
<param name="retry-seconds" value="30"/>
<param name="extension" value="$${default_provider_contact}"/>
<param name="contact-params" value="domain_name=$${domain}"/>
<param name="context" value="default"/>
</gateway>
</user>
</include>
In vars.conf I supplied the variables' values:
<X-PRE-PROCESS cmd="set" data="default_provider=pbx-sip-4.usa.internal.net
"/>
<X-PRE-PROCESS cmd="set" data="default_provider_username=pbx-sip-4"/>
<X-PRE-PROCESS cmd="set" data="default_provider_password=9997"/>
<X-PRE-PROCESS cmd="set" data="default_provider_from_domain=
pbx-sip-4.usa.internal.net"/>
<!-- true or false -->
<X-PRE-PROCESS cmd="set" data="default_provider_register=false"/>
<X-PRE-PROCESS cmd="set" data="default_provider_contact=1000"/>
2009/3/16 Brian West <brian at freeswitch.org>
> I would almost bet your xml is wrong when you moved it.. care to share that
> little bit of info?
> /b
>
> On Mar 16, 2009, at 12:39 PM, Steven Ward wrote:
>
> I simply moved the file defining the gateway to
> conf/sip_profiles/internal
>
> Well, when calling from extension 1000 to 70904, what I see on the console
> (debug mode) is:
>
> 2009-03-16 13:35:39 [DEBUG] switch_core_state_machine.c:152
> switch_core_standard_on_execute()
> sofia/internal/1000 at pbx-sip-3.usa.internal.net Execute
> bridge(sofia/gateway/${default_gateway}/70904)
> 2009-03-16 13:35:39 [DEBUG] switch_core_session.c:1286
> switch_core_session_exec() sofia/internal/1000 at pbx-sip-3.usa.internal.net Expanded
> String bridge(sofia/gateway/pbx-sip-4.usa.internal.net/70904)
> 2009-03-16 13:35:39 [ERR] mod_sofia.c:2379 sofia_outgoing_channel() Invalid
> Gateway
> 2009-03-16 13:35:39 [NOTICE] mod_sofia.c:2591 sofia_outgoing_channel()
> Close Channel N/A [CS_NEW]
> 2009-03-16 13:35:39 [ERR] switch_ivr_originate.c:1425
> switch_ivr_originate() Cannot create outgoing channel of type [sofia] cause:
> [INVALID_NUMBER_FORMAT]
> 2009-03-16 13:35:39 [DEBUG] switch_ivr_originate.c:2014
> switch_ivr_originate() Originate Resulted in Error Cause: 28
> [INVALID_NUMBER_FORMAT]
> 2009-03-16 13:35:39 [INFO] mod_dptools.c:1998 audio_bridge_function()
> Originate Failed. Cause: INVALID_NUMBER_FORMAT
>
>
> What else am I missing and not doing right? Thanks again for your help.
>
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090316/1bdd6466/attachment-0002.html
More information about the FreeSWITCH-users
mailing list