[Users] [openser + Asterisk] Caller don't hear callee

Bodin Bruno bbodin01 at univ-lr.fr
Thu May 10 11:49:36 CEST 2007


Hello

with this config, a caller can call a calle , but callee don't send any 
RTP message to asterisk :(
What 's the problem ?

Thank,

 
route{

    if (!mf_process_maxfwd_header("10")) {
        sl_send_reply("483","Too Many Hops");
        exit;
    };

        if (msg:len >=  2048 ) {
        sl_send_reply("513", "Message too big");
        exit;
    };

    if (!method=="REGISTER")
        record_route();

    if (loose_route()) {
        # mark routing logic in request
        append_hf("P-hint: rr-enforced\r\n");
        route(1);
    };

    if(method=="CANCEL" || method=="BYE")
    {
        setflag(10);
    };


        if ((src_ip==127.0.0.1) && (src_port==5062) && (dst_port==5060))
    {
        if (method=="REGISTER")
        {
            save("location");
            return;
        }
        
                if  (!lookup("location"))  
        {
                       sl_send_reply("404", "not found");
                       return;
                };
            setflag(9);
        route(1);
                return;
        };

    if (!uri==myself) {
        append_hf("P-hint: outbound\r\n");
        route(1);
    };

    if (uri==myself)
    {

        if (method=="REGISTER")
        {
            save("location");
            return;
        };

        if (!lookup("location")) {
            sl_send_reply("404", "Not Found");
            exit;
        };
    };

    route(1);
}


route[1] {

    if(method=="INVITE" && !isflagset(10) && !isflagset(9))
     {
        revert_uri();
          $ru = "sip:"+$rU+"@"+$rd+":5062";
    };

    if (!t_relay()) {
            sl_reply_error();
    };
    exit;
}





More information about the Users mailing list