Hi, Alexander!

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.

Best regards,

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 11/08/2013 05:37 AM, Alexander Mustafin wrote:
Hi!

I’m want pass to dialog additional values, such as incoming and outgoing
gate from drouting.

I’m use 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:

Nov  8 04:27:28 ops /usr/sbin/opensips[21074]: DBG:dialog:new_dlg_val:
inserting <incoming_gate>=<GW_TEST>

But when I receive BYE - I want to extract this values from dialog and
use it in radius function:
$var(outgoing_gate) = $dlg_val("incoming_gate»);

I see next messages in log:
Nov  8 04:27:31 ops /usr/sbin/opensips[21074]:
DBG:dialog:fetch_dlg_value: looking for <"incoming_gate">
Nov  8 04:27:31 ops /usr/sbin/opensips[21074]:
DBG:dialog:fetch_dlg_value: var NOT found!

I thought that dialog is died before I tried to fetch value, but it
still alive at this moment:
Nov  8 04:27:31 ops /usr/sbin/opensips[21074]: DBG:dialog:unref_dlg:
unref dlg 0x7ffa5a66f2d8 with 2 -> 3 in entry 0x7ffa5a63c318

Need help! ((

Best regards,
Alexander Mustafin
mustafin.aleksa...@gmail.com <mailto:mustafin.aleksa...@gmail.com>






_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to