[Spce-user] BUG: ROUTE_PREPARE_CLI_CALLER
Klaus Peter v. Friedeburg
friedeburg at aco.de
Wed Oct 17 18:05:59 EDT 2012
Hi Skyler,
many thanks to sharing this!
Klaus Peter
Von: spce-user-bounces at lists.sipwise.com [mailto:spce-user-bounces at lists.sipwise.com] Im Auftrag von Skyler
Gesendet: Mittwoch, 17. Oktober 2012 21:08
An: spce-user at lists.sipwise.com
Betreff: [Spce-user] BUG: ROUTE_PREPARE_CLI_CALLER
Hi,
In ROUTE_PREPARE_CLI_CALLER the below should be added/changed as it does break CLI in unpredictable ways.
else if($var(ccli_selector) == "rcv_display" && $fn != $null && $(fn{s.len}) > 0)
{
$var(ccli_user) = $fn;
# strip optional double-quotes
if($var(ccli_user) =~ "^\".+\"$")
{
#skyler - copied from ROUTE_GET_CALLER_CLI block
#$var(ccli_user) = $(var(ccli_user){s.select,1,"});
# TODO: the above seems to break in unpredictable cases, use old/safe way for now
$(avp(s:tmp)[*]) = $var(ccli_user);
avp_subst("$avp(s:tmp)", "/^\"?([^\"]*)\"?$/\1/");
$var(ccli_user) = $avp(s:tmp);
$(avp(s:tmp)[*]) = $null;
}
$var(ccli_domain) = $var(caller_domain_userprov);
xlog("L_INFO", "Setting display-name/caller_domain_userprov '$var(ccli_user)@$var(ccli_domain)' for rcv_display - [% logreq -%]\n");
}
--Skyler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20121018/0a3a3fba/attachment-0001.html>
More information about the Spce-user
mailing list