Is it possible to keep a persistent variable throughout a dialog when using the B2B module? I tried the Dialog modules (set_dlg_flag() and is_dlg_flag_set()) and $dlg_val variable but none worked. Not sure why.<br><br>route[b2b_request] {<br>
<br> if (search_body("a=sendonly") && method == "INVITE"){<br> xlog("SEARCHING: rm [$rm] BING BING FOUND IT\n");<br><br> create_dialog();<br><br>
$dlg_val("IsHolding") = "1";<br><br># set_dlg_flag("3");<br> };<br><br>$var(IsHolding) = $dlg_val("IsHolding");<br>xlog("************************************************* var is [$var(IsHolding)] and call is rm [$rm]\n");<br>
#if (is_dlg_flag_set("3") && method == "ACK"){<br> if ($var(IsHolding) == "1" && method == "ACK"){<br> xlog("***********SEARCHING***********: rm [$rm] WE HAVE AN ACK and VarISHolding equals one\n");<br>
};<br><br>}<br><br><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span></span></span>