Need to Know how can we change last 7 digits of Caller ID

Any and all non-support discussions

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

Need to Know how can we change last 7 digits of Caller ID

Postby monicalawrence » Fri Sep 27, 2019 8:29 am

Hi please help me to do this as my script only changing last 4 digits of caller ID here is the script pasted for your reference.
================================
exten => _931X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _931X.,n,Set(CALLERID(num)=${EXTEN:3:6}${RAND(1001,9999)})
exten => _931X.,n,Dial(SIP/VoipBlaze/1${EXTEN:3})
exten => _931X.,n,Dial(SIP/VB/1${EXTEN:3})
exten => _931X.,n,Hangup()
================================
monicalawrence
 
Posts: 1
Joined: Thu Sep 26, 2019 10:05 am

Re: Need to Know how can we change last 7 digits of Caller I

Postby omarrodriguezt » Fri Sep 27, 2019 9:46 am

Try this
exten => _931X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _931X.,n,Set(area=${EXTEN:3:6})
exten => _931X.,n,Set(last4=${RAND(1000,9999)})
exten => _931X.,n,Noop(new cid is ${area}${last4} )
exten => _931X.,n,Set(CALLERID(num)=${area}${last4})
exten => _931X.,n,Dial(SIP/VoipBlaze/1${EXTEN:3})
exten => _931X.,n,Dial(SIP/VB/1${EXTEN:3})
exten => _931X.,n,Hangup()
http://www.ITContinental.com
Dedicated USA Servers - Vicibox - Vicidial - Limesurvey - Vtiger CRM - More than 15 years experience - Hablamos Español
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 45 guests