Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 9:29 am
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Dial Plan
PostPosted: Sat Mar 28, 2009 3:13 am 
Offline

Joined: Thu Sep 13, 2007 12:46 pm
Posts: 254
Location: Naples, Fl ( USA )
Hi,
on AutoDialer does anyone have a complete dialplan. I am kind of lost
with this
status => 0:Run, 1:onHold, 2: Stop


So you will need a similar script as bellow on your dialplan :


; We have to retrieve ${id_phonenumber} & ${id_campaign}
exten => _X.,n,Set(id_phonenumber=${CUT(CALLERID(name),\,,1)})
exten => _X.,n,Set(id_campaign=${CUT(CALLERID(name),\,,2)})
exten => _X.,n,NoOp(id_campaign = ${id_campaign}, id_phonenumber = ${id_phonenumber})


;connect to database
exten => _X.,n,MYSQL(Connect connid localhost a2billinguser a2billingpassword a2bdbname)

;Update the status of the phone number
; to put on Hold
; exten => _X.,n,MYSQL(Query resultid ${connid} UPDATE\ cc_campain_phonestatus\ SET\ status=1\
WHERE\ id_phonenumber=\${id_phonenumber}\ AND\ id_campaign=\${id_campaign})

; to put on Stop
exten => _X.,n,MYSQL(Query resultid ${connid} UPDATE\ cc_campain_phonestatus\ SET\ status=2\
WHERE\ id_phonenumber=\${id_phonenumber}\ AND\ id_campaign=\${id_campaign})


exten => _X.,n,MYSQL(Clear ${resultid})
exten => _X.,n,MYSQL(Disconnect ${connid}) ;closes database connection
Need some help.
thanks


Top
 Profile  
 
 Post subject: Dial Plan
PostPosted: Sun Mar 29, 2009 12:52 pm 
Offline

Joined: Thu Sep 13, 2007 12:46 pm
Posts: 254
Location: Naples, Fl ( USA )
does anyone have any idea how to. I need help on this.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group