[Freeswitch-users] sip trunking question

Brian West brian at freeswitch.org
Mon Mar 16 10:53:32 PDT 2009


First off since its not in the user directory anymore you'll have to  
unwrap the gateway from inside the user tags  ;)

/b

On Mar 16, 2009, at 12:51 PM, Steven Ward wrote:

> 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"/>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090316/250e0569/attachment-0002.html 


More information about the FreeSWITCH-users mailing list