[OpenSIPS-Users] need help -
Liviu Chircu
liviu at opensips.org
Mon Sep 2 12:10:01 EDT 2019
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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190902/ab35c8c3/attachment.html>
More information about the Users
mailing list