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
Timestamp: 1343921202
Contact: <sip:1150776551@201.210.177.20:5060;transport=udp>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Length: 366
User-Agent: MaxComm ProxySIP (1.4.2-notls (i386/linux))
Accept: application/sdp, application/gtd
Via: SIP/2.0/UDP 201.210.177.20:5060;branch=z9hG4bK7t25oq2048u1n2dq37t0cd00000j1.1;received=201.210.177.20
From: "anonymous" <sip:[email protected]>;tag=SDm287c01-F1F8FBB8-214C
To: <sip:[email protected]>;tag=as76ccd8f7
Call-ID: SDm287c01-8ceafac5098f7c33d95809583e16fbff-ulkf820
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?
Thanks!
Hernan