Dialing Wrong (bad) Numbers

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Dialing Wrong (bad) Numbers

Postby marcoe » Tue Dec 10, 2013 1:57 pm

Hello,

I've notice a problem with some calls that have bad numbers, for some reason leads are created with numbers that won't "fit" any dialing rules, and these leads are not getting their status changed when a call is made, so they stay as "NEW" but the user field is set as "VDAD".

I created a new _X. (bad, bad, bad..) extension like this:
Code: Select all
exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,n,Congestion(2)
exten => _X.,n,Hangup


But I'm not feeling good about this, Is this ok ? Should Vicidial have a set of rules to address this situation ?

This rule created the folowing output on console:

Code: Select all
[Dec 10 16:42:54]     -- Executing [002622222222222@default:1] AGI("Local/002622222222222@default-5135,2", "agi://127.0.0.1:4577/call_log") in new stack
[Dec 10 16:42:54]     -- Executing [002622222222222@default:2] Congestion("Local/002622222222222@default-5135,2", "2") in new stack
[Dec 10 16:42:54]        > Channel Local/002622222222222@default-5135,1 was never answered.
[Dec 10 16:42:54]   == Spawn extension (default, 002622222222222, 2) exited non-zero on 'Local/002622222222222@default-5135,2'
[Dec 10 16:42:54]     -- Executing [h@default:1] DeadAGI("Local/002622222222222@default-5135,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack



I also found this on my extensions.conf but they don't seem to be working because when we dialed a wrong number the output on console was "No such extension/context ", before my _X. rule.
Code: Select all
; # timeout invalid rules
exten => #,1,Playback(invalid)              ; "Thanks for trying the demo"
exten => #,2,Hangup                     ; Hang them up.
exten => t,1,Goto(#,1)                  ; If they take too long, give up
exten => i,1,Playback(invalid)          ; "That's not valid, try again"


Versions:
VERSION: 2.6-393a BUILD: 130124-1721
ViciBox Redux v.4.0.3 released
Asterisk 1.4.44-vici
marcoe
 
Posts: 60
Joined: Tue Feb 23, 2010 2:06 pm
Location: Brazil

Re: Dialing Wrong (bad) Numbers

Postby williamconley » Mon Dec 16, 2013 12:19 am

from extensions.conf:

Code: Select all
; special extensions for North America to catch invalid phone numbers
; exten => _91XXX[0-1]XXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91XXX[0-1]XXXXXX,n,Dial(${TRUNKloop}/8889990011112,,to)
; exten => _91XXX[0-1]XXXXXX,n,Hangup
; exten => _91[0-1]XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91[0-1]XXXXXXXXX,n,Dial(${TRUNKloop}/8889990011112,,to)
; exten => _91[0-1]XXXXXXXXX,n,Hangup
; exten => _91XXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91XXXXXX,n,Dial(${TRUNKloop}/8889990011112,,to)
; exten => _91XXXXXX,n,Hangup
; exten => _91XXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91XXXXXXX,n,Dial(${TRUNKloop}/8889990011112,,to)
; exten => _91XXXXXXX,n,Hangup
; exten => _91XXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91XXXXXXXX,n,Dial(${TRUNKloop}/8889990011112,,to)
; exten => _91XXXXXXXX,n,Hangup
; exten => _91XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91XXXXXXXXX,n,Dial(${TRUNKloop}/8889990011112,,to)
; exten => _91XXXXXXXXX,n,Hangup
; exten => _91XXXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91XXXXXXXXXXX,n,Dial(${TRUNKloop}/8889990011112,,to)
; exten => _91XXXXXXXXXXX,n,Hangup
; exten => _91XXXXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91XXXXXXXXXXXX,n,Dial(${TRUNKloop}/8889990011112,,to)
; exten => _91XXXXXXXXXXXX,n,Hangup
; exten => _91XXXXXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91XXXXXXXXXXXXX,n,Dial(${TRUNKloop}/8889990011112,,to)
; exten => _91XXXXXXXXXXXXX,n,Hangup
; block calls to 555 numbers
; exten => _91NXX555NXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91NXX555NXXX,n,Dial(${TRUNKloop}/8889990011112,,to)
; exten => _91NXX555NXXX,n,Hangup


Note you must change it to match your dialplan, or change your dialplan to have a 9 dial prefix (recommended, as that allows for multiple carriers where dial X does not ..).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 59 guests