mod83
October 28, 2008, 10:48am
1
Hi,
i have 3 digits internal Numbers (100-999) and i want to realize a function who checks, if an extension is available (or not) and route this to a defined specific extension.
Example:
I have extensions for 100 and 101. When a call is for 102 (extension that doesnt exists) it would be nice, that the call is tranfered to 100. When a call is for 100, the call should be tranferred to 100…
Thanks for help,
Mod
david55
October 28, 2008, 11:02am
2
${DIALSTATUS} after Dial
I think 1.6 has functions for getting device status.
mod83
October 28, 2008, 11:09am
3
Hi!
I have asterisk 1.4
My extensions.conf looks like this:
exten => _12345XXX,1,Dial(SIP/${EXTEN:5},20)
This handles calls from outside…
How can i implementent DIALSTATUS in this Case?
Mod
mod83
October 28, 2008, 11:54am
5
Could you please help me HOW to implement DIALSTATUS in my extensions.conf?
davevg
October 28, 2008, 2:23pm
6
exten => _12345XXX,1,Dial(SIP/${EXTEN:5},20)
exten => _12345XXX,n,NoOp(${DIALSTATUS})
exten => _12345XXX,n, do something based on the status...
And DIALSTATUS will be one of:
CHANUNAVAIL | CONGESTION | NOANSWER | BUSY | ANSWER | CANCEL
DONTCALL | TORTURE | INVALIDARGS
mod83
October 28, 2008, 3:04pm
7
Hi,
thanks for help.
And when an extension is not available it is ths status “chanunavail”?
I dont know how to “do something based on the status”. Could you please provide me an example based on my need?
Thanks,
Mod
davevg
October 28, 2008, 6:38pm
8
Look in the configs directory of your asterisk source for some example dialplans in extensions.conf. Specifically look at macro-stdexten.