Dear all,<br><br>I'm trying to play Early Media instead of Ringing WHEN an 180 Ringing OR 182 Call Queue message is received from the destination UAC. In the onreply_route[1] I added the following lines in bold:<br><br>
I use kamailio 1.5 and I have NAT enabled.<br><br>onreply_route[1] {<br> xdbg("incoming reply\n");<br> if ((isflagset(5) || isbflagset(6)) && status=~"<b>(180)|</b>(183)|(2[0-9][0-9])") {<br>
force_rtp_proxy();<br> }<br> <b> if (status=~"(180)") {<br> rtpproxy_stream2uac("/usr/local/etc/rtpproxy/ast-ivr.alaw","");<br> } else {<br>
rtpproxy_stop_stream2uac();<br> }</b><br> if (isbflagset(6)) {<br> fix_nated_contact();<br> }<br>}<br><br>When I get from a UAC an 180 Ringing does not play the media and also in the syslog I see the following ERRORs:<br>
<br>Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]: ERROR:nathelper:extract_body: message body has length zero<br>Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]: ERROR:nathelper:force_rtp_proxy: can't extract body from the message<br>
Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]: ERROR:nathelper:select_rtpp_node: script error -no valid set selected<br>Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]: ERROR:nathelper:rtpproxy_stream: no available proxies<br>
<br><br>Thanks in advance for any help<br><br>Alex<br><br>