Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 12:55 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: callback Hangup issue
PostPosted: Wed Feb 20, 2008 3:19 pm 
Offline

Joined: Wed Feb 20, 2008 2:53 pm
Posts: 10
Hi all,
I am having issue with A2billing callback using 1.2 and Asterisk 1.2.2. Below is the setting for the a2billing.conf

[a2billing-cid-callback]
exten => _X.,1,Set(__GNASWEREDTIME=99999999)
exten => _X.,n,DeadAGI(a2billing.php|1|cid-callback)
exten => _X.,n,Hangup

When users call into the number, I didn't answer the call, I just call the callback scripts. Below is the ext_trunk.conf

exten => extension,1,Goto(a2billing-cid-callback,${EXTEN},1)

The issue I am facing is that after obtaining the users callerid and initialized the callback queue. The users call is not being hang up, in fact the E1 provider need to send out the hang up request to my system then the hang up will being. This take about 25 - 30 seconds from the call start time. In this case that mean I need to put the callback delay timing to be about 35 seconds, else the system will callback the user even before the customer hang up.

It is possible to hang up the call once the callerid is obtain and callback queue is being initialized?

How does the a2billing callback flow work?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 20, 2008 7:33 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
This is a know issue that existed in version earlier than 1.3.

Trust me if I tell you that you don't need A2Billing 1.2. The last stable version is v1.3.2 and it works much better. Consider upgrading.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 21, 2008 6:17 am 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
Yeah - I have had the issue - for me on the 1.2.3 A2B ... asterisk 1.2.X hangs up properly on the CID-callback, but for 1.4.X it just rings and rings. Would be nice to to fix that part. I got one system that will be a while before it gets moved to 1.3


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 9:58 am 
Offline

Joined: Tue Sep 16, 2008 9:50 am
Posts: 17
Location: Manchester, UK
Hi everyone,
I am using the latest Version 1.3.3. Does this problem still exist in the version I am using?

For your information, I am experiencing the same problem as the threadstarter. To confirm that the problem is not with other equipment/setup, I have changed the extension of incoming call to my X-lite and I was able to hang up incoming calls properly.

Unfortunately, when I changed the extension back to A2billing's, incoming calls cannot be hung up properly anymore.

Has anyone got a solution for this?

Thanks and I hope to hear from you guys soon!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 1:35 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
The 'answer_call' directive in a2billing.conf may be your problem:
Quote:
; if we want to manage the answer on the call
; Disabling this for callback trigger numbers makes it ring not hang up.
answer_call = yes
So you want it set to 'YES' to hang up the trigger leg. I'm surprised the Hangup() in Asterisk's dialplan is not doing this though. Perhaps you have SIP interworking problems with your DID provider?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 2:56 pm 
Offline

Joined: Tue Sep 16, 2008 9:50 am
Posts: 17
Location: Manchester, UK
stavros wrote:
The 'answer_call' directive in a2billing.conf may be your problem:
Quote:
; if we want to manage the answer on the call
; Disabling this for callback trigger numbers makes it ring not hang up.
answer_call = yes
So you want it set to 'YES' to hang up the trigger leg. I'm surprised the Hangup() in Asterisk's dialplan is not doing this though. Perhaps you have SIP interworking problems with your DID provider?


Thanks for your reply!

Unfortunately, I already have that option set to YES.

Moreover, as I mentioned earlier, I have changed the extension of incoming call to my X-lite and I was able to hang up incoming calls properly with X-lite. Thus, I think the possibility of DID provider's fault has been ruled out.

Is there anything else I could have probably missed?

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 3:28 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
For the callback extension, make sure that you have

Code:
exten => _X.,1,Goto(a2billing-cid-callback,${EXTEN},1)
exten => _X.,n,Hangup()


instead of

Code:
exten => some_extension,1,Goto(a2billing-cid-callback,${EXTEN},1)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2008 7:34 am 
Offline

Joined: Tue Sep 16, 2008 9:50 am
Posts: 17
Location: Manchester, UK
Hi asiby,
Thank you very much for your reply.

I have just tried your solution.

1. Before I modified the callback extension (when hang up was still an issue), if I manually hang up the call after 5 seconds, I received callback

2. After I modified the callback extension (when hang up issue has been solved), I received a busy tone and the call was hung up automatically. Unfortunately, I never received any callback after that.

This really sounds odd and I really appreciate if anyone can guide me what is wrong.

Below is my log:
Code:
[Sep 17 10:51:29] DEBUG[30066] pbx.c: Launching 'AGI'
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]     -- Executing [1000@a2billing-callback:1] AGI("SIP/termination-provider-084fd290", "a2billing.php|1|callback") in new stack
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]     -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback: A2Billing AGI internal configuration:
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback: Array
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback: (
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [debug] => 3
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [asterisk_version] => 1_4
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [answer_call] => 1
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [play_audio] => 1
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [say_goodbye] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [play_menulanguage] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [force_language] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [intro_prompt] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [min_credit_2call] => 0
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [min_duration_2bill] => 0
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [notenoughcredit_cardnumber] => 1
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [notenoughcredit_assign_newcardnumber_cid] => 1
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [use_dnid] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [no_auth_dnid] => Array
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         (
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [0] => 2400
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [1] => 2300
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         )
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [number_try] => 3
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [force_callplan_id] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [say_balance_after_auth] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [say_balance_after_call] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [say_rateinitial] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [say_timetocall] => 1
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [auto_setcallerid] => 1
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [force_callerid] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [cid_sanitize] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [cid_enable] => 1
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [cid_askpincode_ifnot_callerid] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [cid_auto_assign_card_to_cid] => 1
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [cid_auto_create_card] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [cid_auto_create_card_len] => 10
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [cid_auto_create_card_typepaid] => POSTPAY
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [cid_auto_create_card_credit] => 0
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [cid_auto_create_card_credit_limit] => 1000
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [cid_auto_create_card_tariffgroup] => 6
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [callerid_authentication_over_cardnumber] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [sip_iax_friends] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [sip_iax_pstn_direct_call_prefix] => 555
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [sip_iax_pstn_direct_call] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [ivr_voucher] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [ivr_voucher_prefix] => 8
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [jump_voucher_if_min_credit] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [extracharge_did] => Array
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         (
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [0] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         )
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [extracharge_fee] => Array
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         (
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [0] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         )
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [extracharge_buyfee] => Array
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         (
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [0] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         )
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [international_prefixes] => Array
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         (
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [0] => 011
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [1] => 00
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [2] => 09
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         )
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [dialcommand_param_sipiax_friend] => |60|HRgirL(3600000:61000:30000)
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [switchdialcommand] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [failover_recursive_limit] => 2
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [maxtime_tocall_negatif_free_route] => 5400
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [send_reminder] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [record_call] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [monitor_formatfile] => gsm
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [agi_force_currency] =>
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [currency_association] => Array
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         (
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [0] => usd:dollars
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [1] => mxn:pesos
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [2] => eur:euros
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [3] => all:credit
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         )
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [file_conf_enter_destination] => prepaid-enter-dest
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [file_conf_enter_menulang] => prepaid-menulang2
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [callback_bill_1stleg_ifcall_notconnected] => 1
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [logger_enable] => 1
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [log_file] => /tmp/a2billing.log
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [currency_association_internal] => Array
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         (
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [usd] => dollars
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [mxn] => pesos
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [eur] => euros
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:             [all] => credit
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:         )
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [ivr_voucher_prefixe] => 8
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback: )
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback: file:a2billing.php - line:78 - IDCONFIG : 1
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback: file:a2billing.php - line:79 - MODE : callback
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback: file:a2billing.php - line:91 - AGI Request:
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback: file:a2billing.php - line:92 - Array
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback: (
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [agi_request] => a2billing.php
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [agi_channel] => SIP/termination-provider-084fd290
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [agi_language] => en
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [agi_type] => SIP
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [agi_uniqueid] => 1221619879.25
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [agi_callerid] => 6611111111
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [agi_calleridname] => unknown
[Sep 17 10:51:29] VERBOSE[30066] logger.c: [Sep 17 10:51:29]   a2billing.php|1|callback:     [agi_callingpres] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:     [agi_callingani2] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:     [agi_callington] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:     [agi_callingtns] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:     [agi_dnid] => unknown
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:     [agi_rdnis] => unknown
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:     [agi_context] => a2billing-callback
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:     [agi_extension] => 1000
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:     [agi_priority] => 1
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:     [agi_enhanced] => 0.0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:     [agi_accountcode] => 1910694689
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: )
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:Class.A2Billing.php - line:623 -  get_agi_request_parameter = 6611111111 ; SIP/termination-provider-084fd290 ; 1221619879.25 ; 1910694689 ; 1000
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:a2billing.php - line:701 - [CALLBACK]:[MODE : CALLBACK]
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:a2billing.php - line:705 - [CALLBACK]:[ANSWER CALL]
[Sep 17 10:51:30] DEBUG[30066] channel.c: Set channel SIP/termination-provider-084fd290 to write format gsm
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:a2billing.php - line:749 - [CALLBACK]:[GET VARIABLE : CALLED=6611111111 | CALLING= | MODE=CID | TARIFF= | CBID=56467-dochw7f | LEG=1910694689]
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:Class.A2Billing.php - line:1441 - [CID_ENABLE - CID_CONTROL - CID:6611111111]
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:Class.A2Billing.php - line:1458 - QUERY = SELECT cc_callerid.cid, cc_callerid.id_cc_card, cc_callerid.activated, cc_card.credit,  cc_card.tariff, cc_card.activated, cc_card.inuse, cc_card.simultaccess,   cc_card.typepaid, cc_card.creditlimit, cc_card.language, cc_card.username, removeinterprefix, cc_card.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_callerid  LEFT JOIN cc_card ON cc_callerid.id_cc_card=cc_card.id  LEFT JOIN cc_tariffgroup ON cc_card.tariff=cc_tariffgroup.id  WHERE cc_callerid.cid='6611111111'
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:  RESULT : Array
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: (
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:     [0] => Array
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:         (
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [0] => 6611111111
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [cid] => 6611111111
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [1] => 6
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [id_cc_card] => 6
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [2] => t
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [activated] => t
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [3] => -0.42350
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [credit] => -0.42350
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [4] => 1
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [tariff] => 1
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [5] => t
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [6] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [inuse] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [7] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [simultaccess] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [8] => 1
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [typepaid] => 1
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [9] => 292
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [creditlimit] => 292
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [10] => en
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [language] => en
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [11] => 1910694689
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [username] => 1910694689
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [12] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [removeinterprefix] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [13] => 60121111111
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [redial] => 60121111111
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [14] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [enableexpire] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [15] => 1537067202
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [UNIX_TIMESTAMP(expirationdate)] => 1537067202
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [16] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [expiredays] => 0
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [17] => 13
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [nbused] => 13
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [18] => 1221534800
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [UNIX_TIMESTAMP(firstusedate)] => 1221534800
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [19] => 1221534542
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [UNIX_TIMESTAMP(cc_card.creationdate)] => 1221534542
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [20] => THB
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [currency] => THB
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [21] => Gardner
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [lastname] => Gardner
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [22] => Mr.
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [firstname] => Mr.
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [23] => [email protected]
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [email] => [email protected]
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [24] => 9566939629
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [uipass] => 9566939629
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [25] => -1
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [id_campaign] => -1
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [26] => 6
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [id] => 6
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [27] => 185288890850229
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:             [useralias] => 185288890850229
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:         )
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: )
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback:
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:Class.A2Billing.php - line:1716 - [SET CHANNEL(language) en]
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:Class.A2Billing.php - line:656 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='1910694689']
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:Class.A2Billing.php - line:1402 - [AUTO SetCallerID]
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:Class.A2Billing.php - line:1408 - [REQUESTED SetCallerID : 6611111111]
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:Class.A2Billing.php - line:1419 - [EXEC SetCallerID : 6611111111]
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:a2billing.php - line:777 - [CALLBACK]:[CHANNEL STATUS : 6 = Line is up][status_channel=6]:[ORIG_CREDIT : 291.5765 - CUR_CREDIT - : 145.78825 - CREDIT MIN_CREDIT_2CALL : 0]
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]   a2billing.php|1|callback: file:Class.A2Billing.php - line:678 - 0 &&  && 4&& 0
[Sep 17 10:51:30] DEBUG[30066] rtp.c: Ooh, format changed from unknown to ulaw
[Sep 17 10:51:30] DEBUG[30066] rtp.c: Created smoother: format: 4 ms: 20 len: 160
[Sep 17 10:51:30] DEBUG[30066] channel.c: Scheduling timer at 160 sample intervals
[Sep 17 10:51:30] VERBOSE[30066] logger.c: [Sep 17 10:51:30]     -- <SIP/termination-provider-084fd290> Playing 'prepaid-enter-dest' (language 'en')
[Sep 17 10:51:31] NOTICE[30066] rtp.c: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 209.47.231.67
[Sep 17 10:51:31] DEBUG[30066] channel.c: Scheduling timer at 0 sample intervals
[Sep 17 10:51:31] DEBUG[30066] channel.c: Scheduling timer at 0 sample intervals
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.A2Billing.php - line:685 - RES DTMF :
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.A2Billing.php - line:703 - DESTINATION ::>
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.A2Billing.php - line:705 - RULES APPLY ON DESTINATION ::>
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.A2Billing.php - line:656 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='1910694689']
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:a2billing.php - line:983 - [CALLBACK 1ST LEG]:[INFO FOR THE 1ST LEG - callback_username=1910694689
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.A2Billing.php - line:1642 - 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='1910694689'
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.A2Billing.php - line:1716 - [SET CHANNEL(language) en]
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.A2Billing.php - line:656 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='1910694689']
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:a2billing.php - line:989 - [CALLBACK 1ST LEG]:[MAKE BILLING FOR THE 1ST LEG - TARIFF:1;CALLED=6611111111]
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:a2billing.php - line:1004 - [CALLBACK]:[RateEngine -> answeredtime=8]
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.RateEngine.php - line:820 - ft2c_package_offer : 0 ;  ; 0
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.RateEngine.php - line:899 - [CC_asterisk_stop  QUERY = INSERT INTO cc_call (uniqueid,sessionid,username,nasipaddress,starttime,sessiontime, calledstation,  terminatecause, stoptime, calledrate, sessionbill, calledcountry, calledsub, destination, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax, buyrate, buycost, id_card_package_offer) VALUES ('1221619879.25', 'SIP/termination-provider-084fd290',  '1910694689', '', CURRENT_TIMESTAMP - INTERVAL 8 SECOND , '8', '6611111111', 'ANSWERED', now(), '0.0292', '+0.0292',  '', '', 'thailand-mobile', '1', '1', '13700', '', '6611111111', '4', '0', '0', '0')]
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.RateEngine.php - line:902 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.RateEngine.php - line:920 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-0.0292 ,  lastuse=now(), nbused=nbused+1 WHERE username='1910694689']
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.RateEngine.php - line:925 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 8 WHERE id_trunk=''
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   a2billing.php|1|callback: file:Class.RateEngine.php - line:929 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 8 WHERE id='1'
[Sep 17 10:51:37] DEBUG[30066] channel.c: Soft-Hanging up channel 'SIP/termination-provider-084fd290'
[Sep 17 10:51:37] DEBUG[30066] res_agi.c: SIP/termination-provider-084fd290 hungup
[Sep 17 10:51:37] DEBUG[30066] pbx.c: Spawn extension (a2billing-callback,1000,1) exited non-zero on 'SIP/termination-provider-084fd290'
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37]   == Spawn extension (a2billing-callback, 1000, 1) exited non-zero on 'SIP/termination-provider-084fd290'
[Sep 17 10:51:37] DEBUG[30066] channel.c: Soft-Hanging up channel 'SIP/termination-provider-084fd290'
[Sep 17 10:51:37] DEBUG[30066] channel.c: Hanging up channel 'SIP/termination-provider-084fd290'
[Sep 17 10:51:37] DEBUG[30066] chan_sip.c: Hangup call SIP/termination-provider-084fd290, SIP callid [email protected])
[Sep 17 10:51:37] DEBUG[30066] devicestate.c: Notification of state change to be queued on device/channel SIP/termination-provider-084fd290
[Sep 17 10:51:37] DEBUG[30066] devicestate.c: Notification of state change to be queued on device/channel SIP/termination-provider
[Sep 17 10:51:37] DEBUG[30066] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
[Sep 17 10:51:37] DEBUG[30066] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield) VALUES ('2008-09-17 10:51:19','6611111111','6611111111','1000','a2billing-callback', 'SIP/termination-provider-084fd290','','AGI','a2billing.php|1|callback',18,8,'ANSWERED',3,'1910694689','1221619879.25','')



Everything above is original except:
Caller's number has been replaced by 6611111111 (Thailand mobile)
Recipient's number has been replaced by 60121111111 (Malaysia mobile)
AZ Termination Provider's name has been replaced by termination-provider
Server IP has been replaced by 202.200.200.200
Caller's email has been replaced by [email protected]

Cheers.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2008 3:19 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
mike wrote:
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37] a2billing.php|1|callback: file:Class.A2Billing.php - line:685 - RES DTMF :
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37] a2billing.php|1|callback: file:Class.A2Billing.php - line:703 - DESTINATION ::>
It looks like A2B called you back, received Answer from your carrier, prompted for a destination but didn't receive any DTMF in response. If you didn't receive the callback perhaps it went to your voicemail, or maybe you carrier claimed the call was answered when it actually failed.
Quote:
Everything above is original except:
It would be wise to obscure your customer's username and password too.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2008 3:37 pm 
Offline

Joined: Tue Sep 16, 2008 9:50 am
Posts: 17
Location: Manchester, UK
Hi stavros,
Thanks for your prompt reply.

Unfortunately, if it is DTMF's issue, how come callback was successful before I modified the extension? I did not change the incoming line.

I have also tested on another incoming line from different DID provider to ensure that it is not the line's issue. However, callback was working eventhough these 2 lines cropped up:

Quote:
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37] a2billing.php|1|callback: file:Class.A2Billing.php - line:685 - RES DTMF :
[Sep 17 10:51:37] VERBOSE[30066] logger.c: [Sep 17 10:51:37] a2billing.php|1|callback: file:Class.A2Billing.php - line:703 - DESTINATION ::>


From what you have told me,
Quote:
If you didn't receive the callback perhaps it went to your voicemail, or maybe you carrier claimed the call was answered when it actually failed.


By any chance I can configure a2billing to hang up his incoming call faster such that callback can be established after the phone is hung up instead of the opposite? Does hang up depends on the PSTN provider or the DID provider?

Cheers.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2008 3:51 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
The callback process starts when you trigger it in a first place. That can be achieved by using either the cid-callback mode or the all-callback mode. Unless your log is not complete, your log shows that you didn't used either of them.

From start to finish, all we can see is ... a2billing.php|1|callback ...

You will never be able to achieve a successful callback this way.

Here is what you need to do:

- Send the inbound call to a context that launches the AGI in the following manner:

Code:
exten => _X.,1,DeadAGI(a2billing.php|1|cid-callback)

... or ...

exten => _X.,1,DeadAGI(a2billing.php|1|all-callback)


and make sure that the returning context for the 2nd phase of the callback exists. The default looks like:

Code:
[a2billing-callback]
exten => _X.,1,DeadAGI(a2billing.php|1|callback)


Remember one important thing: you must send a call directly to this context. Asterisk will do it automatically as soon as you answer the call originated by the callback. Besides, the callback mode expects so many variables to have been set that launching it directly without the needed variables could lead to unwanted behaviors.

Cheers

Added after 3 minutes:

P.S.: I know that in your 1st message the extension looks ok. But you have mentioned that you have changed the extension and that the callback is failing. So you have to changing it back to ensure that you are calling either cid-callback or all-callback


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2008 4:04 pm 
Offline

Joined: Tue Sep 16, 2008 9:50 am
Posts: 17
Location: Manchester, UK
Hi asiby,
Thanks for your prompt reply again!

For your information, I have these
Code:
; CLI CALL BACK
exten => 012345,1,Goto(a2billing-cid-callback,${EXTEN},1)
exten => _X.,n,Hangup()


Code:
[a2billing-cid-callback]
exten => _X.,1,DeadAGI(a2billing.php|1|cid-callback|) ;last parameter is the callback area code
exten => _X.,n,Hangup()


The extension 012345 is where all inbound DID will be redirected to.

As you can see, the AGI will be launched in the manner suggested by you. However, I am also aware of the "a2billing.php|1|callback" from start to finish, which I have no idea how it came out eventhough the settings seems to be correct.

Is there anything that I could have possibly missed?

Thanks again and I appreciate all your replies!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2008 4:11 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
I think Asiby has hit the nail on the head there. But I wrote this, so I shall post it in case it's of any use.

mike wrote:
Unfortunately, if it is DTMF's issue, how come callback was successful before I modified the extension? I did not change the incoming line.
As I understand it (I'm not a customer of theirs) Carrierxhange are a wholesale minutes exchange. There's no guarantee that two consecutive calls will be delivered to the same termination provider; DTMF may work via one, but fail via another. Or maybe you get to select which of the termination providers you use for each destination on Carrierxhange?

Quote:
I have also tested on another incoming line from different DID provider to ensure that it is not the line's issue. However, callback was working
So what does Show Callbacks (in the admin UI) say about the callback you never received? Was it even queued? Perhaps it resulted in 'ERROR' 'Origination failure' which would indicate your carrier failed the call. Or maybe 'SUCCESS' which might indicate the voicemail or false answer I suggested previously.
Quote:
eventhough these 2 lines cropped up:
And did you dial a destination number after receiving the callback, and did that leg complete successfully?
Quote:
By any chance I can configure a2billing to hang up his incoming call faster
On my systems the hangup occurs within 1 second of the trigger number ringing. If you are not seeing similar results you'll need to ascertain where the delay is being introduced, probably via the Asterisk console with a high verbosity level whilst noting exactly what events happen on the telephone you're testing from and at what point in Asterisk's output.
Quote:
such that callback can be established after the phone is hung up instead of the opposite?
To delay the callback see the configuration option 'sec_wait_before_callback', and also take the time to familiarise yourself with the plethora of other useful directives in a2billing.conf.
Quote:
Does hang up depends on the PSTN provider or the DID provider?
I guess that depends on whether you're referring to an inbound DID leg, or an outbound termination leg. To state this another way, it depends on the provider involved on the leg you're trying to clear down. Again, use the Asterisk console to ensure that when you see Asterisk request that the channel be cleared down, your provider actually does so in a timely fashion.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2008 4:23 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
With some providers, the callerid that is displayed when a call comes in is different than the number that should be dialed to reach the same person. For instance, in North America, the caller id will often be displayed as a ten digit number (e.g.: 613-234-5678). But the correct way of calling the same customer would be 1-613-235-5678. I think that in some European countries, there is a 0 that has to be used sometimes and not in other circumstances (not too sure).

You can check that out and see if it helps.

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2008 4:29 pm 
Offline

Joined: Tue Sep 16, 2008 9:50 am
Posts: 17
Location: Manchester, UK
Dear stavros,
Thanks for your swift response.

Just before I confuse myself and everyone else, I am using this procedure:

SIP Provider ---- (forwarding using ext@hostname, not using SIP logon) ---> Trixbox --> forward ext (exten => 012345,1,Goto(a2billing-cid-callback,${EXTEN},1)
) --> end call.

Is everything fine for the flow above?




Dear asiby,
Once again, thanks for your help.

The number dialed by callback is confirmed to be correct as it is exactly the Caller ID recorded in my DID provider's CDR. Thus, I don't think there is any special prefix required.

Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
VoIP Billing solution


All times are UTC


Who is online

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