[SR-Users] Dialog profiles using $fU and $rU

Daniel W. Graham dan at cmsinter.net
Tue Oct 22 19:38:55 CEST 2013


Having an odd issue with dialog profiles, if I try to set/check profile based on $fU or $rU call is always rejected due to call limit, but $ru or $fu work without an issue.

Example using $fU-

$avp(s:checkuser) = $fU;

set_dlg_profile("quota","$avp(s:checkuser)");
dlg_manage();

get_profile_size("quota","$avp(s:checkuser)","$avp(s:calls)");
       avp_db_load("$avp(s:checkuser)/username", "$avp(s:callquota)");
       if ($avp(s:calls) <= $avp(s:callquota))
.......

If I change checkuser to $avp(s:checkuser) = $fu; it returns the correct result.

Any explanation for why this is?

[cid:image001.gif at 01CECF2B.581704D0]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131022/15fd43a9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 5223 bytes
Desc: image001.gif
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131022/15fd43a9/attachment-0001.gif>


More information about the sr-users mailing list