@ All, <br><br>This has very exciting possibilities for me. I&#39;m definitely going to look at the <br>b2b module and test this out. I will share my findings. <br><br>regards<br><br><div class="gmail_quote">On Thu, Mar 18, 2010 at 10:32 AM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Jeff,<br>
<br>
as opensips will act as b2b, your call will be actually split in 2 calls<br>
(from SIP point of view) - a call C1 from GW to opensips and another one<br>
C2 from opensips to UAC. So at re-INVITE time, opensips b2b will hung up<br>
C2 and replace it with a C3 to a new destination, bridging it with C1<br>
<br>
Regards,<br>
<font color="#888888">Bogdan<br>
</font><div><div></div><div class="h5"><br>
Jeff Kronlage wrote:<br>
&gt; I&#39;m confused on this as well - wouldn&#39;t you be effectively placing two<br>
&gt; calls (one via a non-T38 gateway, one via a T38 gateway) to the same<br>
&gt; destination?  Figuring that most T38 is going to terminate to a single<br>
&gt; analog device, I would think that were this possible at a SIP level, the<br>
&gt; device would already be &quot;busy&quot; before the second call came in as fax<br>
&gt; machines don&#39;t typically drop the line very rapidly?<br>
&gt;<br>
&gt; Jeff<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a><br>
&gt; [mailto:<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>] On Behalf Of Bogdan-Andrei<br>
&gt; Iancu<br>
&gt; Sent: Wednesday, March 17, 2010 11:23 AM<br>
&gt; To: OpenSIPS users mailling list<br>
&gt; Subject: Re: [OpenSIPS-Users] T.38 detection/redirect in OpenSIPS<br>
&gt;<br>
&gt; right, that is exactly what the b2b is up to do - to be able (at<br>
&gt; signalling level) to manipulate the call legs<br>
&gt;<br>
&gt; Regards,<br>
&gt; Bogdan<br>
&gt;<br>
&gt; Brett Nemeroff wrote:<br>
&gt;<br>
&gt;&gt; Bogdan,<br>
&gt;&gt; But at this point, you are now playing with a dialg that is already<br>
&gt;&gt; connected to an endpoint. You&#39;d need to drop the first call to<br>
&gt;&gt; establish a new call with the reinvite. Right?<br>
&gt;&gt; -Brett<br>
&gt;&gt;<br>
&gt;&gt; On Mar 17, 2010, at 11:50 AM, Bogdan-Andrei Iancu<br>
&gt;&gt;<br>
&gt; &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a><br>
&gt;<br>
&gt;&gt;  &gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; Hi Brett,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Brett Nemeroff wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I don&#39;t think there is any way to do this without an RTP capable<br>
&gt;&gt;&gt;&gt; device in the mix.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; you do not need to look into RTP as the FAX is advertised in the<br>
&gt;&gt;&gt; re-INVITE (in SDP) - so you can detect it from opensips script by<br>
&gt;&gt;&gt; inspecting the SDP of reINVITES<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; What you may be able to do is have asterisk detect that it&#39;s a fax,<br>
&gt;&gt;&gt;&gt; then reject it if it is.. I don&#39;t know if you can do all that<br>
&gt;&gt;&gt;&gt;<br>
&gt; without<br>
&gt;<br>
&gt;&gt;&gt;&gt; answering the call.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; no, you cannnot, as first the call is established (from sip point of<br>
&gt;&gt;&gt; view) as a simple audio call and after that re-negotiated (via<br>
&gt;&gt;&gt; re-INVITE) for FAX<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Then you can forward it back to the proxy if it is a fax with maybe<br>
&gt;&gt;&gt;&gt;<br>
&gt; a<br>
&gt;<br>
&gt;&gt;&gt;&gt; prefix.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; A lot of assumptions in there. Would like to hear if you find<br>
&gt;&gt;&gt;&gt; something that works. Not sure if you can SIP Spiral yet in asterisk<br>
&gt;&gt;&gt;&gt; anyway. ;)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; I do not see the need of Asterisk - maybe with some changes, the b2b<br>
&gt;&gt;&gt; module will be able to handle this - see my prev email.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt; Bogdan<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; -Brett<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Wed, Mar 17, 2010 at 10:51 AM, David J. &lt;<a href="mailto:david@styleflare.com">david@styleflare.com</a><br>
&gt;&gt;&gt;&gt; &lt;mailto:<a href="mailto:david@styleflare.com">david@styleflare.com</a>&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;    Matt,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;    I am for sure probably wrong, but I think you would need<br>
&gt;&gt;&gt;&gt; Asterisk or<br>
&gt;&gt;&gt;&gt;    Variant to Determine that it is a Fax Call,<br>
&gt;&gt;&gt;&gt;    I dont think UAC&#39;s send T38 information without negotiating with<br>
&gt;&gt;&gt;&gt; the<br>
&gt;&gt;&gt;&gt;    other side who request that it is capable, then it brings you to<br>
&gt;&gt;&gt;&gt;    Jeff&#39;s<br>
&gt;&gt;&gt;&gt;    answer.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;    See above.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;    Matthew S. Crocker wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Can OpenSIPS make routing decisions based on the SDP information<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;    in an INVITE?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Lets say I have the following config<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; PSTN -&gt; t.38 Gateway -&gt; OpenSIPS -&gt;  UserAgent<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I have a TN from the PSTN routed to the UserAgent,  I&#39;d like to<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;    provide a service so the user can use the TN for both voice &amp;<br>
&gt;&gt;&gt;&gt; faxing.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Voice call goes through normally (g.711 g.729 codec)<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Fax call starts off as a normal voice call (INVITE, 180, 183,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;    200).  Once the call is answered the originating end (PSTN)<br>
&gt;&gt;&gt;&gt;<br>
&gt; starts<br>
&gt;<br>
&gt;&gt;&gt;&gt;    sending fax tones. The Gateway hears the fax tones and attempts<br>
&gt;&gt;&gt;&gt;<br>
&gt; to<br>
&gt;<br>
&gt;&gt;&gt;&gt;    RE-INVITE with T.38 in the SDP.  I&#39;d like OpenSIPS to see the<br>
&gt;&gt;&gt;&gt;<br>
&gt; T.38<br>
&gt;<br>
&gt;&gt;&gt;&gt;    capability in the SDP and redirect the call to a fax-&gt;e-mail<br>
&gt;&gt;&gt;&gt;    gateway.  So,  the 2nd INVITE comes in, OpenSIPS sends the INVITE<br>
&gt;&gt;&gt;&gt;    to the fax gateway and a BYE to the user.  The fax gateway does a<br>
&gt;&gt;&gt;&gt;    200 and negotiates T.38 with the PSTN gateway.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I know I can route the call through Asterisk and have it do a<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;    quiet answer and listen for the modem sounds.  I&#39;d like to avoid<br>
&gt;&gt;&gt;&gt;    using Asterisk for all RTP traffic and only use it for the fax<br>
&gt;&gt;&gt;&gt;    gateway traffic (i.e. once it has been determined to be a fax<br>
&gt;&gt;&gt;&gt;    Asterisk steps in and handled the T38 -&gt; E-mail)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; -Matt<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Bogdan-Andrei Iancu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>TC<br>