[OpenSIPS-Devel] [ opensips-Bugs-3295358 ] b2b_logic -> b2bl_key_avp -- possible bug

SourceForge.net noreply at sourceforge.net
Sat Apr 30 14:54:05 CEST 2011


Bugs item #3295358, was opened at 2011-04-30 12:54
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3295358&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: b2b_logic -> b2bl_key_avp -- possible bug

Initial Comment:
Hi Anca,

It's me again. Sorry to bother you, but I need to clarify something that looks like a bug to me.

Because of the dialog module leading to the issues I reported earlier, I'm looking for a way to pass some data from leg1 to leg2.
It seems like the b2bl_key_avp option is the right one for me, but I'm facing some troubles.

Reading here:
http://www.opensips.org/html/docs/modules/devel/b2b_logic.html#id250244

It says: "The name of the Attribute-Value-Pair (AVP) used to store the b2b_logic entity key."

What really is the b2b_logic entity key ?

I have:
modparam("b2b_logic", "b2bl_key_avp", "$avp(i:99)")

and after calling: 
b2b_init_request("top hiding");

the $avp(i:99) is equal to 642.0 and the $ci is B2B.642.954463

Isn't B2B.642.954463 what should be assigned to $avp(i:99) ?

Because of that difference I have to do:

route[b2b_reply] {
        if (is_method("INVITE")) {
                cache_fetch("memcached_local","b2b_call_info_$avp(i:99)",$avp(s:call_setup));
                xlog("[leg2]INVITE GOT ($avp(i:99)): $avp(s:call_setup)\n");
                cache_store("memcached_local","b2b_call_info_$ci","$avp(s:call_setup)",14400);
        }
}

route {
....
     b2b_init_request("top hiding");
     cache_store("memcached_local","b2b_call_info_$avp(i:99)","$json(cs)",14400);
....
}

If there is any way to know the B2B call id, then I can skip the whole b2b_reply manipulation.

Please advise.

A fan of you:
-- Kamen :)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3295358&group_id=232389



More information about the Devel mailing list