<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hi Jayesh,<br>
<br>
For such scenario you do not need b2b at all. You can do it at
signaling level. How ?<br>
- determine that the incoming call needs to be parked<br>
- 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;<br>
</tt><tt>- 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
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/tm.html#id295912">http://www.opensips.org/html/docs/modules/1.11.x/tm.html#id295912</a>)
<br>
- original call will go into failure route (because of the
canceling) -> from there you can create a new branch to the
newly registered user.<br>
<br>
I haven't tried, but it should work :)<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 17.06.2014 12:57, Jayesh Nambiar wrote:<br>
</div>
<blockquote
cite="mid:CANAYozvNYRwRifCDZYe+4YH5bCC6-ySLQtC+ngh2NuYJ0GzudA@mail.gmail.com"
type="cite">
<div dir="ltr">Hello All,
<div>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:</div>
<div><span class=""><a moz-do-not-send="true"
href="http://lists.opensips.org/pipermail/users/2010-October/014849.html">http://lists.opensips.org/pipermail/users/2010-October/014849.html</a><br>
</span></div>
<div><span class=""><br>
</span></div>
<div>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.</div>
<div>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.</div>
<div>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??</div>
<div><br>
</div>
<div>Thanks in advance,</div>
<div><br>
</div>
<div>--- Jayesh</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>