hey forum
i have a little problem with web-callback.
when i set answer_call = NO in [callback] section of a2billing.conf the first number is called, but when i pick up the phone the call ends.
here is the log :
Code:
a2billing.php|3|callback: [agi_request] => a2billing.php
a2billing.php|3|callback: [agi_channel] => SIP/TEL01-081c4d68
a2billing.php|3|callback: [agi_language] => en
a2billing.php|3|callback: [agi_type] => SIP
a2billing.php|3|callback: [agi_uniqueid] => 1228510303.1
a2billing.php|3|callback: [agi_callerid] => 123456
a2billing.php|3|callback: [agi_calleridname] => unknown
a2billing.php|3|callback: [agi_callingpres] => 0
a2billing.php|3|callback: [agi_callingani2] => 0
a2billing.php|3|callback: [agi_callington] => 0
a2billing.php|3|callback: [agi_callingtns] => 0
a2billing.php|3|callback: [agi_dnid] => unknown
a2billing.php|3|callback: [agi_rdnis] => unknown
a2billing.php|3|callback: [agi_context] => a2billing-callback
a2billing.php|3|callback: [agi_extension] => 0034637xxx
a2billing.php|3|callback: [agi_priority] => 2
a2billing.php|3|callback: [agi_enhanced] => 0.0
a2billing.php|3|callback: [agi_accountcode] => 66965
a2billing.php|3|callback: )
a2billing.php|3|callback:
a2billing.php|3|callback: file:Class.A2Billing.php - line:621 - get_agi_request_parameter = 123456 ; SIP/TEL01-081c4d68 ; 1228510303.1 ; 66965 ; 0034637xxxxxx
a2billing.php|3|callback: file:a2billing.php - line:699 - [CALLBACK]:[MODE : CALLBACK]
a2billing.php|3|callback: file:a2billing.php - line:713 - [CALLBACK]:[NO ANSWER CALL]
a2billing.php|3|callback: file:a2billing.php - line:747 - [CALLBACK]:[GET VARIABLE : CALLED=0034971xxxxxx | CALLING=0034xxxxxx | MODE= | TARIFF= | CBID=93354-llmr3km | LEG=66965]
a2billing.php|3|callback: file:Class.A2Billing.php - line:1640 - SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix, redial, enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, UNIX_TIMESTAMP(firstusedate), UNIX_TIMESTAMP(cc_card.creationdate), cc_card.currency, cc_card.lastname, cc_card.firstname, cc_card.email, cc_card.uipass, cc_card.id_campaign, cc_card.id, useralias FROM cc_card LEFT JOIN cc_tariffgroup ON tariff=cc_tariffgroup.id WHERE username='66965'
a2billing.php|3|callback: file:Class.A2Billing.php - line:1714 - [SET CHANNEL(language) en]
a2billing.php|3|callback: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='66965']
a2billing.php|3|callback: file:Class.A2Billing.php - line:1400 - [AUTO SetCallerID]
a2billing.php|3|callback: file:Class.A2Billing.php - line:1406 - [REQUESTED SetCallerID : 123456]
a2billing.php|3|callback: file:Class.A2Billing.php - line:1417 - [EXEC SetCallerID : 123456]
a2billing.php|3|callback: file:a2billing.php - line:775 - [CALLBACK]:[CHANNEL STATUS : 6 = Line is up][status_channel=4]:[ORIG_CREDIT : 39.63420 - CUR_CREDIT - : 19.8171 - CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php|3|callback: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='66965']
-- AGI Script a2billing.php completed, returning 0
when i set answer_call = YES in [callback] the callback works. is that correct behaviour? when the CALLER ends i get MUSICONHOLD on the called party... why that?