Loading 11 digit leads to only use 10 digits

All installation and configuration problems and questions

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

Loading 11 digit leads to only use 10 digits

Postby carpenox » Tue Jul 21, 2020 10:45 am

How can I load a list that uses 11 digit with the 1 to only use the 10 digits?
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Loading 11 digit leads to only use 10 digits

Postby mflorell » Tue Jul 21, 2020 3:10 pm

You could probably handle that in the dialplan, stripping out the first digit before dialing.
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Loading 11 digit leads to only use 10 digits

Postby carpenox » Tue Jul 21, 2020 7:59 pm

yea but what about if different lists are loaded in one campaign? there's no way to load and have it strip during the loading process?
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Loading 11 digit leads to only use 10 digits

Postby mflorell » Wed Jul 22, 2020 9:30 am

Not currently, but it doesn't matter if you have both 10 digit and 11 digit numbers being dialed, you can use separate dialplan entries for them:

exten => _9NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9NXXNXXXXXX,20,Dial(${VICITRUNK1}/${EXTEN:1},,To)
exten => _9NXXNXXXXXX,n,Hangup()

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,20,Dial(${VICITRUNK1}/${EXTEN:2},,To)
exten => _91NXXNXXXXXX,n,Hangup()
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

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