Hi Dragomir,
You can either set a $dlg_val [1] or a dialog flag [2] during the
initial INVITE,
then read it during mid-dialog requests. Be careful with $dlg_val: it
converts
any integers to strings, so make sure that your comparison syntax is
accurate!
Best regards,
[1]: https://opensips.org/html/docs/modules/3.1.x/dialog.html#pv_dlg_val
[2]:
https://opensips.org/html/docs/modules/3.1.x/dialog.html#func_set_dlg_flag
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 02.09.2019 19:03, Dragomir Haralambiev wrote:
Hello,
What I do to check flag after has_totag() ?
Here is example:
route {
....
if (has_totag()) {
.....
if ( isflagset(BLA_BLA) ) {
xlog("L_ERR", "Flag is active \n");
};
....
}
if ( is_method("INVITE") ) {
....
setflag(BLA_BLA);
....
}
....
}
Regards,
Dragomir
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users