Page 1 of 1

Caller ID

PostPosted: Tue Mar 25, 2014 11:16 am
by chasejordan1
I have 12 different campaigns and we change the caller ID every few hours, but it is a very daunting task, is there a way I can change the caller ID with a MySQL command, say one command for all active campaigns or something.

Re: Caller ID

PostPosted: Tue Mar 25, 2014 11:39 am
by chasejordan1
Ok so here is my "fix" if there is a better way please let me know, also the caller ID's are real Caller ID's. (not the ones show)

00 8 * * * mysql asterisk -u cron -pxxxxxx -e "UPDATE vicidial_campaigns SET campaign_cid='666666669'"
30 8 * * * mysql asterisk -u cron -pxxxxxx -e "UPDATE vicidial_campaigns SET campaign_cid='666666667'"
00 9 * * * mysql asterisk -u cron -pxxxxxx -e "UPDATE vicidial_campaigns SET campaign_cid='666666664'"

Re: Caller ID

PostPosted: Sat Mar 29, 2014 9:20 am
by striker
if all your campaigns uses same Carrier and dialplan then u can use the dialplan to have callerid set

sample
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Set(CALLERID(num)=yourcalleridnumber)
exten => _9X.,3,Dial(SIP/${EXTEN:4}@VOIPs,,TtoRr)
exten => _9X.,4,Hangup