<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1251"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi!<div><br></div><div>I’m want pass to dialog additional values, such as incoming and outgoing gate from drouting.</div><div><br></div><div>I’m use <span style="background-color: rgb(254, 254, 238);">store_dlg_value("incoming_gate»,"$avp(gw_id)") and this value successfully pass to dialog (I can see it in dialog table in MySQL) and in log:</span></div><div><span style="background-color: rgb(254, 254, 238);"><br></span></div><div>Nov 8 04:27:28 ops /usr/sbin/opensips[21074]: DBG:dialog:new_dlg_val: inserting <incoming_gate>=<GW_TEST></div><div><span style="background-color: rgb(254, 254, 238);"><br></span></div><div><span style="background-color: rgb(254, 254, 238);">But when I receive BYE - I want to extract this values from dialog and use it in radius function:</span></div><div>$var(outgoing_gate) = $dlg_val("incoming_gate»);</div><div><span style="background-color: rgb(254, 254, 238);"><br></span></div><div><span style="background-color: rgb(254, 254, 238);">I see next messages in log:</span></div><div><span style="background-color: rgb(254, 254, 238);"><div>Nov 8 04:27:31 ops /usr/sbin/opensips[21074]: DBG:dialog:fetch_dlg_value: looking for <"incoming_gate"></div><div>Nov 8 04:27:31 ops /usr/sbin/opensips[21074]: DBG:dialog:fetch_dlg_value: var NOT found!</div><div><br></div><div>I thought that dialog is died before I tried to fetch value, but it still alive at this moment:</div><div>Nov 8 04:27:31 ops /usr/sbin/opensips[21074]: DBG:dialog:unref_dlg: unref dlg 0x7ffa5a66f2d8 with 2 -> 3 in entry 0x7ffa5a63c318</div><div><br></div><div>Need help! ((</div><div><br></div></span><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Best regards,</div><div>Alexander Mustafin</div><div><a href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>