sw007
sw007

Reputation: 39

Can Kamailio Proxy Server actually make SIP Calls?

I am using a PBX (Asterisk) and all Inbound calls come through my Proxy (Kamailio). I would like for all outbound calls that go through my PBX to be controlled by the Proxy also. Currently outbound calls go through the PBX and communicate with endpoints. I would like my Proxy to be the endpoint for all communication. In my mind for this to happen, Kamailio would have to make the SIP call. Is this correct?

Thank you!

Upvotes: 0

Views: 1369

Answers (2)

sotoz
sotoz

Reputation: 3098

You can use kamailio as an outbound proxy for calls that come from your B2BUA (in that case Asterisk).

An example in the pjsip.conf

[myitsp]
type = endpoint
; other stuff
outbound_proxy = sip:192.168.0.1\;lr

That will tell Asterisk to route all outbound calls through this outbound proxy. You just need to make sure that Kamailio is configured correctly to also receive traffic from your Asterisk server.

More information in the Asterisk docs

Upvotes: 0

miconda
miconda

Reputation: 1817

The question is rather vague, however, if you want to send the call from Asterisk PBX to Kamailio and Kamailio to send it further to a carrier or SIP device, then, yes, it is possible.

One of the common use cases is Asterisk sending the calls to Kamailio, which does least cost routing or load balancing to a group of carriers (see dispatcher, lcr or carrierroute modules).

Upvotes: 1

Related Questions