hi guys, i am using this dialplan for callerid changing foreverycall just want to know how this dialplan works ..and if i have to create this dialplan to work in a new server how should i go about it ..should i create some mysql databases please guys help me out this time hope to receive a reply soon.
exten => _700X.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _700X.,n,Set(us=${CALLERID(num)})
exten => _700X.,n,Set(uk=${EXTEN:1})
exten => _700X.,n,Set(aus=${EPOCH})
;exten => _700X.,n,Set(aus=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => _700X.,n,AGI(j.agi,${aus},${us},${uk})
exten => _700X.,n,MYSQL(Connect connid localhost cron 1234 asterisk)
exten => _700X.,n,MYSQL(Query resultid ${connid} SELECT\ list_id\ from\ vicidial
_list\ where\ phone_number=${EXTEN:5} ORDER BY RAND() LIMIT 1)
exten => _700X.,n,MYSQL(Fetch fetchid ${resultid} jack)
exten => _700X.,n,MYSQL(Clear ${resultid})
exten => _700X.,n,MYSQL(Query resultid ${connid} SELECT\ alt_phone\ from\ vicidi
al_list\ where\ list_id=${jimmy123} ORDER BY RAND() LIMIT 1)
exten => _700X.,n,MYSQL(Fetch fetchid ${resultid} jack)
exten => _700X.,n,MYSQL(Clear ${resultid})
exten => _700X.,n,MYSQL(Disconnect ${connid})
exten => _700X.,n,Set(CALLERID(num)=${jack}
;exten => _700X.,n,Set(CALLERID(num)=1132383679)
;exten => _700X.,n,Set(TIMEOUT(absolute)=5)
exten => _700X.,n,Dial(SIP/${EXTEN:3}@jimmy,,tTorL)
exten => _700X.,n,Hangup()