[Spce-user] BUG: ROUTE_PREPARE_CLI_CALLER

Andrew Pogrebennyk apogrebennyk at sipwise.com
Wed Oct 17 16:01:29 EDT 2012


Hello Skyler,

You are right, I have fixed it this way in our development version
already, just didn't have to prepare the backports yet.. Will do that
during that week. Thanks for your report.

On 10/17/2012 09:07 PM, Skyler wrote:
> 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