[OpenSIPS-Users] OpenSIPS & Asterisk Integration in a new way

Olle E. Johansson oej at edvina.net
Mon Jul 2 15:38:09 CEST 2012


2 jul 2012 kl. 13:34 skrev aamir chougule:

> Wanted Scenario:
> 
> Calls comes in to OpenSIPS server ==> Authentication & Proxying part will be done by OpenSIPS ==> Call is relayed to Asterisk Server ==> Asterisk Server provides the IVR services to fetch the number from the customer ==> Asterisk passes on the fetched number to the OpenSIPS Server ==> OpenSIPS server relays the call to the carrier according to the LCR
> 
THis will be hard to do, OpenSIPS is in general a proxy and you can't transfer a call to a proxy. 
Before answering you could use the transfer() application in the Asterisk dialplan  to send a SIP 302 redirect and the proxy could forward the call.

In this case, you are actually answering the call in order to perform the IVR. This means that you have to send a 
SIP REFER message, which the proxy can't handle. It goes all the way to the caller who then issues another INVITE.

I don't know what you can do with the OpenSIPS b2bua module, maybe that module can handle a REFER and help you.
In Asterisk, you can issue a REFER to transfer the call with the transfer() dialplan application too. 

/O


More information about the Users mailing list