[Spce-user] BUG: ROUTE_PREPARE_CLI_CALLER
Skyler
skchopperguy at gmail.com
Wed Oct 17 15:07:31 EDT 2012
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/mailman/private/spce-user_lists.sipwise.com/attachments/20121017/6769de5a/attachment.html>
More information about the Spce-user
mailing list