Skip to content

Instantly share code, notes, and snippets.

@lgaetz
Last active May 9, 2020 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgaetz/bb6556ea92d348506cede5df98fdda93 to your computer and use it in GitHub Desktop.
Save lgaetz/bb6556ea92d348506cede5df98fdda93 to your computer and use it in GitHub Desktop.
FreePBX manual config for POTS dring
FreePBX basic config for Asterisk/DAHDI to enable Distinctive Ring Detection for incoming calls on POTS lines with
multiple DIDs. Once usedistinctiveringdetection has been enabled, you can get the dring values from the Asterisk
console/full log when you make an inbound call
compiled from various sources by lgaetz c. 2009
license: GPL2
[root@asterisk]# cat /etc/asterisk/chan_dahdi_channels_custom.conf
usedistinctiveringdetection=yes
dring1=0,0,0
dring1context=from-trunk-dring1
dring1range=10
dring2=337,0,0
dring2context=from-trunk-dring2
dring2range=30
dring3=0,44,0
dring3context=from-trunk-dring3
[root@asterisk]# cat /etc/asterisk/extensions_custom.conf
[from-trunk-dring1]
exten => s,1,Noop(Entering from-trunk-dring1 with DID = ${EXTEN} and setting to: AAAAAAAAAA)
exten => s,n,Goto(from-trunk,AAAAAAAAAA,1) ; sub actual DID in place of the A's
; end of [from-trunk-dring1]
[from-trunk-dring2]
exten => s,1,Noop(Entering from-trunk-dring2 with DID = ${EXTEN} and setting to: BBBBBBBBBB)
exten => s,n,Goto(from-trunk,BBBBBBBBBB,1) ; sub actual DID in place of the B's
; end of [from-trunk-dring2]
[from-trunk-dring3]
exten => s,1,Noop(Entering from-trunk-dring3 with DID = ${EXTEN} and setting to: CCCCCCCCCC)
exten => s,n,Goto(from-trunk,CCCCCCCCCC,1) ; sub actual DID in place of the C's
; end of [from-trunk-dring3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment