[SR-Users] Kamailio / Asterisk and multidomain

Vladyslav Zakhozhai v.zakhozhai at gmail.com
Tue Aug 22 15:09:55 CEST 2017


Hi,

I think that this issue is more specific for asterisk than kamailio.

Maybe configuration of outbound proxy may help here but I am not sure.

On Tue, Aug 22, 2017 at 3:50 PM, Cyrille Demaret <cyrille at omail.be> wrote:

> Hi,
>
> I'm new to Kamailio and I'm trying to use it as a front SIP proxy to one or
> more asterisk. Unlike to the "Kamailio 4.0.x and Asterisk 11.3.0 Realtime
> Integration" tutorials, I would like to let Kamailio handle registrations,
> calls between users and other basic functionalities. Asterisk will only
> handle advanced features like voicemail, advanced dialplan configuration,.
> My problem is that It needs to be multidomain.
>
> My network will be as follow with 2 network interfaces for Kamailio and a
> private lan between Kamailio and Asterisk :
>
> Public interface ip 1.2.3.4 ----> [Kamailio] <----- Private interface
> 192.168.100.10 <----------------> 192.168.100.11 [Asterisk]
>
> When I send a call to asterisk, the domain is sent in the from field of the
> INVITE and I can do what I need on the Asterisk dialplan (I can get the SIP
> domain using the ${SIPDOMAIN} variable). My problem is when I need to send
> a
> call back to Kamailio for example to reach another user of the domain.
>
> I'm using Asterisk 14 with PJSIP with the following config :
>
> [kamailio]
> type=endpoint
> transport=transport-udp
> context=from-kamailio
> disallow=all
> allow=ulaw
> aors=kamailio
>
> [kamailio]
> type=aor
> contact=sip:192.168.100.10:5060
>
> [kamailio]
> type=identify
> endpoint=kamailio
> match=192.168.100.10
>
> If I use this dial string in my Asterisk dialplan "PJSIP/ kamailio
> /sip:200 at testdomain.com", Asterisk contact directly testcomain.com without
> going through the local IP of my Kamailio.
>
> I can't send a domain to Kamailio in the INVITE request.
>
> Does anyone can help me on this or maybe simply tell me that I'm not going
> to the good direction? :)
>
> Thank you,
>
> Cyrille
>
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>



-- 
С уважением,
Владислав Захожай
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170822/c9c40f89/attachment.html>


More information about the sr-users mailing list