Thank<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "> you for the responses. You solved my problem.</span><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Regards,</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">--</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Samuel Macedo<br></span></font><br><div class="gmail_quote">On 9 June 2010 20:34, leonardo alves <span dir="ltr">&lt;<a href="mailto:telteclistas@gmail.com" target="_blank">telteclistas@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No you register 2 gateways.<div><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">
&lt;include&gt;
  &lt;gateway name=&quot;Nameofthegateway&quot;&gt;
    &lt;param name=&quot;username&quot; value=&quot;YOUR SIP user name&quot;/&gt;
    &lt;param name=&quot;password&quot; value=&quot;your sip password&quot;/&gt;
    &lt;param name=&quot;proxy&quot; value=&quot;<a href="http://sip.domain.com" target="_blank">sip.domain.com</a>&quot;/&gt;
    &lt;param name=&quot;from-domain&quot; value=&quot;<a href="http://sip.domain.com" target="_blank">sip.domain.com</a>&quot;/&gt;
    &lt;param name=&quot;expire-seconds&quot; value=&quot;3600&quot;/&gt;
    &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;
  &lt;/gateway&gt;
&lt;/include&gt;</pre></span><span style="font-family:monospace;font-size:13px;line-height:14px;white-space:pre">&lt;include&gt;
  &lt;gateway name=&quot;Nameofthegateway2&quot;&gt;
    &lt;param name=&quot;username&quot; value=&quot;YOUR SIP user name2&quot;/&gt;
    &lt;param name=&quot;password&quot; value=&quot;your sip password2&quot;/&gt;
    &lt;param name=&quot;proxy&quot; value=&quot;<a href="http://sip.domain.com" target="_blank">sip.domain.com</a>&quot;/&gt;
    &lt;param name=&quot;from-domain&quot; value=&quot;<a href="http://sip.domain.com" target="_blank">sip.domain.com</a>&quot;/&gt;
    &lt;param name=&quot;expire-seconds&quot; value=&quot;3600&quot;/&gt;
    &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;
  &lt;/gateway&gt;
&lt;/include&gt;</span></div><div><font face="monospace"><span style="line-height:14px;white-space:pre"><br></span></font></div><div><font face="monospace"><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 face="monospace"><span style="line-height:14px;white-space:pre">Leonardo<font color="#888888"><br></font></span></font><div><div></div><div><div class="gmail_quote">On Wed, Jun 9, 2010 at 5:19 PM, Samuel Macedo <span dir="ltr">&lt;<a href="mailto:macedoslm@gmail.com" target="_blank">macedoslm@gmail.com</a>&gt;</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="&#39;courier new&#39;, monospace">&lt;include&gt;</font></div>
<div><font face="&#39;courier new&#39;, monospace"> &lt;gateway name=&quot;<a href="http://gateway.com" target="_blank">gateway.com</a>&quot;&gt;</font></div><div><font face="&#39;courier new&#39;, monospace">  &lt;param name=&quot;username&quot; value=&quot;user&quot;/&gt;</font></div>



<div><font face="&#39;courier new&#39;, monospace">  &lt;param name=&quot;password&quot; value=&quot;pass&quot;/&gt;</font></div><div><font face="&#39;courier new&#39;, monospace">  &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;</font></div>



<div><font face="&#39;courier new&#39;, monospace"> &lt;/gateway&gt;</font></div><div><font face="&#39;courier new&#39;, monospace">&lt;/include&gt;</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>
<div><br></div><br><div class="gmail_quote">On 8 June 2010 13:03, Samuel Macedo <span dir="ltr">&lt;<a href="mailto:macedoslm@gmail.com" target="_blank">macedoslm@gmail.com</a>&gt;</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">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</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">&lt;<a href="mailto:macedoslm@gmail.com" target="_blank">macedoslm@gmail.com</a>&gt;</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" 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>
<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>