Hello,

I already shared a pretty well explained tutorial.

It's pretty straightforward starting from the default kamailio
configuration https://github.com/kamailio/kamailio/blob/5.2/etc/kamailio.cfg
(that's
for 5.2, use whichever version you have)
You need to install rtpproxy locally:
https://blog.voipxswitch.com/2015/06/18/rtpproxy-compiling-installing-on-debian-8/

Then you enable:

#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_NAT
#!define WITH_PSTN

Then you need to set the B server IP and port

pstn.gw_ip = "B-SERVER-IP" desc "PSTN GW Address"
pstn.gw_port = "B-SERVER-PORT" desc "PSTN GW Port"

and add your users to the db via kamctl utility (you need to configure
/etc/kamailio/kamctlrc)

Hope that helps.

Regards,

David Villasmil
email: [email protected]
phone: +34669448337


On Fri, Nov 15, 2019 at 2:31 PM Sujit Roy <[email protected]> wrote:

> Thanks for the good suggestion.
>
> Can you kindly suggest the configuration in kamailio for both A & B SIP
> Gateway endpoint ?
>
> Thanks
>
> On Fri, Nov 15, 2019 at 7:31 PM David Villasmil <
> [email protected]> wrote:
>
>> If you're only using Asterisk as a media server, why use it? Why not just
>> use rtpproxy or mediaproxy? it'd be much simpler and you'd achieve the same
>> thing.
>> Unless you need to do something specific in Asterisk, there's really no
>> need.
>>
>> https://dopensource.com/2017/05/31/installing-configuring-rtpproxy/
>>
>> Should help you getting started.
>>
>> Regards,
>>
>> David Villasmil
>> email: [email protected]
>> phone: +34669448337
>>
>>
>> On Fri, Nov 15, 2019 at 1:21 PM Sujit Roy <[email protected]> wrote:
>>
>>> Hello
>>>
>>> Here is my call flow scenario.
>>>
>>> SIP Gateway (A)
>>> Kamailio (K)
>>> Asterisk (AST)
>>> SIP Gateway (B)
>>>
>>> Now i want to send calls from A -> B by using Asterisk as media server.
>>> Kamailio shall be used to authenticate A and allow A to send calls to B.
>>>
>>> What are the configurations i need to make in Kamailio and Asterisk ?
>>>
>>> Thanks in advance.
>>>
>>> --
>>> Regards
>>> ===================
>>> Sujit Roy
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> [email protected]
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> [email protected]
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
> --
> Regards
> ===================
> Sujit Roy
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> [email protected]
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to