Heh heh.

Guess it pays not to rush. :)

Got it working now - without registering.

But another thing - what if I want to set my two boxes up for registering?
I see that I can set my register parameter to true, but how do I control the
register string that's sent to the other box?



2009/3/16 Brian West <[email protected]>

> 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"/>
>
>
>
>
> _______________________________________________
> Freeswitch-users mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to