CISCO SPA8800 for connection to the PSTN telephone network. equipment is being used.
When receiving a call, an incoming number called PSTN Peer appears on the SPA8800 gateway, but Asterisk seems to be connected to the extension of the line registered in the trunk.
Is there a way to recognize the PSTN peer’s CID from the Asterisk server? For example, DisplayName or PSTN Name should be recognized by Asterisk…
I’m looking for a way, but I haven’t found it yet…
You would need to provide your SIP configuration in use, as well as a SIP trace (if using chan_sip: sip set debug on - if using chan_pjsip: pjsip set logger on), to confirm that it’s actually being sent to Asterisk and how.
Hi.
configuration file was set according to the following setting instructions provided by Cisco.
→ Configuring the Cisco SPA8800 IP Telephony Gateway in an Asterisk® Environment
The PSTN Peer on the SPA8800 will properly display numbers from outside.
And Asterisk also shows line-by-line extensions specified in sip.conf.
I want Asterisk to recognize this CID.
There seem to be a lot of terminology issues here. No Asterisk extension are relevant to the caller ID.
It sounds to me as though you have a caller ID set in your sip.conf peer definition for the gateway. You should remove that setting, as it will override all forms of caller ID from the gateway.
Hopefully the gateways is using the From user name for the caller ID, in which case removing the caller ID override is sufficient. If not, you will need to see if it is sending the caller ID in Remote-Party-ID, or P-Asserted-Identity headers, in which case trustrpid=yes, should give you the caller ID.
If it is using any other means of sending caller ID, precise details will be needed.