[Spce-user] Subscriber to Peer CLI via PAI header

Andrew Pogrebennyk apogrebennyk at sipwise.com
Tue Mar 7 07:17:47 EST 2017

Hi Oleg,

Oleg wrote:
> 1. I tried outbound_pai_user=User-Provided-Number, but it didn't work
> (I guess this is for inbound calls Peer -> Sipwise -> Subscriber).
> Moreover, I'd like to avoid doing this.
You should set outbound_pai_user=User-Provided-Number on the call
recipient side, so on the peering server.

> 2. I tried setting 'cli', but then Sipwise sets up NPN to 'cli' always
> (even if UPN does match allowed_clis). Eventually NPN ends up into PAI.
> End example
> Here is what I'd like to achieve:
>   if upn_matches_allowed_cli
>         set_pai_to_upn
>   else
>      set_npn_to_user_cli
>      set_pai_to_npn
> Namely, accept user's valid input (through From header), but override
> with user_clit (or cli) if user sends junk. 
This is exactly what it should do out of the box, please recheck your
settings on the peering server and share the kamailio-proxy.log if it
doesn't work like that.


More information about the Spce-user mailing list