Hello, I have one DID number configured in my asterisk. When I receive calls to this number I can find it in Master.csv log file.
The problem is that some calls has callerid "anonymous" and I need to know the real number.
My DID provider told me that he is sending the real number in the SIP field "Remote-Party-ID" or "Contact". So after a sip debug I can see something like that:Remote-Party-ID: "1150776551"<sip:[email protected]>;party=calling;privacy=full;screen=yes
User-Agent: MaxComm ProxySIP (1.4.2-notls (i386/linux))
Accept: application/sdp, application/gtd
Via: SIP/2.0/UDP 18.104.22.168:5060;branch=z9hG4bK7t25oq2048u1n2dq37t0cd00000j1.1;received=22.214.171.124
From: "anonymous" <sip:[email protected]>;tag=SDm287c01-F1F8FBB8-214C
To: <sip:[email protected]>;tag=as76ccd8f7
CSeq: 102 BYE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Where the did number is 01151885210 and the real origination number is 1150776551.
Are there any way to capture this field in Master.csv or another log file?