<div dir="ltr">I am going to replace the asterisk.<div><br></div><div>Currenty, asterisk proxies all call incoming into a public ip address to a third party gateway in a non-public ip address.</div><div><br></div><div>Asterisk server has 2 NICs.</div><div><br></div><div>Asterisk authenticates incoming call and autheticates itself in sip gateway.</div><div><br></div><div>I just need to forward the call and proxy RTP</div><div><br></div><div>I guess that is a matter of rewriting $ru (rewriteuri, rewriteuser, rewriteuserpass?)</div><div><br></div><div>Thank you,</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br><br></div><div>Atenciosamente,<br><br><img src="http://fastway.com.br/assinaturas/jpg/assinatura_branca_valter-min.jpg"><br></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2018-11-14 7:43 GMT-02:00 David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You would be authenticating the calls TWICE, is this what you want?<br>I found the easiest would be to just configure in your asterisk the Kamailio gateway as the proxy.<br><br>I haven’t worked with asterisk in a while, but in freeswitch al that’s needed is adding a parameter called “proxy” and set the Kamailio’s up address. All this with Kamailio’s default configuration.<br><br>This would only work if both asterisk and Kamailio have public addresses. No RTP proxying, they’d go straight to the provider.<br><br>Regards,<br><br>David<br><div class="gmail_quote"><div dir="ltr">On Wed, 14 Nov 2018 at 02:07, Valter Nogueira <<a href="mailto:valter@fastway.com.br" target="_blank">valter@fastway.com.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Henning,<div><br></div><div>thanks for your tip.</div><div><br></div><div>I just checked it and I am sure it will be valuable.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br><br></div><div>Atenciosamente,<br><br><img src="http://fastway.com.br/assinaturas/jpg/assinatura_branca_valter-min.jpg"><br></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra">
<br><div class="gmail_quote">2018-11-13 19:04 GMT-02:00 Henning Westerholt <span dir="ltr"><<a href="mailto:hw@kamailio.org" target="_blank">hw@kamailio.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Freitag, 9. November 2018, 21:25:15 CET schrieb Valter Nogueira:<br>
> Today, I use Asterisk as a SIP/RTP PROXY<br>
> <br>
> I proxy from customers Asterisks to a VOIP provider, in a multi-homed<br>
> server.<br>
> <br>
> Now, I want to move to Kamailio without any rupture in customer's<br>
> configuration.<br>
> <br>
> As anyone can imagine I am kind of lost.<br>
> <br>
> USER ACCOUNTS<br>
> <br>
> In Asterisk, I create a dynamic host account named ACCOUNT1 and I receive<br>
> in *FROM HEADER sip:ACCOUNT1@customer_ip_<wbr>address*<br>
> <br>
> In Kamailio, I have to define the account's domain like *kamctl add<br>
> <a href="mailto:ACCOUNT1@mydomain.com" target="_blank">ACCOUNT1@mydomain.com</a> <<a href="mailto:ACCOUNT1@mydomain.com" target="_blank">ACCOUNT1@mydomain.com</a>> password. *Kamailio just<br>
> accepts a REGISTER/INVITE from *<a href="mailto:ACCOUNT1@mydomain.com" target="_blank">ACCOUNT1@mydomain.com</a><br>
> <<a href="mailto:ACCOUNT1@mydomain.com" target="_blank">ACCOUNT1@mydomain.com</a>>*<br>
> <br>
> <br>
> SIP/RTP PROXY<br>
> <br>
> In Asterisk, I just dialout to the VOIP PROVIDER like *dial<br>
> (SIP/VOIP_ACCOUNT/${EXTENSION}<wbr>)*<br>
> <br>
> Asterisk does all the magic (it is a B2BUA). It bridges the new call and<br>
> media to the original call. Moreover, user don't know anything about how<br>
> call are completed, nor how credentials are setup and soon.<br>
> <br>
> In Kamailio, I guess that I have to use nat, tm and rtpproxy modules and<br>
> maybe uac. I am not sure how to setup it.<br>
> <br>
> Can someone send me a clue?<br>
<br>
Hello Valter,<br>
<br>
did you already looked into this tutorials? They are for a bit older version <br>
of Kamailio and asterisk, but should give you ideas about the direction.<br>
<br>
<a href="https://kb.asipto.com/asterisk:index" rel="noreferrer" target="_blank">https://kb.asipto.com/<wbr>asterisk:index</a><br>
<br>
Best regards,<br>
<br>
Henning<span class="HOEnZb"><font color="#888888"><br>
<span><font color="#888888"><br>
-- <br>
Henning Westerholt - <a href="https://skalatan.de/blog/" rel="noreferrer" target="_blank">https://skalatan.de/blog/</a><br>
Kamailio services - <a href="https://skalatan.de/services" rel="noreferrer" target="_blank">https://skalatan.de/services</a><br>
Kamailio security assessment - <a href="https://skalatan.de/de/assessment" rel="noreferrer" target="_blank">https://skalatan.de/de/<wbr>assessment</a><br>
</font></span></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</font></span></blockquote></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div></div>