Dear Friends, Recently I insalled A2B 1.3 Yellow Jacket, but i am facing very strange problem, and after searching a lot on the forums and google there is no solution, can someone please give me some time and see the following information and let me know whats the problem with my configuration.
Asterisk Console output:
##########################################
-- Executing Answer("SIP/5307218035-098555d0", "") in new stack
-- Executing Wait("SIP/5307218035-098555d0", "2") in new stack
-- Executing DeadAGI("SIP/5307218035-098555d0", "a2billing.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php: A2Billing AGI internal configuration:
a2billing.php: Array
a2billing.php: (
a2billing.php: [debug] => 1
a2billing.php: [asterisk_version] => 1_2
a2billing.php: [answer_call] => 1
a2billing.php: [play_audio] => 1
a2billing.php: [say_goodbye] =>
a2billing.php: [play_menulanguage] =>
a2billing.php: [force_language] =>
a2billing.php: [intro_prompt] =>
a2billing.php: [min_credit_2call] => 0
a2billing.php: [min_duration_2bill] => 0
a2billing.php: [notenoughcredit_cardnumber] => 1
a2billing.php: [notenoughcredit_assign_newcardnumber_cid] => 1
a2billing.php: [use_dnid] =>
a2billing.php: [no_auth_dnid] => Array
a2billing.php: (
a2billing.php: [0] => 2400
a2billing.php: [1] => 2300
a2billing.php: )
a2billing.php:
a2billing.php: [number_try] => 30
a2billing.php: [force_callplan_id] => 1
a2billing.php: [say_balance_after_auth] => 1
a2billing.php: [say_balance_after_call] => 1
a2billing.php: [say_rateinitial] =>
a2billing.php: [say_timetocall] => 1
a2billing.php: [auto_setcallerid] => 1
a2billing.php: [force_callerid] => 123
a2billing.php: [cid_sanitize] =>
a2billing.php: [cid_enable] =>
a2billing.php: [cid_askpincode_ifnot_callerid] => 1
a2billing.php: [cid_auto_assign_card_to_cid] => 1
a2billing.php: [cid_auto_create_card] =>
a2billing.php: [cid_auto_create_card_len] => 10
a2billing.php: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php: [cid_auto_create_card_credit] => 0
a2billing.php: [cid_auto_create_card_credit_limit] => 1000
a2billing.php: [cid_auto_create_card_tariffgroup] => 6
a2billing.php: [callerid_authentication_over_cardnumber] =>
a2billing.php: [sip_iax_friends] =>
a2billing.php: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php: [sip_iax_pstn_direct_call] =>
a2billing.php: [ivr_voucher] =>
a2billing.php: [ivr_voucher_prefix] => 8
a2billing.php: [jump_voucher_if_min_credit] =>
a2billing.php: [extracharge_did] => Array
a2billing.php: (
a2billing.php: [0] =>
a2billing.php: )
a2billing.php:
a2billing.php: [extracharge_fee] => Array
a2billing.php: (
a2billing.php: [0] =>
a2billing.php: )
a2billing.php:
a2billing.php: [dialcommand_param] => |60|HRrL(%timeout%:61000:30000)
a2billing.php: [dialcommand_param_sipiax_friend] => |60|HL(3600000:61000:30000)
a2billing.php: [switchdialcommand] => 1
a2billing.php: [failover_recursive_limit] => 2
a2billing.php: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php: [send_reminder] =>
a2billing.php: [record_call] =>
a2billing.php: [monitor_formatfile] => gsm
a2billing.php: [agi_force_currency] =>
a2billing.php: [currency_association] => Array
a2billing.php: (
a2billing.php: [0] => usd:dollars
a2billing.php: [1] => mxn:pesos
a2billing.php: [2] => eur:euros
a2billing.php: [3] => all:credit
a2billing.php: )
a2billing.php:
a2billing.php: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php: [logger_enable] => 1
a2billing.php: [log_file] => /tmp/a2billing.log
a2billing.php: [currency_association_internal] => Array
a2billing.php: (
a2billing.php: [usd] => dollars
a2billing.php: [mxn] => pesos
a2billing.php: [eur] => euros
a2billing.php: [all] => credit
a2billing.php: )
a2billing.php:
a2billing.php: [ivr_voucher_prefixe] => 8
a2billing.php: )
a2billing.php:
a2billing.php: file:a2billing.php - line:75 - IDCONFIG : 1
a2billing.php: file:a2billing.php - line:76 - MODE : standard
a2billing.php: file:a2billing.php - line:88 - AGI Request:
a2billing.php: file:a2billing.php - line:89 - Array
a2billing.php: (
a2billing.php: [agi_request] => a2billing.php
a2billing.php: [agi_channel] => SIP/5307218035-098555d0
a2billing.php: [agi_language] => en
a2billing.php: [agi_type] => SIP
a2billing.php: [agi_uniqueid] => 1186415013.103
a2billing.php: [agi_callerid] => 1234567
a2billing.php: [agi_calleridname] => Admin
a2billing.php: [agi_callingpres] => 0
a2billing.php: [agi_callingani2] => 0
a2billing.php: [agi_callington] => 0
a2billing.php: [agi_callingtns] => 0
a2billing.php: [agi_dnid] => 000
a2billing.php: [agi_rdnis] => unknown
a2billing.php: [agi_context] => a2billing
a2billing.php: [agi_extension] => 000
a2billing.php: [agi_priority] => 3
a2billing.php: [agi_enhanced] => 0.0
a2billing.php: [agi_accountcode] => 5307218035
a2billing.php: )
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:601 - get_agi_request_parameter = 1234567 ; SIP/5307218035-098555d0 ; 1186415013.103 ; 5307218035 ; 000
a2billing.php: file:a2billing.php - line:138 - [ANSWER CALL]
a2billing.php: file:Class.A2Billing.php - line:1668 - 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='5307218035'
a2billing.php: file:Class.A2Billing.php - line:1742 - [SET LANGUAGE() en]
a2billing.php: file:Class.A2Billing.php - line:634 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='5307218035']
a2billing.php: file:Class.A2Billing.php - line:1969 - [A2Billing] SAY BALANCE : 10.00000
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:1122 - [CURRENCY : USD]
-- Playing 'digits/10' (language 'en')
a2billing.php: file:Class.A2Billing.php - line:1427 - [AUTO SetCallerID]
a2billing.php: file:Class.A2Billing.php - line:1431 - [EXEC SetCallerID : 123]
a2billing.php: file:a2billing.php - line:169 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:170 - [CREDIT : 10.00000][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:656 - && && 3&& 0
-- Playing 'prepaid-enter-dest' (language 'en')
a2billing.php: file:Class.A2Billing.php - line:663 - RES DTMF : 00441111234567
a2billing.php: file:Class.A2Billing.php - line:681 - DESTINATION ::> 00441111234567
a2billing.php: file:Class.A2Billing.php - line:683 - RULES APPLY ON DESTINATION ::> 441111234567
a2billing.php: file:Class.RateEngine.php - line:67 - force the call plan : 1
a2billing.php: file:Class.A2Billing.php - line:721 - OK - RESFINDRATE::> 1
a2billing.php: file:Class.A2Billing.php - line:743 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php: file:Class.A2Billing.php - line:760 - TIMEOUT::> 990 : minutes=16 - seconds=30
-- Playing 'digits/16' (language 'en')
-- Playing 'digits/30' (language 'en')
a2billing.php: file:Class.RateEngine.php - line:960 - app_callingcard: Dialing 'SIP/1111#
[email protected]|60|HRrL(990000:61000:30000)' with timeout of '990'.
a2billing.php:
a2billing.php: file:Class.RateEngine.php - line:985 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
-- AGI Script Executing Application: (Dial) Options: (SIP/1111#
[email protected]|60|HRrL(990000:61000:30000))
-- Limit Data for this call:
-- - timelimit = 990000
-- - play_warning = 61000
-- - play_to_caller= yes
-- - play_to_callee= no
-- - warning_freq = 30000
-- - start_sound = UNDEF
-- - warning_sound = timeleft
-- - end_sound = UNDEF
-- Called 1111#
[email protected]
Aug 6 11:43:53 WARNING[11518]: chan_sip.c:1228 retrans_pkt: Maximum retries exceeded on transmission
[email protected] for seqno 54898 (Critical Response)
Aug 6 11:43:53 WARNING[11518]: chan_sip.c:1245 retrans_pkt: Hanging up call
[email protected] - no reply to our critical packet.
== Spawn extension (a2billing, 000, 3) exited non-zero on 'SIP/5307218035-098555d0'
###############################################
sip.conf
[5307218035]
type=friend
username=5307218035
accountcode=5307218035
regexten=5307218035
callerid=123456
amaflags=billing
secret=***
nat=yes
dtmfmode=RFC2833
qualify=yes
canreinvite=no
disallow=all
allow=ulaw
allow= alaw
allow= gsm
allow= g729
host=dynamic
context=a2billing
rtptimeout=300
rtpholdtimeout=300
regseconds=300
##########################################
Extensions.confs
[a2billing]
; CallingCard application
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _44XXXXXXXXXX,1,Dial(SIP/123#${EXTEN}@trunk)
exten => _X.,5,Hangup
Answers to some expected questions:
1. I have checked the asterisk/trunk config, when I dial any number without A2B it works fine. Even sometimes A2B succeeds in executing the Dial command, but chan_sip.c gives error and call drops from this asterisk box, but at the trunk side it keeps on ringing the called phone number. This is again a very serious problem, because A2B logs the call to be 00:00:00 duration with no charges, but the called party picks up the phone because the calling party session was disconnected, called party hears nothing. But billing starts at the carrier side, and you have to pay for the call which was never connected to your user. This is a very critical scenerio and needs attention.
2. Everything else is just fine, but just after A2B executes the Dial command, chan_sip.c gives error and drops the calling party session, I tried many parameters in asterisk like increasing the timeout of regd etc, even enabled Silence Transmit in Xten, but no luck.
I will be thankful for your help.
Regards