Dialed number information service (DNIS)

DNIS, or Dialed Number Information Service lets your PBX know which number someone called in on. It's useful if you have multiple phone numbers belonging to different companies or departments handled by the same PBX. DNIS has a negative impact when routing for devices that don't understand DNIS.

DNIS in IVY

DNIS is sent based on the type of connection you use:

  • DNIS is sent on calls to SIP Trunks
  • DNIS is not sent on calls to Devices.

IVY DNIS formatting

DNIS is sent with a country code, like so:

13036298300 for a domestic US number

442033185511 for a United Kingdom number

DNIS will be sent exactly as listed in your site's Phone numbers:

 

How does DNIS work?


A normal SIP INVITE looks kind of like this:

U 2009/07/14 10:34:58.896453 63.211.239.14:5060 -> 63.211.239.34:5060
INVITE sip:teliax-user@63.211.239.34 SIP/2.0.
Via: SIP/2.0/UDP 63.211.239.14;rport;branch=z9hG4bKg2XaUm08c9g1D.
Max-Forwards: 67.
From: "TELIAX FAX" <sip:3038251332@63.211.239.14>;tag=3DX89NUrNm4SS.
To: <sip:teliax-user@63.211.239.34>.


but if we want to know what number they called, we enable DNIS and the INVITE changes to look like this:

U 2009/07/14 10:36:11.733727 63.211.239.14:5060 -> 63.211.239.34:5060
INVITE sip:17203307210@63.211.239.34 SIP/2.0.
Via: SIP/2.0/UDP 63.211.239.14;rport;branch=z9hG4bK4meSgDB1302tr.
Max-Forwards: 67.
From: "TELIAX FAX" <sip:3038251332@63.211.239.14>;tag=ceHmH3r87rr0j.
To: <sip:7203307210@63.211.239.34>.


Do you see the difference? Instead of sending the call to a user, we send it to a number. It's then up to your PBX to decide where to route the call.

If you have an ATA or a softphone, it usually only understands INVITEs sent with a username. If DNIS is enabled, your device may reply with a 404 Not Found and the call will fail.

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk