QUESTION Ring group with dynamic 'destination if no answer'

paulnye

Guru
Joined
Apr 17, 2011
Messages
208
Reaction score
2
Is it possible for a ring group to have a 'destination if no answer' determined by what DID was dailed?

Example:
1. Inbound call to DID 4105551111 > ring group 400 > no answer > destination > VMail ext 301
2. Inbound call to DID 4105552222 > ring group 400 > no answer > destination > VMail ext 302

I would like to avoid using a second ring group as we like to use call pickup via dss key on the phone, and dont want 2 buttons to have to choose from to pickup

Thanks to anyone who can offer help

Asterisk 11/ FreePBX 2.11
 

krakastan

Guru
Joined
Feb 20, 2008
Messages
135
Reaction score
22
not dabbled for a while and very rusty but this might work as a starter for 10.....

--------------------
Edit: extensions_custom.conf

Code:
[VMbasedDID]
exten => s,1,NoOp(VMbasedDID-${DID}) ; For debugging
same => n,Set(VMNum=302) ; Sets the default VMNumber if no DID match
same => n,Set(VMNum=${IF($[ ${DID} = 4105551111] ? 301 : ${VMNum} )}) ; Changes VMNumber if 1st DID matches
same => n,Set(VMNum=${IF($[ ${DID} = 4105552222 ] ? 302 : ${VMNum} )}) ; Changes VMNumber if 2nd DID matches
same => n,Dial(Local/*${VMNum}@from-internal,,Tto) ; Dials & routes to VMNumber
same => n,Hangup

In FreePBX GUI
Admin > Custom Destinations
Custom Destination: VMbasedDID,s,1
Description: VMbasedDID

Set RingGroup Destination No Reply : Custom Destination [VMbasedDID]
--------------------
Notes:
DID should get inherited
* is vm directdial featurecode
not sure if from-internal is the best context to dial from

hope it helps
 

Members online

No members online now.

Forum statistics

Threads
25,804
Messages
167,727
Members
19,232
Latest member
voiplads
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top