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.5 | SVN Version: 3920 | DB Schema Version: 1725 | Asterisk 18.26.0 | PHP8
https://dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
DC: https://discord.gg/DVktk6smbh -:- TG: https://t.me/+wkDmkF9U4aUxOGYx
carpenox
 
Posts: 2595
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: 18406
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.5 | SVN Version: 3920 | DB Schema Version: 1725 | Asterisk 18.26.0 | PHP8
https://dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
DC: https://discord.gg/DVktk6smbh -:- TG: https://t.me/+wkDmkF9U4aUxOGYx
carpenox
 
Posts: 2595
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: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

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