<div class="gmail_quote"><div>Hi Ovidiu,</div><div>Ofcourse it can use avp and var. I was just trying to point out a small error that I came across. I loaded the param as mentioned in the doc which was:</div><div>modparam("b2b_logic", "b2bl_from_param_spec", "$var(b2bl_from)")</div>
<div><br></div><div>But the above gave me an error saying unable to find parameter "b2bl_from_param_spec" in b2b_logic. Then I wrote the modparam as follows:</div><div>modparam("b2b_logic", "b2bl_from_spec_param", "$var(b2bl_from)")</div>
<div>and this worked without any errors.</div><div><br></div><div>Thanks,</div><div><br></div><div>--- Jayesh</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The name of this specific param is *_spec_param and not *_avp.<br>
It means that it will accept both avps and vars.<br>
Please re-test this, because last time when I tested it it was working.<br>
<br>
Regards,<br>
Ovidiu Sas<br>
<br>
On Tue, Jul 5, 2011 at 4:03 AM, Jayesh Nambiar <<a href="mailto:jayesh.voip@gmail.com">jayesh.voip@gmail.com</a>> wrote:<br>
> Hi All,<br>
> Was just going through the progress in b2b modules in the devel version and<br>
> was experimenting with it. I just figured that the documentation for<br>
> b2bl_from_param_spec is wrongly documented<br>
> here?<a href="http://www.opensips.org/html/docs/modules/devel/b2b_logic.html#id250322" target="_blank">http://www.opensips.org/html/docs/modules/devel/b2b_logic.html#id250322</a>.<br>
> The correct syntax for specifying the parameter is:<br>
> modparam("b2b_logic", "b2bl_from_spec_param", "$avp(b2bl_from)").<br>
> I spent good 15 minutes figuring out the problem, might help other users who<br>
> wish to try this out.<br>
> --- Jayesh<br>
><br></blockquote></div>