I have struggled a lot to get the PSTN caller id but in the end i got it i.e the telephone number of the caller. If you have configured the linksys 3102 gateway and able to inbound and outbound calls as you told you are getting the gateway ID or IP. If you are getting ID of the gateway that would be something like 103 which is in fact extention you have created. Please follow these steps .
Step 1. Open linksys 3102 web administrator. Click on Admin Login and then click advance now click on PSTN. Under PSTN-To-VoIP Gateway Setup you will see PSTN CID For VoIP CID: if it is no make it
yes.
Step 2. Now logon to 3CX and click on Server Status. You will see the activity of the 3CX. Now dial your gateway line, Please dont worry if you are not getting the in-coming call. No try to concentrate on the activity log. It will give you some error trace like give under. Here is key to door that we will try to get the caller ID of the in coming call from PSTN. Look in
[email protected]:5061 I have 0515598889 as my caller number and 192.168.0.230 is ip of linksys gateway and 5061 is the port of the linksys 3102.
CM102001]: Authentication failed for SipReq: INVITE
[email protected] tid=-9e0a8575 cseq=INVITE
[email protected]:5061 / 102 from(wire); Reason: Credentials don't match, check that authorization-ID and password match the ones in extension settings
10:00:05.988 evt::CheckAuth::not_handled [CM500002]: Unidentified incoming call. Review INVITE and adjust source identification:
INVITE sip:
[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.0.230:5061;branch=z9hG4bK-9e0a8575
Max-Forwards: 70
Contact: "LinkSys103"[sip:
[email protected]:5061]
To: [sip:
[email protected]]
From: "LinkSys103"[sip:
[email protected]];tag=598aa9c3a8cc429o1
Call-ID:
[email protected]
CSeq: 102 INVITE
Expires: 240
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Proxy-Authorization: Digest username="103",realm="3CXPhoneSystem",nonce="12851413205:3a86fb7719baeb097c6424f7a8d4a17b",uri="sip:
[email protected]",algorithm=MD5,response="d89a28e2e8a8b4de597d5be0e207b811"
Supported: x-sipura
User-Agent: Linksys/SPA3102-3.3.6(GW)
Content-Length: 0
Remote-Party-ID: LinkSys103 [sip:
[email protected]];screen=yes;party=calling
Diversion: Gateway10001 [sip:
[email protected]];reason=unconditional
Step 3. This error log given above is generated as 3CX assumes 0515598889 as sip id from the statement "sip:
[email protected]" (taken from the above log). We have to Authenticate it in 3CX. In step 3 remove password from the gateway. To do this click manage in Lines in the 3CX management console. Now you will see you gateway some thing like 10000 ... click on Gateway/Provider Name, In my case it is LinksysGateway it is name given to my gateway when gateway was added. You will find Source Identification here.
there will be three rows under it.
You have to set only first row, In the SIP Field: choose-> Contact: Host Part
In Value choose -> Custom Field
Custom Value -> 192.168.0.230:5061
Now dial the call I hope you will get the Caller ID i.e. hhe telephone number of the caller.