[Freeswitch-users] More than One DID

Frank Carmickle frank at carmickle.com
Tue Sep 29 10:03:25 PDT 2009


On Tue, Sep 29, Michael Gende wrote:
> Here they are, mildly modified:
> 
> ~/conf/sip_profiles/external/gateway1212.xml (name changed):
> 
> <include>
>   <gateway name="33.44.55.66">
>         <param name="username" value="8158381212"/>
>         <param name="password" value="bloodyblahbloodyblah"/>
>         <param name="expire-seconds" value="60"/>>
>         <!--/// do not register if value="false"///-->
>         <param name="register" value="true"/>
>         <param name="register-transport" value="udp"/>
>         <param name="retry-seconds" value="30"/>
>         <!--Use the callerid of an inbound call in the from field on
> outbound calls via this gateway -->
>         <param name="caller-id-in-from" value="false"/>
>         <param name="contact-params" value="tport=5060"/>
>         <!--send an options ping every x seconds, failure will unregister
> and/or mark it down-->
>         <param name="ping" value="25"/>
>   </gateway>
> </include>
> 
> ~/conf/sip_profiles/external/gateway1234.xml (name changed for pseudo tn):
> 
> <include>
>   <gateway name="33.44.55.66">
>         <param name="username" value="8158381234"/>
>         <param name="password" value="blahbloodyblahblahblah"/>
>         <param name="expire-seconds" value="60"/>>
>         <!--/// do not register if value="false"///-->
>         <param name="register" value="true"/>
>         <param name="register-transport" value="udp"/>
>         <param name="retry-seconds" value="30"/>
>         <!--Use the callerid of an inbound call in the from field on
> outbound calls via this gateway -->
>         <param name="caller-id-in-from" value="false"/>
>         <param name="contact-params" value="tport=5060"/>
>         <!--send an options ping every x seconds, failure will unregister
> and/or mark it down-->
>         <param name="ping" value="25"/>
>   </gateway>
> </include>
> 
> The gateway name is the same for both. Note that each registers and passes
> calls both ways on their own. I'd like to use 'em at the same time.

This is what I was suspecting.  You can't have two gateways with the same name.  If you need to have them be the same domain set that with the option 

<param name="realm" value="33.44.55.66"/>

HTH
--FC




More information about the FreeSWITCH-users mailing list