<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks!!! I play with that and share the result!!<br>
<br>
<br>
<div class="moz-cite-prefix">El 19/02/15 a las 18:12, Barry Flanagan
escribió:<br>
</div>
<blockquote
cite="mid:CALJb54_MpZieMPM0t+rmJUebzKv188TtbwA3XVxRKcKkMbbSAw@mail.gmail.com"
type="cite">
<div dir="ltr">On 19 February 2015 at 16:45, Andres Gmail <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:aruizmorillas@gmail.com" target="_blank">aruizmorillas@gmail.com</a>></span>
wrote:<br>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list,<br>
<br>
I have an asterisk configured as vPBX. I need to configure
multiple trunks against NGCP but Asterisk does not support
well several trunks with the same "host" and starts doing
weird things ....<br>
<br>
What would be the best way to configure multiple trunks
from Asterisk to NGCP?<br>
<br>
I set "allowguest = yes" and context by defaultis
"incoming" where I set all DDI's clients. In the NGCP I
have marked "e164_to_ruri" NGCP to send the called number
and this works well.<br>
<br>
How can we make outgoing calls from Asterisk with
different sip username?<br>
</blockquote>
<div><br>
</div>
<div>We do this by assigning each Asterisk tenant with a
peer (we use Asterisk Realtime db for this) and then send
any outbound calls from each tenant via
<number>@<tenant_peer><br>
<br>
</div>
<div>The key peer settings are:</div>
<br>
<div>defaultuser: set this to the username you have set up
in NGCP for this subscriber<br>
</div>
<div>fromdomain: set this to the domain the NGCP subscriber
is in<br>
</div>
<div>remotesecret: set this to the NGCP SIP password.<br>
</div>
<div>outboundproxy: set this to the ip address of your NGCP
server) this is the trick - we are now telling Asterisk to
forget about the actual domain, but to send the calls via
this proxy. It will get sent as defaultuser@fromdomain
which is what the NGCP expects to see, and it will
authenticate the call using the remotesecret.<br>
<br>
</div>
<div>On NGCP, we set up these Asterisk users as standard
subscribers with password, but put in a Permanent
Registration like "sip:<ngcp_username>@<ip or
hostname of your * box or proxy>:port" - so any calls
from NGCP will be send to Asterisk. On Asterisk we have
just a single inbound peer from NGCP - no need to set
allowguests or anything. All calls from NGCP ->
Asterisk just come in on the one trunk. Outbound calls
Asterisk -> NGCP however, go out via the individual
tenant subscribers so NGCP picks up the correct subscriber
for the call.<br>
<br>
</div>
<div>Hope this helps.<br>
<br>
</div>
<div>-Barry Flanagan<br>
<br>
</div>
<div><br>
<br>
</div>
<div><br>
<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks in advance.<span class="HOEnZb"><font
color="#888888"><br>
<br>
<br>
-- <br>
Saludos<br>
---<br>
Andrés Ruiz<br>
<br>
_______________________________________________<br>
Spce-user mailing list<br>
<a moz-do-not-send="true"
href="mailto:Spce-user@lists.sipwise.com"
target="_blank">Spce-user@lists.sipwise.com</a><br>
<a moz-do-not-send="true"
href="https://lists.sipwise.com/listinfo/spce-user"
target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
</font></span></blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Saludos
---
Andrés Ruiz
</pre>
</body>
</html>