[OpenSIPS-Users] dlg_val before create_dialog
M S
medeanwz at gmail.com
Tue Dec 17 12:08:00 UTC 2024
Hi list,
I have a script like this:
..... some processing
if (is_method("INVITE") && !has_totag()) {
$dlg_val(x)="y";
}
.... some processing
if (is_method("INVITE") && !has_totag()) {
create_dialog("pPB")
}
My first question is, why does this work?! documents say $dlg_val cannot be
used before dialog is created, and create_dialog is called after dlg_val
here.
I have verified that indeed dialog is created using create_dialog, and
indeed $dlg_val(x) stores the value (it is available later in the dialog).
Second question, once or two times a day (after thousands of calls) I see a
do_assign setting PV failed error message on the $dlg_val(x)="y" line.
Since this shouldn't have worked to begin with, I don't know how to debug
this. Any suggestions?
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20241217/53f7c4c9/attachment.html>
More information about the Users
mailing list