<div dir="ltr">Hi,<div><br></div><div>I think that this issue is more specific for asterisk than kamailio.</div><div><br></div><div>Maybe configuration of outbound proxy may help here but I am not sure.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 22, 2017 at 3:50 PM, Cyrille Demaret <span dir="ltr"><<a href="mailto:cyrille@omail.be" target="_blank">cyrille@omail.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm new to Kamailio and I'm trying to use it as a front SIP proxy to one or<br>
more asterisk. Unlike to the "Kamailio 4.0.x and Asterisk 11.3.0 Realtime<br>
Integration" tutorials, I would like to let Kamailio handle registrations,<br>
calls between users and other basic functionalities. Asterisk will only<br>
handle advanced features like voicemail, advanced dialplan configuration,.<br>
My problem is that It needs to be multidomain.<br>
<br>
My network will be as follow with 2 network interfaces for Kamailio and a<br>
private lan between Kamailio and Asterisk :<br>
<br>
Public interface ip 1.2.3.4 ----> [Kamailio] <----- Private interface<br>
192.168.100.10 <----------------> 192.168.100.11 [Asterisk]<br>
<br>
When I send a call to asterisk, the domain is sent in the from field of the<br>
INVITE and I can do what I need on the Asterisk dialplan (I can get the SIP<br>
domain using the ${SIPDOMAIN} variable). My problem is when I need to send a<br>
call back to Kamailio for example to reach another user of the domain.<br>
<br>
I'm using Asterisk 14 with PJSIP with the following config :<br>
<br>
[kamailio]<br>
type=endpoint<br>
transport=transport-udp<br>
context=from-kamailio<br>
disallow=all<br>
allow=ulaw<br>
aors=kamailio<br>
<br>
[kamailio]<br>
type=aor<br>
contact=sip:<a href="http://192.168.100.10:5060" rel="noreferrer" target="_blank">192.168.100.10:<wbr>5060</a><br>
<br>
[kamailio]<br>
type=identify<br>
endpoint=kamailio<br>
match=192.168.100.10<br>
<br>
If I use this dial string in my Asterisk dialplan "PJSIP/ kamailio<br>
/<a href="mailto:sip%3A200@testdomain.com">sip:200@testdomain.com</a>", Asterisk contact directly <a href="http://testcomain.com" rel="noreferrer" target="_blank">testcomain.com</a> without<br>
going through the local IP of my Kamailio.<br>
<br>
I can't send a domain to Kamailio in the INVITE request.<br>
<br>
Does anyone can help me on this or maybe simply tell me that I'm not going<br>
to the good direction? :)<br>
<br>
Thank you,<br>
<br>
Cyrille<br>
<br>
<br>
<br>
<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">С уважением,<br>Владислав Захожай<br><br></div></div>
</div>