CNAM SIP SUBSCRIBE / NOTIFY CAPABILITY
Bandwidth’s Caller Name (CNAM) is a service that provides the Caller Name on VoIP calls in the US and Canada. Bandwidth is introducing an additional capability to access this service via SIP messaging. This service adds the optional ability to query the CNAM database using the SIP SUBSCRIBE - NOTIFY framework. This method is particularly useful for customers that may have already implemented this method. Once the request is made via a SIP SUBSCRIBE message, the calling name is returned to the customer application or dial plan via a SIP NOTIFY message. The CNAM data is managed by the phone company who provides the phone numbers to its customers.
Specifications for CNAM Configuration & Implementation
SBC (SESSION BORDER CONTROLLER) IP INFORMATION
Bandwidth employs mated pairs of SBC’s for signaling redundancy. For CNAM services, please ensure that both IP addresses provided are configured for inbound traffic in the event that one SBC is offline.
To obtain the specific IPs used for the CNAM Subscribe Service, please reach out to your Implementation Specialist, if you are currently working with one. If not, please open a support ticket at Bandwidth.com/support.
SIP SUBSCRIBE - NOTIFY OVERVIEW
Subscribe/Notify consists of 2 SIP transactions. The requestor sends a Subscribe request to initiate a CNAM DIP and Bandwidth responds with a message indicating the status of the request to complete the initial transaction. Bandwidth then sends a Notify message in the opposite direction with the CNAM information and the customer responds with a message to indicate acceptance of the message containing the CNAM information. The signaling flow is depicted below.
Note: There is a possibility in some cases that the NOTIFY message is received before the 200 OK response to the initial SUBSCRIBE. This is as described in RFC 3265 Session Initiation Protocol (SIP)-Specific Event Notification.
SUBSCRIBE MESSAGE FORMAT
The following is an example of a SIP Subscribe message requesting the CNAM information for +15551111212. The Expires header is always required and is required to be 0. The Event: cnam field identifies this message as a CNAM request. The request-id: parameter can be used by the requestor to insert an alphanumeric identifier as a reference to the request. The message body consists of only of the Calling-Party field which must contain a valid SIP URI for the number to be dipped for CNAM.
SUBSCRIBE sip:Bandwidth SIP/2.0
Via: SIP/2.0/UDP Customer;branch=ehnansucdjdisao
CSeq: 150 SUBSCRIBE
NOTIFY MESSAGE FORMAT
Once the lookup is accepted and completed by Bandwidth a Notify message will be sent with the CNAM info retrieved. Following is an example of a Notify message in response to the Subscribe message in the previous section. The CNAM information in this case is “John’s Pizza”. Note that the request-id information is returned in the Notify message so the customer can correlate this message to the original Subscribe.
NOTIFY sip:Customer SIP/2.0
Via: SIP/2.0/UDP Bandwidth;branch=a1hB4bGnashds4
Cseq: 200 NOTIFY
Calling-Name: “John’s Pizza”
Possible error codes you may receive in response to the SUBSCRIBE message.
- 400, 500: Customer IP address not in the Access Control List
- 500: CNAM service temporarily unavailable
Was this article helpful?
2 out of 4 found this helpful