[OpenSIPS-Users] var/avp persistence, onreply_route, and script context

Razvan Crainea razvancrainea at opensips.org
Tue Aug 9 11:57:21 CEST 2011


Hi Bobby,

If you want to match the transaction (and dialog) you should explicitly 
arm an "onreply_route" for the initial INVITE:

route {

    ...
    # here gets the initial INVITE
    create_dialog();
    t_on_reply("2"); # arm the onreply_route[2]
    ...

}

# fires when a reply is received for the initial INVITE
onreply_route[2] {

    $dlg_val(cisco) = "true";
    set_dlg_flag("3");
    ...

}

Please let us know if you find any problems.

Regards,

Razvan Crainea
OpenSIPS Developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110809/99d36057/attachment.htm>


More information about the Users mailing list