[OpenSIPS-Users] Parking a Call using b2b modules
bogdan at opensips.org
Tue Jun 17 17:14:41 CEST 2014
For such scenario you do not need b2b at all. You can do it at signaling
level. How ?
- determine that the incoming call needs to be parked
- send the call to a media server to play some ringing via 183 early
media (call still not accepted); also push DB record to with the callid
+ user the call belongs to;
- if target user registers -> check in DB for parked calls -> if yes,
run a script to trigger the cancelling of that branch to media server
(see t_uac_cancel MI command
- original call will go into failure route (because of the canceling) ->
from there you can create a new branch to the newly registered user.
I haven't tried, but it should work :)
OpenSIPS Founder and Developer
On 17.06.2014 12:57, Jayesh Nambiar wrote:
> Hello All,
> I was trying to explore an option of parking a call on opensips using
> b2b modules with a trying or ringing response. More precisely, I was
> trying to do something like this:
> As soon as the call comes in, use b2b_logic to park the call. If the
> called user is registered, route the call; else keep the caller parked
> for 45 seconds, and within this duration if the called user registers,
> raise a E_REGISTERED event.
> Identify if there is a call parked for the user that just registered
> and if yes route the call or else respond with 408 timeout to the caller.
> I thought, it should be possible using the b2b modules and the event
> interface that opensips got. Am I thinking in the right direction from
> possibility perspective?? Can someone help me understand if this logic
> can be implemented within the script??
> Thanks in advance,
> --- Jayesh
> Users mailing list
> Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users