I made cm_dnc.agi for Opt-In
Posted: Wed Jun 28, 2017 6:12 am
Hi guiz!
I needed to create a new option for opt-in on and IVR.
I made an addition to cm_dnc_agi script change to allow for a status INT (created in system statuses):
### process for INT path
if ($new_status =~ /INT/) # set the phone_number to INT
{
if ($g > 0)
{
### update all records for the phone_number in vicidial_list to INT (Interested Opt In)
$stmtA = "UPDATE vicidial_list SET status='INT' where lead_id IN($SleadsSQL);";
$affected_rows = $dbhA->do($stmtA);
if ($AGILOG) {$agi_string = "$affected_rows|$stmtA|"; &agi_output;}
}
}
Looks simple enough to work properly.
Can I submit this to code base for inclusion once it's documented etc?
Please advise,
I needed to create a new option for opt-in on and IVR.
I made an addition to cm_dnc_agi script change to allow for a status INT (created in system statuses):
### process for INT path
if ($new_status =~ /INT/) # set the phone_number to INT
{
if ($g > 0)
{
### update all records for the phone_number in vicidial_list to INT (Interested Opt In)
$stmtA = "UPDATE vicidial_list SET status='INT' where lead_id IN($SleadsSQL);";
$affected_rows = $dbhA->do($stmtA);
if ($AGILOG) {$agi_string = "$affected_rows|$stmtA|"; &agi_output;}
}
}
Looks simple enough to work properly.
Can I submit this to code base for inclusion once it's documented etc?
Please advise,