No you register 2 gateways.<div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><pre style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; ">
<include>
<gateway name="Nameofthegateway">
<param name="username" value="YOUR SIP user name"/>
<param name="password" value="your sip password"/>
<param name="proxy" value="<a href="http://sip.domain.com">sip.domain.com</a>"/>
<param name="from-domain" value="<a href="http://sip.domain.com">sip.domain.com</a>"/>
<param name="expire-seconds" value="3600"/>
<param name="register" value="true"/>
</gateway>
</include></pre></span><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 14px; white-space: pre; "><include>
<gateway name="Nameofthegateway2">
<param name="username" value="YOUR SIP user name2"/>
<param name="password" value="your sip password2"/>
<param name="proxy" value="<a href="http://sip.domain.com">sip.domain.com</a>"/>
<param name="from-domain" value="<a href="http://sip.domain.com">sip.domain.com</a>"/>
<param name="expire-seconds" value="3600"/>
<param name="register" value="true"/>
</gateway>
</include></span></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="line-height: 14px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="line-height: 14px; white-space: pre;">And in the dial plan you can do the bridge with the gateway you want using the name of the gateway.</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="line-height: 14px; white-space: pre;">Leonardo<br></span></font><div class="gmail_quote">On Wed, Jun 9, 2010 at 5:19 PM, Samuel Macedo <span dir="ltr"><<a href="mailto:macedoslm@gmail.com">macedoslm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">How can I set the gateway domain? Can it be different from the gateway name?<div><div>Example:</div><div><br></div><div>
<div><font face="'courier new', monospace"><include></font></div>
<div><font face="'courier new', monospace"> <gateway name="<a href="http://gateway.com" target="_blank">gateway.com</a>"></font></div><div><font face="'courier new', monospace"> <param name="username" value="user"/></font></div>
<div><font face="'courier new', monospace"> <param name="password" value="pass"/></font></div><div><font face="'courier new', monospace"> <param name="register" value="true"/></font></div>
<div><font face="'courier new', monospace"> </gateway></font></div><div><font face="'courier new', monospace"></include></font></div><div><br></div>
<div><b>Gateway Name</b>: <a href="http://gateway.com" target="_blank">gateway.com</a></div><div><b>Gateway Domain</b>: <a href="http://gateway.com" target="_blank">gateway.com</a></div><div><br></div><div>Thanks,</div><div>
--</div><div>Samuel Macedo</div><div><div></div><div class="h5">
<div><br></div><br><div class="gmail_quote">On 8 June 2010 13:03, Samuel Macedo <span dir="ltr"><<a href="mailto:macedoslm@gmail.com" target="_blank">macedoslm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But the name of the gateway is the domain that will be used to register, or no?<div><br></div><div>--</div><div>Samuel Macedo<div><div></div><div><br><br><div class="gmail_quote">On 8 June 2010 06:46, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Configure the same gateway twice, with different names. Which gateway name you use will determine which username is used.<br>
<br><br><br><div class="gmail_quote"><div><div></div><div>On 7 June 2010 20:26, Samuel Macedo <span dir="ltr"><<a href="mailto:macedoslm@gmail.com" target="_blank">macedoslm@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div>Hi,<div><br></div><div>I want to use the same Gateway but with different users and passwords to make and receive calls.</div>
<div>This is the scenario:</div><div>I have 2 users in a PSTN gateway, I want to connect 2 Freeswitch UserAgents (Sofia External) to this gateway so I can receive inbound calls. And to make a Outbound call I want to decide witch UserAgent I will use.</div>
<div><br></div><div>Is there anyway to do this?</div><div><br></div><div>Regards,</div><div>--</div><font color="#888888"><div>Samuel Macedo</div><div>Belo Horizonte - Brazil</div>
</font><br></div></div><div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></div></blockquote></div><br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>