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()
================================