I've been informed that even if
number_try is greater than 1 it is impossible to use * for a follow-on call on a callback leg.
I've tried using both 'H' and 'h' in the
dial_cmd_param to no avail. The code in question loops correctly, but finds the channel no longer exists:
Code:
[16/01/2008 13:39:49]:[file:Class.RateEngine.php - line:930]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[[CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-0.12 , redial='0197XXXXXXX' , lastuse=now(), nbused=nbused+1 WHERE username='5XXXXXXXX3']]
[16/01/2008 13:39:49]:[file:Class.RateEngine.php - line:935]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[UPDATE cc_trunk SET secondusedreal = secondusedreal + 83 WHERE id_trunk='4']
[16/01/2008 13:39:49]:[file:Class.RateEngine.php - line:939]:[CallerID:2XXXXXXXXX]:[CN:5XXXXXXXX3]:[UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 83 WHERE id='21']
[16/01/2008 13:39:49]:[file:a2billing.php - line:311]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[[a2billing account stop]]
[16/01/2008 13:39:49]:[file:a2billing.php - line:171]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[[CHANNEL STATUS : 6 = Line is up]]
[16/01/2008 13:39:49]:[file:a2billing.php - line:172]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[[CREDIT : 1.1913][CREDIT MIN_CREDIT_2CALL : 0]]
[16/01/2008 13:39:49]:[file:Class.A2Billing.php - line:670]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[0 && 1 && 12&& 1]
[16/01/2008 13:39:49]:[file:Class.A2Billing.php - line:677]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[RES DTMF : -1]
[16/01/2008 13:39:49]:[file:Class.A2Billing.php - line:695]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[DESTINATION ::> -1]
[16/01/2008 13:39:49]:[file:Class.A2Billing.php - line:697]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[RULES APPLY ON DESTINATION ::> -1]
[16/01/2008 13:39:49]:[file:a2billing.php - line:171]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[[CHANNEL STATUS : -1 = There is no channel that matches SIP/IP.ADD.RES.S-081bb360]]
[16/01/2008 13:39:49]:[file:a2billing.php - line:172]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[[CREDIT : 1.1913][CREDIT MIN_CREDIT_2CALL : 0]]
[16/01/2008 13:39:49]:[file:Class.A2Billing.php - line:648]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[[CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='5XXXXXXXX3']]
[16/01/2008 13:39:49]:[CallerID:29XXXXXXXX]:[CN:5XXXXXXXX3]:[[STOP - EXIT]]
Am I right in thinking we're going to need changes to Asterisk before we can correctly implement follow-on calls during callback? I'm thinking perhaps modifying Asterisk to allow setting a channel variable indicating the exact leg we want to cleared down on *. I'm not too familiar with the Asterisk sources, so if anyone has any alternative ideas I'd be very interested to hear them.