asterisk2billing.org
http://forum.asterisk2billing.org/

Problem to get real origination number
http://forum.asterisk2billing.org/viewtopic.php?f=23&t=9956
Page 1 of 1

Author:  jhperezb [ Wed Aug 08, 2012 6:31 pm ]
Post subject:  Problem to get real origination number

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

Author:  jroper [ Thu Aug 09, 2012 7:18 am ]
Post subject:  Re: Problem to get real origination number

Hi

You may be able to use some asterisk dial plan to set caller ID correctly from the remote party ID

Joe

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/