[Spce-user] BUG: ROUTE_PREPARE_CLI_CALLER
Andrew Pogrebennyk
apogrebennyk at sipwise.com
Thu Oct 18 09:23:21 EDT 2012
Hello,
The fix has been pushed to 2.6 repositories today. As usual, 'apt-get
update && apt-get upgrade && ngcpcfg apply' should do the trick.
Regards.
On 10/18/2012 12:05 AM, Klaus Peter v. Friedeburg wrote:
> 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
>
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
>
More information about the Spce-user
mailing list