Yes, that is what has me a little boggled. If I don't, calls do not go through so I
am obviously confused, but that is how I was finally able to get full duplex calls
working.
In Asterisk, I have a Kamailio endpoint listening for traffic from Kamailio. How would
Asterisk know the Contact information if Asterisk does not re-contact Kamailio for that
Information (since all the registration information is on Kamailio).
I was under the impression that it is best to keep the registrations on Kamailio, why
forward them. Below is my pjsip.conf.
When a user calls 30001(a)192.21.1.5 (Kamailio IP), the call is registered in Kamailio, and
Asterisk can contact Kamailio to get the
Contact information it needs.
Pjsip.conf
[kamailio](!)
type=endpoint
context=from-internal
transport=transport-tcp
media_address=100.20.30.125 //Asterisk PBX IP
...
aors=kamailio
[kamailio](kamailio)
aors=kamailio
[kamailio]
type=aor
contact=sip:192.21.1.5:5060
[kamailio]
type=identify ; Must be of type identify (default: "")
endpoint=kamailio
match=192.21.1.5
[30001](webrtc) //tls endpoint
auth=auth30001
aors=30001
[auth30001](auth-userpass)
password=12345
username=30001
[30001](aor-single-reg)
contact=sip:30001@192.21.1.5:5060
Am I totally wrong, even though it works?
Thank you all very much!
-Steve
-----Original Message-----
From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov
Sent: Sunday, May 13, 2018 9:19 AM
To: Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org>
Subject: Re: [SR-Users] Question about using Kamailio and Asterisk and flow of an
"INVITE"
On Sun, May 13, 2018 at 01:14:08PM +0000, Wilkins, Steve wrote:
In my configuration I have to use Asterisk as my PBX,
and I use
Kamailio in front of Asterisk accepting and inspecting calls. I have
many AORs, for which a phone can register to. I have noticed that,
depending on the call, when a call arrives it gets REGISTERED in
Kamailio (I do not forward the registration to Asterisk); Kamailio
sends the INVITE to Asterisk, and then Asterisk send the INVITE back
to Kamailio. The calls seem to work fine (Duplex Audi/Video). I
think I know why the INVITE is forwarded to Kamailio but have not been
able to work around it; the AOR's all have a Contact of Kamailio and I
think this is the reason for the forwarding of the INVITE. If I don't
set Kamailio as the Contact for the AOR's, calls do not work.
Are you sure that you are using the word AOR correctly?
If you're not forwarding registrations to Asterisk but instead storing them in
Kamailio's registrar, setting the Contact binding of an AOR to have the address of
that very same Kamailio registrar would make no sense.
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web:
http://www.evaristesys.com/,
http://www.csrpswitch.com/
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users