[Kamailio-Users] Play Early Media

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 17 13:17:19 CET 2009


Hello,

On 17.11.2009 13:14 Uhr, alex pappas wrote:
> Dear all,
>
> 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:
>
> I use kamailio 1.5 and I have NAT enabled.
>
> onreply_route[1] {
>         xdbg("incoming reply\n");
>         if ((isflagset(5) || isbflagset(6)) && 
> status=~"*(180)|*(183)|(2[0-9][0-9])") {
>                 force_rtp_proxy();
>         }
>        * if (status=~"(180)") {
>                 
> rtpproxy_stream2uac("/usr/local/etc/rtpproxy/ast-ivr.alaw","");
>         } else {
>             rtpproxy_stop_stream2uac();
>         }*
>         if (isbflagset(6)) {
>                 fix_nated_contact();
>         }
> }

try rtpproxy_stream2uas(...) instead of stream to uac function.

Cheers,
Daniel

>
> When I get from a UAC an 180 Ringing does not play the media and also 
> in the syslog I see the following ERRORs:
>
> Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]: 
> ERROR:nathelper:extract_body: message body has length zero
> Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]: 
> ERROR:nathelper:force_rtp_proxy: can't extract body from the message
> Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]: 
> ERROR:nathelper:select_rtpp_node: script error -no valid set selected
> Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]: 
> ERROR:nathelper:rtpproxy_stream: no available proxies
>
>
> Thanks in advance for any help
>
> Alex
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

-- 
Daniel-Constantin Mierla
* http://www.asipto.com/





More information about the sr-users mailing list