[OpenSIPS-Users] Transfer issue

Iñaki Baz Castillo ibc at aliax.net
Sat Oct 24 01:37:51 CEST 2009


El Sábado, 24 de Octubre de 2009, Jeff Kronlage escribió:
> The suggestion is to use Asterisk 'behind' Opensips, transferring calls
> to it only when a B2BUA is necessary?

Not exactly, see below.

 
> I certainly understand not wanting to post a config, but can anyone
> share a general idea of how this is accomplished?  I'm having a hard
> time picturing how to send Asterisk an out-of-context REFER,

Why "out-of-context" REFER??

> while Opensips 'held' the call up to that point.  Perhaps I'm over-thinking
> it.


- user1 sends an INVITE to OpenSIPS with RURI "sip:user2 at domain".

- OpenSIPS doesn do a lookup, instead it routes the INVITE to Asterisk 
*without* changing the RURI username (user2).

- Asterisk receives a call from peer [opensips] to exten "user2".

- Asterisk ejecutes "Dial" and generates an INVITE with RURI "user2" and sends 
it to OpenSIPS.

- OpenSIPS receives the INVITE and, since it comes from Asterisk, now it 
*does* the lookup so retrieves the location(s) of user2, and sends there the 
INVITE.

- So now we have 2 calls:
  - user1 speaking with Asterisk (through OpenSIPS).
  - Asterisk speaking with user2 (through OpenSIPS).

- Now user1 wants to transfer the call to user3 so it sends an in-dialog REFER 
(with "Refer-To: sip:user3 at domain") to Asterisk.

- Asterisk accepts it and generates an INVITE to "user3" sending it to 
OpenSIPS.

- OpenSIPS does the loockup for user3 and routes there the new INVITE from 
Asterisk.

- etc etc etc... and the transference (blink or attended is performed as 
usual).


Does it help you?


-- 
Iñaki Baz Castillo <ibc at aliax.net>



More information about the Users mailing list