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>
Caller-ID from P-Asserted-Identity
Re: Caller-ID from P-Asserted-Identity
Yes.
Code: Select all
pAssertedID = req.Header.GetUnknownHeaderValue("P-Asserted-Identity")
sys.Log("P-Asserted-Identity: #{pAssertedID}.")