<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi, Răzvan!</div><div><br></div><div>Thanks for your reply.</div><div><br></div><div>I’m fetching values after match_dialog function call, but in the other route. </div><div><br></div><div>In this piece of script, values are fetching successfully, but in the route[BYE] aren’t.</div><div><br></div><div> if(match_dialog()) {</div><div> xlog("Dialog matched for [$dlg_val(outgoing_gate) AND $dlg_val(incoming_gate)] request");</div><div> loose_route();</div><div> if (is_method("BYE")) {</div><div> route(BYE);</div><div> }</div><div><br></div><div>Should I to call match_dialog() a second time in route[BYE] for fetching this values?</div><div><br></div><div>P.S. Which a best way for extracting all values of dialog (mangled_from_uri, mangled_to_uri, etc.)?</div><div><br></div><div apple-content-edited="true">
<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><div>08 нояб. 2013 г., в 14:58, Răzvan Crainea <<a href="mailto:razvan@opensips.org">razvan@opensips.org</a>> написал(а):</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Hi, Alexander!<br><br>Are you fetching the value before the loose_route() function call? It should be available only after loose_route() or match_dialog() are executed on the BYE request.<br><br>Best regards,<br><br>Răzvan Crainea<br>OpenSIPS Core Developer<br><a href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a><br><br>On 11/08/2013 05:37 AM, Alexander Mustafin wrote:<br><blockquote type="cite">Hi!<br><br>I’m want pass to dialog additional values, such as incoming and outgoing<br>gate from drouting.<br><br>I’m use store_dlg_value("incoming_gate»,"$avp(gw_id)") and this value<br>successfully pass to dialog (I can see it in dialog table in MySQL) and<br>in log:<br><br>Nov 8 04:27:28 ops /usr/sbin/opensips[21074]: DBG:dialog:new_dlg_val:<br>inserting <incoming_gate>=<GW_TEST><br><br>But when I receive BYE - I want to extract this values from dialog and<br>use it in radius function:<br>$var(outgoing_gate) = $dlg_val("incoming_gate»);<br><br>I see next messages in log:<br>Nov 8 04:27:31 ops /usr/sbin/opensips[21074]:<br>DBG:dialog:fetch_dlg_value: looking for <"incoming_gate"><br>Nov 8 04:27:31 ops /usr/sbin/opensips[21074]:<br>DBG:dialog:fetch_dlg_value: var NOT found!<br><br>I thought that dialog is died before I tried to fetch value, but it<br>still alive at this moment:<br>Nov 8 04:27:31 ops /usr/sbin/opensips[21074]: DBG:dialog:unref_dlg:<br>unref dlg 0x7ffa5a66f2d8 with 2 -> 3 in entry 0x7ffa5a63c318<br><br>Need help! ((<br><br>Best regards,<br>Alexander Mustafin<br><a href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a><span class="Apple-converted-space"> </span><<a href="mailto:mustafin.aleksandr@gmail.com">mailto:mustafin.aleksandr@gmail.com</a>><br><br><br><br><br><br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br></blockquote><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div></blockquote></div><br></body></html>