Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 7:52 am
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: OK, we have a progress here...
PostPosted: Fri Aug 01, 2008 1:58 pm 
Offline

Joined: Fri Aug 01, 2008 9:51 am
Posts: 13
Hi,

I have a DID configured in Trixbox 2.0 that sends to the call to A2B 1.3.2 via "custom-a2billing-did,_X.,1"

It seems like the call is getting to A2B but there is a strange consignation from my SIP trunk although there are enough channels left in this trunk, then from some reason a call is made out from ZAP trunk which is not configured at A2B at all and if it's not enough, the call from the ZAP is getting to the DID number instead of the destination configured in A2B... :?

Here's a trace of the call, call out made from internal extension 111 with CID 07XXXXX60 and the incoming DID is 07XXXXX64

Code:

-- Executing Set("SIP/5060-b66a8eb0", "FROM_DID=72XXXXX64") in new stack
    -- Executing Gosub("SIP/5060-b66a8eb0", "app-blacklist-check|s|1") in new stack
    -- Executing LookupBlacklist("SIP/5060-b66a8eb0", "") in new stack
    -- Executing GotoIf("SIP/5060-b66a8eb0", "0?blacklisted") in new stack
    -- Executing Return("SIP/5060-b66a8eb0", "") in new stack
    -- Executing Goto("SIP/5060-b66a8eb0", "custom-a2billing-did|_X.|1") in new stack
    -- Goto (custom-a2billing-did,_X.,1)
    -- SIP/072-0acd9d18 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing Goto("SIP/111-b66a3970", "s-CONGESTION|1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing NoOp("SIP/111-b66a3970", "Dial failed due to CONGESTION - failing through to other trunks") in new stack
    -- Executing Macro("SIP/111-b66a3970", "dialout-trunk|1|072XXXXX64||") in new stack
    -- Executing Set("SIP/111-b66a3970", "DIAL_TRUNK=1") in new stack
    -- Executing Set("SIP/111-b66a3970", "_NODEST=") in new stack
    -- Executing Set("SIP/111-b66a3970", "DIAL_NUMBER=072XXXXX64") in new stack
    -- Executing Set("SIP/111-b66a3970", "ROUTE_PASSWD=") in new stack
    -- Executing Set("SIP/111-b66a3970", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "1?noauth") in new stack
    -- Goto (macro-dialout-trunk,s,8)
    -- Executing Set("SIP/111-b66a3970", "GROUP()=OUT_1") in new stack
    -- Executing Macro("SIP/111-b66a3970", "user-callerid|SKIPTTL") in new stack
    -- Executing NoOp("SIP/111-b66a3970", "user-callerid:  07XXXXX60") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "0?report") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "1?start") in new stack
    -- Goto (macro-user-callerid,s,5)
    -- Executing NoOp("SIP/111-b66a3970", "REALCALLERIDNUM is 111") in new stack
    -- Executing Set("SIP/111-b66a3970", "AMPUSER=111") in new stack
    -- Executing Set("SIP/111-b66a3970", "AMPUSERCIDNAME=Internal") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "0?report") in new stack
    -- Executing Set("SIP/111-b66a3970", "CALLERID(all)=Internal <111>") in new stack
    -- Executing Set("SIP/111-b66a3970", "REALCALLERIDNUM=111") in new stack
    -- Executing NoOp("SIP/111-b66a3970", "TTL:  ARG1: SKIPTTL") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,21)
    -- Executing NoOp("SIP/111-b66a3970", "Using CallerID "Internal" <111>") in new stack
    -- Executing Macro("SIP/111-b66a3970", "record-enable|111|OUT") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "0 > 0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing DeadAGI("SIP/111-b66a3970", "recordingcheck|20080801-122438|1217582678.30137") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20080801-122438|1217582678.30137: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing NoOp("SIP/111-b66a3970", "No recording needed") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "0?skipoutcid") in new stack
    -- Executing Set("SIP/111-b66a3970", "DIAL_TRUNK_OPTIONS=W") in new stack
    -- Executing Macro("SIP/111-b66a3970", "outbound-callerid|1") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing NoOp("SIP/111-b66a3970", "REALCALLERIDNUM is 111") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing Set("SIP/111-b66a3970", "USEROUTCID=07XXXXX60") in new stack
    -- Executing Set("SIP/111-b66a3970", "EMERGENCYCID=") in new stack
    -- Executing Set("SIP/111-b66a3970", "TRUNKOUTCID=098873488") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing GotoIf("SIP/111-b66a3970", "0?usercid") in new stack
    -- Executing Set("SIP/111-b66a3970", "CALLERID(all)=098873488") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "0?report") in new stack
    -- Executing Set("SIP/111-b66a3970", "CALLERID(all)=07XXXXX60") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "1?report:hidecid") in new stack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing NoOp("SIP/111-b66a3970", "CallerID set to "" <07XXXXX60>") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,16)
    -- Executing DeadAGI("SIP/111-b66a3970", "fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing Set("SIP/111-b66a3970", "OUTNUM=072XXXXX64") in new stack
    -- Executing Set("SIP/111-b66a3970", "custom=ZAP/1") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "0?customtrunk") in new stack
    -- Executing Dial("SIP/111-b66a3970", "ZAP/1/072XXXXX64|300|W") in new stack
    -- Called 1/072XXXXX64
    -- Executing Set("SIP/5060-b66ae3f0", "FROM_DID=72XXXXX64") in new stack
    -- Executing Gosub("SIP/5060-b66ae3f0", "app-blacklist-check|s|1") in new stack
    -- Executing LookupBlacklist("SIP/5060-b66ae3f0", "") in new stack
    -- Executing GotoIf("SIP/5060-b66ae3f0", "0?blacklisted") in new stack
    -- Executing Return("SIP/5060-b66ae3f0", "") in new stack
    -- Executing Goto("SIP/5060-b66ae3f0", "custom-a2billing-did|_X.|1") in new stack
    -- Goto (custom-a2billing-did,_X.,1)
    -- Zap/1-1 answered SIP/111-b66a3970
    -- Hungup 'Zap/1-1'
  == Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/111-b66a3970' in macro 'dialout-trunk'
  == Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/111-b66a3970'
    -- Executing Macro("SIP/111-b66a3970", "hangupcall") in new stack
    -- Executing ResetCDR("SIP/111-b66a3970", "w") in new stack
    -- Executing NoCDR("SIP/111-b66a3970", "") in new stack
    -- Executing GotoIf("SIP/111-b66a3970", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing GotoIf("SIP/111-b66a3970", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing Wait("SIP/111-b66a3970", "5") in new stack
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/111-b66a3970' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/111-b66a3970'



Thank you. :roll:

Added after 3 hours 10 minutes:

I managed to find the first problem, I sent it to context custom-a2billing-did instead of a2billing-did, now I have another issue that I hope would be easier to find, call goes in, a2billing script is triggered but exit and hangup call:

Code:

    -- Executing Set("SIP/5060-b66a8530", "FROM_DID=72XXXXX64") in new stack
    -- Executing Gosub("SIP/5060-b66a8530", "app-blacklist-check|s|1") in new stack
    -- Executing LookupBlacklist("SIP/5060-b66a8530", "") in new stack
    -- Executing GotoIf("SIP/5060-b66a8530", "0?blacklisted") in new stack
    -- Executing Return("SIP/5060-b66a8530", "") in new stack
    -- Executing Goto("SIP/5060-b66a8530", "a2billing-did|_X.|1") in new stack
    -- Goto (a2billing-did,_X.,1)
    -- Executing AGI("SIP/5060-b66a8530", "a2billing.php|1|did") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
  a2billing.php|1|did: A2Billing AGI internal configuration:
  a2billing.php|1|did: Array
  a2billing.php|1|did: (
  a2billing.php|1|did:     [debug] => 1
  a2billing.php|1|did:     [asterisk_version] => 1_2
  a2billing.php|1|did:     [answer_call] => 1
  a2billing.php|1|did:     [play_audio] => 1
  a2billing.php|1|did:     [say_goodbye] =>
  a2billing.php|1|did:     [play_menulanguage] =>
  a2billing.php|1|did:     [force_language] =>
  a2billing.php|1|did:     [intro_prompt] =>
  a2billing.php|1|did:     [min_credit_2call] => 0
  a2billing.php|1|did:     [min_duration_2bill] => 0
  a2billing.php|1|did:     [notenoughcredit_cardnumber] => 1
  a2billing.php|1|did:     [notenoughcredit_assign_newcardnumber_cid] => 1
  a2billing.php|1|did:     [use_dnid] => 1
  a2billing.php|1|did:     [no_auth_dnid] => Array
  a2billing.php|1|did:         (
  a2billing.php|1|did:             [0] => 2400
  a2billing.php|1|did:             [1] => 2300
  a2billing.php|1|did:         )
  a2billing.php|1|did:
  a2billing.php|1|did:     [number_try] => 3
  a2billing.php|1|did:     [force_callplan_id] =>
  a2billing.php|1|did:     [say_balance_after_auth] =>
  a2billing.php|1|did:     [say_balance_after_call] =>
  a2billing.php|1|did:     [say_rateinitial] =>
  a2billing.php|1|did:     [say_timetocall] =>
  a2billing.php|1|did:     [auto_setcallerid] => 1
  a2billing.php|1|did:     [force_callerid] =>
  a2billing.php|1|did:     [cid_sanitize] =>
  a2billing.php|1|did:     [cid_enable] =>
  a2billing.php|1|did:     [cid_askpincode_ifnot_callerid] => 1
  a2billing.php|1|did:     [cid_auto_assign_card_to_cid] => 1
  a2billing.php|1|did:     [cid_auto_create_card] =>
  a2billing.php|1|did:     [cid_auto_create_card_len] => 10
  a2billing.php|1|did:     [cid_auto_create_card_typepaid] => POSTPAY
  a2billing.php|1|did:     [cid_auto_create_card_credit] => 0
  a2billing.php|1|did:     [cid_auto_create_card_credit_limit] => 1000
  a2billing.php|1|did:     [cid_auto_create_card_tariffgroup] => 6
  a2billing.php|1|did:     [callerid_authentication_over_cardnumber] =>
  a2billing.php|1|did:     [sip_iax_friends] =>
  a2billing.php|1|did:     [sip_iax_pstn_direct_call_prefix] => 555
  a2billing.php|1|did:     [sip_iax_pstn_direct_call] =>
  a2billing.php|1|did:     [ivr_voucher] =>
  a2billing.php|1|did:     [ivr_voucher_prefix] => 8
  a2billing.php|1|did:     [jump_voucher_if_min_credit] =>
  a2billing.php|1|did:     [extracharge_did] => Array
  a2billing.php|1|did:         (
  a2billing.php|1|did:             [0] =>
  a2billing.php|1|did:         )
  a2billing.php|1|did:
  a2billing.php|1|did:     [extracharge_fee] => Array
  a2billing.php|1|did:         (
  a2billing.php|1|did:             [0] =>
  a2billing.php|1|did:         )
  a2billing.php|1|did:
  a2billing.php|1|did:     [international_prefixes] => Array
  a2billing.php|1|did:         (
  a2billing.php|1|did:             [0] => 011
  a2billing.php|1|did:             [1] => 00
  a2billing.php|1|did:             [2] => 09
  a2billing.php|1|did:         )
  a2billing.php|1|did:
  a2billing.php|1|did:     [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
  a2billing.php|1|did:     [dialcommand_param_sipiax_friend] => |60|HRgirL(3600000:61000:30000)
  a2billing.php|1|did:     [switchdialcommand] =>
  a2billing.php|1|did:     [failover_recursive_limit] => 2
  a2billing.php|1|did:     [maxtime_tocall_negatif_free_route] => 5400
  a2billing.php|1|did:     [send_reminder] =>
  a2billing.php|1|did:     [record_call] =>
  a2billing.php|1|did:     [monitor_formatfile] => gsm
  a2billing.php|1|did:     [agi_force_currency] =>
  a2billing.php|1|did:     [currency_association] => Array
  a2billing.php|1|did:         (
  a2billing.php|1|did:             [0] => usd:dollars
  a2billing.php|1|did:             [1] => mxn:pesos
  a2billing.php|1|did:             [2] => eur:euros
  a2billing.php|1|did:             [3] => all:credit
  a2billing.php|1|did:         )
  a2billing.php|1|did:
  a2billing.php|1|did:     [file_conf_enter_destination] => prepaid-enter-dest
  a2billing.php|1|did:     [file_conf_enter_menulang] => prepaid-menulang2
  a2billing.php|1|did:     [callback_bill_1stleg_ifcall_notconnected] => 1
  a2billing.php|1|did:     [logger_enable] => 1
  a2billing.php|1|did:     [log_file] => /tmp/a2billing.log
  a2billing.php|1|did:     [currency_association_internal] => Array
  a2billing.php|1|did:         (
  a2billing.php|1|did:             [usd] => dollars
  a2billing.php|1|did:             [mxn] => pesos
  a2billing.php|1|did:             [eur] => euros
  a2billing.php|1|did:             [all] => credit
  a2billing.php|1|did:         )
  a2billing.php|1|did:
  a2billing.php|1|did:     [ivr_voucher_prefixe] => 8
  a2billing.php|1|did: )
  a2billing.php|1|did:
  a2billing.php|1|did: file:a2billing.php - line:76 - IDCONFIG : 1
  a2billing.php|1|did: file:a2billing.php - line:77 - MODE : did
  a2billing.php|1|did: file:a2billing.php - line:89 - AGI Request:
  a2billing.php|1|did: file:a2billing.php - line:90 - Array
  a2billing.php|1|did: (
  a2billing.php|1|did:     [agi_request] => a2billing.php
  a2billing.php|1|did:     [agi_channel] => SIP/5060-b66a8530
  a2billing.php|1|did:     [agi_language] => en
  a2billing.php|1|did:     [agi_type] => SIP
  a2billing.php|1|did:     [agi_uniqueid] => 1217598717.30279
  a2billing.php|1|did:     [agi_callerid] => 072XXXXX60
  a2billing.php|1|did:     [agi_calleridname] => unknown
  a2billing.php|1|did:     [agi_callingpres] => 0
  a2billing.php|1|did:     [agi_callingani2] => 0
  a2billing.php|1|did:     [agi_callington] => 0
  a2billing.php|1|did:     [agi_callingtns] => 0
  a2billing.php|1|did:     [agi_dnid] => 72XXXXX64
  a2billing.php|1|did:     [agi_rdnis] => unknown
  a2billing.php|1|did:     [agi_context] => a2billing-did
  a2billing.php|1|did:     [agi_extension] => _X.
  a2billing.php|1|did:     [agi_priority] => 1
  a2billing.php|1|did:     [agi_enhanced] => 0.0
  a2billing.php|1|did:     [agi_accountcode] =>
  a2billing.php|1|did: )
  a2billing.php|1|did:
  a2billing.php|1|did: file:Class.A2Billing.php - line:617 -  get_agi_request_parameter = 072XXXXX60 ; SIP/5060-b66a8530 ; 1217598717.30279 ;  ; _X.
  a2billing.php|1|did: file:a2billing.php - line:329 - [ANSWER CALL]
  a2billing.php|1|did: file:a2billing.php - line:344 - [DID CALL - [CallerID=072XXXXX60]:[DID=_X.]
  a2billing.php|1|did: file:a2billing.php - line:356 - SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination,  voip_call, username FROM cc_did, cc_did_destination,  cc_card  WHERE id_cc_did=cc_did.id and cc_card.id=id_cc_card and cc_did_destination.activated=1  and cc_did.activated=1 and did='_X.'  AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL OR cc_did.expirationdate = '0000-00-00 00:00:00') ORDER BY priority ASC
  a2billing.php|1|did: file:a2billing.php - line:358 -
  == Spawn extension (a2billing-did, _X., 1) exited non-zero on 'SIP/5060-b66a8530'
    -- SIP/072-0ac84488 answered SIP/111-b66a5910
    -- Attempting native bridge of SIP/111-b66a5910 and SIP/072-0ac84488
  == Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/111-b66a5910' in macro 'dialout-trunk'
  == Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/111-b66a5910'
    -- Executing Macro("SIP/111-b66a5910", "hangupcall") in new stack
    -- Executing ResetCDR("SIP/111-b66a5910", "w") in new stack
    -- Executing NoCDR("SIP/111-b66a5910", "") in new stack
    -- Executing GotoIf("SIP/111-b66a5910", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing GotoIf("SIP/111-b66a5910", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing Wait("SIP/111-b66a5910", "5") in new stack
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/111-b66a5910' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/111-b66a5910'



looks better or am I just dreaming?

my extensions_trixbox.conf :

[a2billing-did]
exten => _X.,1,AGI(a2billing.php|1|did)
exten => _X.,2,Hangup


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 47 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group