Caller-ID from P-Asserted-Identity

Support zone
Post Reply
djon
Posts: 70
Joined: Wed Jun 10, 2009 10:29 am

Caller-ID from P-Asserted-Identity

Post by djon » Mon Feb 09, 2015 5:33 pm

Had a call where the Caller-ID shows "anonymous", but P-Asserted-Identity shows the caller's number.
Is there anyway to fetch the Caller-ID from P-Asserted-Identity.

Line entries in siptrace:
From: "anonymous" <sip:anonymous@193.113.127.218;user=phone;cpc=ordinary>;tag=9092651
P-Asserted-Identity: <sip:441202299999@193.113.127.218>

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Caller-ID from P-Asserted-Identity

Post by Aaron » Tue Feb 10, 2015 8:47 am

Yes.

Code: Select all

pAssertedID = req.Header.GetUnknownHeaderValue("P-Asserted-Identity")
sys.Log("P-Asserted-Identity: #{pAssertedID}.")

Post Reply