<div dir="ltr">Dear Sir,<br><br>My last issue is the following...The asterisk server replies by a second INVITE that contains T38 in SDP to kamailio...Asterisk continue retransmitting the INVITE to Kamailio with no reply from it as you can see below:<br>
<br><br>Retransmitting #6 (no NAT) to Kamailio_IP:5060:<br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP Kamailio_IP;branch=z9hG4bK02e7.7581e8a2.0;received=Kamailio_IP<br>Via: SIP/2.0/UDP 14.14.14.58:5060;received=79.132.227.35;branch=z9hG4bK-ba26313a;rport=45068<br>
Record-Route: &lt;sip:Kamailio_IP;lr=on&gt;<br>From: &lt;sip:151355001@Kamailio_IP&gt;;tag=c75da877876e372i0<br>To: &quot;092968050&quot; &lt;sip:092968050@Asterisk_IP&gt;;tag=as24bf1176<br>Call-ID: 6cb855a76b6ab33736cc85a83f9d7633@Asterisk_IP<br>
CSeq: 101 INVITE<br>User-Agent: domain name<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>Supported: replaces<br>Contact: &lt;sip:092968050@Asterisk_IP&gt;<br>Content-Type: application/sdp<br>Content-Length: 354<br>
<br>v=0<br>o=root 26580 26581 IN IP4 Asterisk_IP<br>s=session<br>c=IN IP4 Asterisk_IP<br>t=0 0<br>m=image 4338 udptl t38<br>a=T38FaxVersion:0<br>a=T38MaxBitRate:14400<br>a=T38FaxFillBitRemoval:0<br>a=T38FaxTranscodingMMR:0<br>
a=T38FaxTranscodingJBIG:0<br>a=T38FaxRateManagement:transferredTCF<br>a=T38FaxMaxBuffer:122<br>a=T38FaxMaxDatagram:122<br>a=T38FaxUdpEC:t38UDPRedundancy<br><br>Kamailio enter in the following function:<br><br><br>onreply_route[7] {<br>
<br><br>if (status=~ &quot;200&quot;){<br>t_on_failure(&quot;1&quot;);<br>force_rtp_proxy();<br>}<br>exit;<br>}<br><br>I would like to know please what could be added in the onreply_route[7] in order to accept T38 negotiation and let the FAX go through<br>
<br>Regards<br><br><br><div class="gmail_quote">On Fri, Mar 13, 2009 at 1:35 PM, Iņaki Baz Castillo <span dir="ltr">&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</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;">
<div class="im">2009/3/13 michel freiha &lt;<a href="mailto:michofr@gmail.com">michofr@gmail.com</a>&gt;:<br>
</div><div class="im">&gt; Hi Inaki,<br>
&gt;<br>
&gt; I&#39;m getting the below error when using t_relay(); in<br>
&gt; onreply_route[7]....Maybe i need to you something else?<br>
&gt;<br>
&gt; Mar 13 13:11:03 [27785] DBG:core:find_cmd_export_t: &lt;t_relay&gt; not found<br>
&gt; Mar 13 13:11:03 [27785] DBG:core:find_cmd_export_t: found &lt;t_relay&gt;(0) in<br>
&gt; module tm [/usr/local/lib/opensips/modules/]<br>
&gt; Mar 13 13:11:03 [27785] CRITICAL:core:yyerror: parse error in config file,<br>
&gt; line 728, column 9-10: Command cannot be used in the block<br>
</div>                                                     ^^^^^<br>
                                   The error IS clearle explained, isn&#39;t?<br>
<br>
Please check the doc about t_relay():<br>
<br>
  <a href="http://www.kamailio.org/docs/modules/devel/tm.html#id2506628" target="_blank">http://www.kamailio.org/docs/modules/devel/tm.html#id2506628</a><br>
<br>
  &quot;This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.&quot;<br>
<br>
<br>
You can&#39;t use t_relay in on_replyroute (in fact you don&#39;t need it at<br>
all, t_relay is used to send *requests*).<br>
<br>
Again, please read the documentation and tutorials instead of trying<br>
anything with no reason.<br>
<br>
Regards.<br>
<font color="#888888"><br>
--<br>
</font><div class="im">Iņaki Baz Castillo<br>
&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></div></div></blockquote></div><br></div>