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:2...@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@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to