Dialplan for invalid or wrong numbers
Posted:
Tue May 29, 2018 2:18 pm
by vkad
What is the dialplan to catch the invalid and wrong numbers (or numbers not elsewhere in the dialplan)?
We have some calls lasting for hours and they are invalid numbers...How can we catch this?
We have multiple carriers, is there a place where we can place a max time limit on these calls?
Re: Dialplan for invalid or wrong numbers
Posted:
Sat Jun 22, 2019 3:32 pm
by williamconley
- Code: Select all
exten=> s,1,AGI(agi://127.0.0.1:4577/call_log)
exten=> s,n,NoOp(No Dial Pattern Matches This Extension)
exten=> s,n,Hangup
We like to put this in a "Generic" carrier along with this entry using a global variable to identify the carrier to use when they don't use a dial prefix. this allows easy choice of the "no prefix" carrier without altering any other diaplans.
- Code: Select all
exten => _1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1NXXNXXXXXX,n,Dial(${CHOSEN}/${EXTEN},,tTor)
exten => _1NXXNXXXXXX,n,Hangup
Re: Dialplan for invalid or wrong numbers
Posted:
Sat Jun 22, 2019 9:00 pm
by ambiorixg12
I think what you define as an INVALID number is something you can't handle on the Asterisk dial plan , an INVALID number would be a number dialed where there is no pattern match for that number. What you meantion is not related, and related to set a timeout for calls using the Asterisk function TIMEOUT()
for example
same=>n,Set(timeout=130000)
same=>n,Set(TIMEOUT(absolute)=${timeout})