[OpenSIPS-Users] Dialog duration accounting question

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Jan 20 15:50:15 CET 2011


ok, found the problem, a silly one . Dialog module needs loose_route to 
work, so you need a more formated script (as logic) (better take a look 
at the default opensips script):

route {

       if(has_totag) {
             #sequential request
             loose_route();
             t_relay();
       }

       # initial request
       seturi("sip:333 at 192.168.253.55");
       record_route();

       append_branch("sip:333 at 192.168.253.10", "0.5");
       append_branch("sip:333 at 192.168.253.55", "0.5");
       serialize_branches(1);
       next_branches();

       t_on_failure("serial");
       create_dialog();
       setflag(1);
       setflag(2);
       setflag(3);
       t_relay();
}

has_totag() is from "uri" module.

Regards,
Bogdan

Apostolos Pantsiopoulos wrote:
> I don't know if you received my email with the attachment due to its 
> size.
> I am sending it - personally to you - again.
>
>
>


-- 
Bogdan-Andrei Iancu
OpenSIPS Event - expo, conf, social, bootcamp
2 - 4 February 2011, ITExpo, Miami,  USA
OpenSIPS solutions and "know-how"




More information about the Users mailing list