[SR-Users] Reading the P-Assserted-identity header

Alex Balashov abalashov at evaristesys.com
Wed Nov 1 16:34:17 CET 2017


Hi,

$hdr(P-Asserted-Identity) should work, if the header is present.

On Wed, Nov 01, 2017 at 04:32:00PM +0100, Gertjan Wolzak wrote:

> 
> Hello Kamailions,
> 
> I receive anonymous calls where the PAI has a prefix which I need to strip
> before forwarding the call to a proxy.
> 
> I am trying to read the the header with $hdr(P-Asserted-Identity) and I
> tried the $ai pseudovariable, but I get an empty reply back every time.
> 
> xlog("PAI is $ai"); results in ; "Nov  1 16:19:55 proxy04
> /usr/local/sbin/kamailio[14814]: ERROR: <script>: PAI is <null>"
> 
> Same for xlog("PAI is $hdr(P-Asserted-Identity).  This works for the Privacy
> header but not the P-Asserted-Identity header.
> 
> Hope someone can tell me what I am doing wrong....
> 
> Rgds,
> 
> Gertjan
> 
> 
> 
> 
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/



More information about the sr-users mailing list