[SR-Users] Kamailio Peer Trunk in Asterisk

Isravel Raja Thangamani iraja at ebusinessbpo.com
Tue Mar 12 23:01:39 CET 2019


Hi,

I wanted to achieve the following scenario with Kamailio and
Asterisk/FreeSwitch

Kamailio as a trunk for Receiving incoming calls and forward to Asterisk
and Make outgoing calls. My current working setup like this


VoIP Provider -> Kamailio -> Asterisk Clusters

Where Kamailio(NAT for public) and Asterisk in the same local network, So I
had to do only one thing just create the SIP trunk in Asterisk for
authenticating all the Kamailio Incoming calls and making outgoing calls
like this

[kamailio]
host=172.18.1.1
type=friend
disallow=all
allow=ulaw
context=trunkinbound

This is IP based authentication, This is working fine since both servers
are in the same local network or having the public IP's

What I want is, I want to register the Kamailio Trunk in an asterisk with
Username Password authentication,

My current setup for making that,

VoIP Provider -> Kamailio(Public) -> Asterisk(Randomly Changing Public IP,
Broadband Connection)

I want to register Kamailio SIP in asterisk trunk so that I can forward the
incoming calls to asterisk via SIP extension

[kamailio]
host=172.18.1.1
user=user
secret=password
type=friend
disallow=all
allow=ulaw
context=trunkinbound

Let me know if anyone doesn't understand my concern



Thanks & Regards,


Isravel Raja N. Thangamani

Work US: +1 424 354 8443 | Home US: +1 480 588 2008
Mobile PH: +63 998 596 7805 | Off Ext: 7901
Address: 15th Fl., Cebu IT Tower - 1, Cebu Business Park, Cebu City,
Philippines 6000
Website: www.azpired.com | Email: iraja at ebusinessbpo.com
<iraja at ebusinessbpo.com>

Follow us

<https://facebook.com/azpiredinc/>. <https://twitter.com/azpired>.
<https://plus.google.com/+AzpiredCebuCity>.
<https://www.youtube.com/channel/UCrFkeO0pxugkGMtcTRjGxpQ>

The information contained in this email message and any attachments is
confidential and intended only for the addressee(s). If you are not an
addressee, you may not copy or disclose the information, or act upon it,
and you should delete it entirely from your email system. Please notify the
sender that you received this email in error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190313/43a84331/attachment.html>


More information about the sr-users mailing list