Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 11:01 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Confirm the start connection time
PostPosted: Wed Jun 11, 2008 10:44 am 
Offline

Joined: Wed Jun 11, 2008 10:19 am
Posts: 92
Location: Italy
Everything is working fine so far.

I was asked to push * to continue talking within 5 seconds. How can I able that and set it to 5 seconds?

This is necessary because too many calls to mobile north africa start the time connection while the end user is not talking :evil:


Top
 Profile  
 
 Post subject: Re: Confirm the start connection time
PostPosted: Wed Jun 11, 2008 1:30 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
smart187 wrote:
I was asked to push * to continue talking within 5 seconds. How can I able that and set it to 5 seconds?
That's not an easy thing to accomplish with Asterisk.
Quote:
This is necessary because too many calls to mobile north africa start the time connection while the end user is not talking
False answer is very common with cheaper carriers; the correct response is to stop lining the pockets of imbeciles, and choose a technically competent carrier.
If this really isn't a possibility, a lot of folks here work around similar issues with the use of the 'min_duration_2bill' directive in a2billing.conf, with a value of around 30 seconds.


Last edited by stavros on Wed Jun 11, 2008 3:36 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Confirm the start connection time
PostPosted: Wed Jun 11, 2008 2:58 pm 
Offline

Joined: Wed Jun 11, 2008 10:19 am
Posts: 92
Location: Italy
stavros wrote:
smart187 wrote:
I was asked to push * to continue talking within 5 seconds. How can I able that and set it to 5 seconds?
That's not an easy thing to accomplish with Asterisk.
Quote:
This is necessary because too many calls to mobile north africa start the time connection while the end user is not talking
False answer is very common with cheaper carriers; the correct response is to stop lining the pockets of imbeciles, and choose a techinically competent carrier.
If this really isn't a possibility, a lot of folks here work around similar issues with the use of the 'min_duration_2bill' directive in a2billing.conf, with a value of around 30 seconds.

Quote:
I use premium route of voicetrading.

Every days 15% when the end users dial number to Morocco mobile, Senegal mobile, Cuba are false but charged in A2Billing and in Voicetrading (Betamax Gmbh)

The end user when dial number frequently start connection time but he only hear the simulate ring from other voip server and the call can't to be stopped from my A2Billing

My callshops have a billing software local that charge the call to the caller when he push ( * ) for talking.

With this solution we lose less money.


Top
 Profile  
 
 Post subject: Re: Confirm the start connection time
PostPosted: Wed Jun 11, 2008 3:34 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
smart187 wrote:
Every days 15% when the end users dial number to Morocco mobile, Senegal mobile, Cuba are false but charged in A2Billing and in Voicetrading (Betamax Gmbh)
The problem with false answer will persist as long as folks are willing to be defrauded.
Quote:
My callshops have a billing software local that charge the call to the caller when he push ( * ) for talking. With this solution we lose less money.
If your users are very honest I'd agree you'd lose less money, but here in the real world I would say your exposure is much greater given this 'solution'.

In any case, I can't see a way to implement what you need without requiring changes to the code of both Asterisk and A2Billing. Perhaps if you were to post a bounty on this feature someone might take a look at it one day but, unless I'm missing some clever shortcut, it's really quite a difficult thing to do because of the way Asterisk works.


Top
 Profile  
 
 Post subject: Re: Confirm the start connection time
PostPosted: Wed Jun 11, 2008 4:07 pm 
Offline

Joined: Wed Jun 11, 2008 10:19 am
Posts: 92
Location: Italy
stavros wrote:
smart187 wrote:
Every days 15% when the end users dial number to Morocco mobile, Senegal mobile, Cuba are false but charged in A2Billing and in Voicetrading (Betamax Gmbh)
The problem with false answer will persist as long as folks are willing to be defrauded.
Quote:
My callshops have a billing software local that charge the call to the caller when he push ( * ) for talking. With this solution we lose less money.
If your users are very honest I'd agree you'd lose less money, but here in the real world I would say your exposure is much greater given this 'solution'.

In any case, I can't see a way to implement what you need without requiring changes to the code of both Asterisk and A2Billing. Perhaps if you were to post a bounty on this feature someone might take a look at it one day but, unless I'm missing some clever shortcut, it's really quite a difficult thing to do because of the way Asterisk works.
Quote:
This is an example of call false to CUBA

Quote:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: A2Billing AGI internal configuration:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: Array
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: (
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [debug] => 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [asterisk_version] => 1_2
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [answer_call] => 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [play_audio] => 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [say_goodbye] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [play_menulanguage] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [force_language] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [intro_prompt] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [min_credit_2call] => 0
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [min_duration_2bill] => 0
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [notenoughcredit_cardnumber] => 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [notenoughcredit_assign_newcardnumber_cid] => 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [use_dnid] => 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [no_auth_dnid] => Array
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: (
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [0] => 2400
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [1] => 2300
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: )
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [number_try] => 3
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [force_callplan_id] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [say_balance_after_auth] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [say_balance_after_call] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [say_rateinitial] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [say_timetocall] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [auto_setcallerid] => 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [force_callerid] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [cid_sanitize] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [cid_enable] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [cid_askpincode_ifnot_callerid] => 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [cid_auto_assign_card_to_cid] => 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [cid_auto_create_card] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [cid_auto_create_card_len] => 10
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [cid_auto_create_card_typepaid] => POSTPAY
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [cid_auto_create_card_credit] => 0
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [cid_auto_create_card_credit_limit] => 1000
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [cid_auto_create_card_tariffgroup] => 6
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [callerid_authentication_over_cardnumber] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [sip_iax_friends] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [sip_iax_pstn_direct_call_prefix] => 555
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [sip_iax_pstn_direct_call] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [ivr_voucher] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [ivr_voucher_prefix] => 8
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [jump_voucher_if_min_credit] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [extracharge_did] => Array
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: (
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [0] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: )
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [extracharge_fee] => Array
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: (
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [0] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: )
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [international_prefixes] => Array
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: (
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [0] => 011
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [1] => 00
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [2] => 09
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: )
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [dialcommand_param] => |60|HrgL(%timeout%:61000:30000)
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [dialcommand_param_sipiax_friend] => |60|HrgiL(1200000:61000:30000)
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [switchdialcommand] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [failover_recursive_limit] => 2
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [maxtime_tocall_negatif_free_route] => 5400
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [send_reminder] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [record_call] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [monitor_formatfile] => gsm
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_force_currency] =>
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [currency_association] => Array
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: (
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [0] => usd:dollars
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [1] => mxn:pesos
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [2] => eur:euros
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [3] => all:credit
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: )
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [file_conf_enter_destination] => prepaid-enter-dest
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [file_conf_enter_menulang] => prepaid-menulang2
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [callback_bill_1stleg_ifcall_notconnected] => 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [logger_enable] => 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [log_file] => /tmp/a2billing.log
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [currency_association_internal] => Array
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: (
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [usd] => dollars
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [mxn] => pesos
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [eur] => euros
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [all] => credit
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: )
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [ivr_voucher_prefixe] => 8
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: )
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:a2billing.php - line:76 - IDCONFIG : 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:a2billing.php - line:77 - MODE : standard
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:a2billing.php - line:89 - AGI Request:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:a2billing.php - line:90 - Array
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: (
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_request] => a2billing.php
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_channel] => SIP/0197182120-08b00af8
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_language] => en
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_type] => SIP
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_uniqueid] => 1213199711.10754
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_callerid] => 0039xxxxxxxxxx
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_calleridname] => 0197182120
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_callingpres] => 0
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_callingani2] => 0
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_callington] => 0
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_callingtns] => 0
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_dnid] => 005372064591
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_rdnis] => unknown
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_context] => a2billing
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_extension] => 005372064591
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_priority] => 3
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_enhanced] => 0.0
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: [agi_accountcode] => 0197182120
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: )
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:616 - get_agi_request_parameter = 0039xxxxxxxxxx ; SIP/0197182120-08b00af8 ; 1213199711.10754 ; 0197182120 ; 005372064591
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:a2billing.php - line:139 - [ANSWER CALL]
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: 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='0197182120'
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1714 - [SET LANGUAGE() en]
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='0197182120']
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1399 - [AUTO SetCallerID]
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1405 - [REQUESTED SetCallerID : 0039xxxxxxxxxx]
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1416 - [EXEC SetCallerID : 0039xxxxxxxxxx]
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:a2billing.php - line:171 - [CREDIT : 24.82580][CREDIT MIN_CREDIT_2CALL : 0]
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:671 - 1 && && 12&& 0
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:696 - DESTINATION ::> 005372064591
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> 5372064591
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:736 - OK - RESFINDRATE::> 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:758 - RES_ALL_CALCULTIMEOUT ::> 1
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:775 - TIMEOUT::> 1922 : minutes=32 - seconds=2
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:1026 - app_callingcard: Dialing 'SIP/Diva1/005372064591|60|HrgL(1922000:61000:30000)' with timeout of '1922'.
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1:
Jun 11 17:55:12 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:1051 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
Jun 11 17:55:12 DEBUG[14080] chan_sip.c: Setting NAT on RTP to 0
Jun 11 17:55:12 DEBUG[14080] chan_sip.c: Outgoing Call for 005372064591
Jun 11 17:55:12 DEBUG[14080] channel.c: Driver for channel 'SIP/0197182120-08b00af8' does not support indication 3, emulating it
Jun 11 17:55:12 DEBUG[14080] channel.c: Scheduling timer at 160 sample intervals
Jun 11 17:55:12 DEBUG[14080] channel.c: Generator got voice, switching to phase locked mode
Jun 11 17:55:12 DEBUG[14080] channel.c: Scheduling timer at 0 sample intervals
Jun 11 17:55:12 DEBUG[16088] chan_sip.c: Acked pending invite 102
Jun 11 17:55:12 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 102: Match Found
Jun 11 17:55:12 DEBUG[16088] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on '[email protected]' Request 103: Found
Jun 11 17:55:13 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 102: Match Found
Jun 11 17:55:13 DEBUG[14085] manager.c: Manager received command 'login'
Jun 11 17:55:13 DEBUG[14085] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Jun 11 17:55:13 DEBUG[14085] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Jun 11 17:55:13 DEBUG[14085] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Jun 11 17:55:13 DEBUG[14085] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Jun 11 17:55:13 DEBUG[14085] manager.c: Manager received command 'Command'
Jun 11 17:55:13 DEBUG[14085] manager.c: Manager received command 'Command'
Jun 11 17:55:13 DEBUG[14085] manager.c: Manager received command 'Command'
Jun 11 17:55:13 DEBUG[14085] manager.c: Manager received command 'Command'
Jun 11 17:55:18 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 102: Match Found
Jun 11 17:55:18 DEBUG[14089] manager.c: Manager received command 'login'
Jun 11 17:55:18 DEBUG[14089] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Jun 11 17:55:18 DEBUG[14089] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Jun 11 17:55:18 DEBUG[14089] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Jun 11 17:55:18 DEBUG[14089] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Jun 11 17:55:18 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 102: Match Found
Jun 11 17:55:18 DEBUG[14089] manager.c: Manager received command 'Command'
Jun 11 17:55:18 DEBUG[14089] manager.c: Manager received command 'Command'
Jun 11 17:55:18 DEBUG[14089] manager.c: Manager received command 'Command'
Jun 11 17:55:18 DEBUG[14089] manager.c: Manager received command 'Command'
Jun 11 17:55:20 DEBUG[16088] chan_sip.c: Acked pending invite 103
Jun 11 17:55:20 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 103: Match Found
Jun 11 17:55:20 DEBUG[16088] chan_sip.c: build_route: Contact hop: sip:005372064591@194.120.0.198:5060
Jun 11 17:55:20 DEBUG[16042] channel.c: Avoiding initial deadlock for 'SIP/Diva1-089e54f8'
Jun 11 17:55:20 DEBUG[14080] channel.c: Scheduling timer at 0 sample intervals
Jun 11 17:55:22 DEBUG[15372] manager.c: Manager received command 'login'
Jun 11 17:55:22 DEBUG[15372] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Jun 11 17:55:22 DEBUG[15372] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Jun 11 17:55:22 DEBUG[15372] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Jun 11 17:55:22 DEBUG[15372] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Jun 11 17:55:22 DEBUG[15372] manager.c: Manager received command 'Command'
Jun 11 17:55:22 DEBUG[15372] manager.c: Manager received command 'Command'
Jun 11 17:55:22 DEBUG[15372] manager.c: Manager received command 'Command'
Jun 11 17:55:22 DEBUG[15372] manager.c: Manager received command 'Command'
Jun 11 17:55:23 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 102: Match Found
Jun 11 17:55:25 DEBUG[15375] manager.c: Manager received command 'login'
Jun 11 17:55:25 DEBUG[15375] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Jun 11 17:55:25 DEBUG[15375] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Jun 11 17:55:25 DEBUG[15375] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Jun 11 17:55:25 DEBUG[15375] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Jun 11 17:55:25 DEBUG[15375] manager.c: Manager received command 'Command'
Jun 11 17:55:25 DEBUG[15375] manager.c: Manager received command 'Command'
Jun 11 17:55:25 DEBUG[15375] manager.c: Manager received command 'Command'
Jun 11 17:55:25 DEBUG[15375] manager.c: Manager received command 'Command'
Jun 11 17:55:28 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 102: Match Found
Jun 11 17:55:29 DEBUG[16088] chan_sip.c: Scheduled a registration timeout for 194.120.0.198 id #475074
Jun 11 17:55:29 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 187: Match Found
Jun 11 17:55:29 DEBUG[16088] chan_sip.c: Registration successful
Jun 11 17:55:29 DEBUG[16088] chan_sip.c: Cancelling timeout 475074
Jun 11 17:55:30 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 102: Match Found
Jun 11 17:55:30 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 102: Match Found
Jun 11 17:55:34 DEBUG[15380] manager.c: Manager received command 'login'
Jun 11 17:55:34 DEBUG[15380] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Jun 11 17:55:34 DEBUG[15380] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Jun 11 17:55:34 DEBUG[15380] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Jun 11 17:55:34 DEBUG[15380] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Jun 11 17:55:34 DEBUG[16088] chan_sip.c: Scheduled a registration timeout for voip.eutelia.it id #475087
Jun 11 17:55:34 DEBUG[16088] chan_sip.c: Scheduled a registration timeout for voip.eutelia.it id #475089
Jun 11 17:55:34 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 214: Match Found
Jun 11 17:55:34 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 214: Match Found
Jun 11 17:55:34 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 215: Match Found
Jun 11 17:55:34 DEBUG[16088] chan_sip.c: Registration successful
Jun 11 17:55:34 DEBUG[16088] chan_sip.c: Cancelling timeout 475087
Jun 11 17:55:34 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 215: Match Found
Jun 11 17:55:34 DEBUG[16088] chan_sip.c: Registration successful
Jun 11 17:55:34 DEBUG[16088] chan_sip.c: Cancelling timeout 475089
Jun 11 17:55:37 DEBUG[16088] chan_sip.c: Scheduled a registration timeout for sip.voiparound.com id #475097
Jun 11 17:55:37 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 187: Match Found
Jun 11 17:55:37 DEBUG[16088] chan_sip.c: Registration successful
Jun 11 17:55:37 DEBUG[16088] chan_sip.c: Cancelling timeout 475097
Jun 11 17:55:40 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 102: Match Found
Jun 11 17:55:41 DEBUG[14080] channel.c: Didn't get a frame from channel: SIP/0197182120-08b00af8
Jun 11 17:55:41 DEBUG[14080] channel.c: Bridge stops bridging channels SIP/0197182120-08b00af8 and SIP/Diva1-089e54f8
Jun 11 17:55:41 DEBUG[14080] chan_sip.c: update_call_counter(005372064591) - decrement call limit counter
Jun 11 17:55:41 DEBUG[14080] app_dial.c: Exiting with DIALSTATUS=ANSWER.
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:1153 - -> dialstatus : ANSWER, answered time is 21
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1:
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:1157 - [USEDRATECARD=0]
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:835 - ft2c_package_offer : 0 ; ; 0
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:914 - [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 ('1213199711.10754', 'SIP/0197182120-08b00af8', '0197182120', '', CURRENT_TIMESTAMP - INTERVAL 21 SECOND , '21', '5372064591', 'ANSWER', now(), '0.7749', '+0.2712', '', '', 'cuba', '11', '20', '86785', '7', '0039xxxxxxxxxx', '0', '0.5166', '0.18081', '0')]
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:917 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:935 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-0.2712 , redial='5372064591' , lastuse=now(), nbused=nbused+1 WHERE username='0197182120']
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:940 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 21 WHERE id_trunk='7'
Jun 11 17:55:41 DEBUG[16088] chan_sip.c: Scheduled a registration timeout for voip.eutelia.it id #475106
Jun 11 17:55:41 DEBUG[16088] chan_sip.c: Stopping retransmission on '[email protected]' of Request 104: Match Found
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:944 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 21 WHERE id='20'
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:a2billing.php - line:310 - [a2billing account stop]
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:a2billing.php - line:171 - [CREDIT : 24.5546][CREDIT MIN_CREDIT_2CALL : 0]
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:671 - 0 && && 12&& 1
Jun 11 17:55:41 WARNING[14080] file.c: Failed to write frame
Jun 11 17:55:41 DEBUG[14080] channel.c: Scheduling timer at 0 sample intervals
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:678 - RES DTMF : -1
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
Jun 11 17:55:41 VERBOSE[14080] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
Jun 11 17:55:41 DEBUG[14080] channel.c: Scheduling timer at 0 sample intervals
Jun 11 17:55:41 WARNING[14080] file.c: Failed to write frame
Jun 11 17:55:41 DEBUG[14080] channel.c: Scheduling timer at 0 sample intervals
Jun 11 17:55:41 DEBUG[14080] channel.c: Scheduling timer at 0 sample intervals
Jun 11 17:55:41 DEBUG[14080] chan_sip.c: update_call_counter(0197182120) - decrement call limit counter
Jun 11 17:55:41 DEBUG[14080] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Jun 11 17:55:41 DEBUG[14080] 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) VALUES ('2008-06-11 17:55:11','0039xxxxxxxxxx','0039xxxxxxxxxx','005372064591','a2billing', 'SIP/0197182120-08b00af8','SIP/Diva1-089e54f8','Dial','SIP/Diva1/005372064591|60|HrgL(1922000:61000:30000)',30,30,'ANSWERED',2,'0197182120','1213199711.10754')


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

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Thanks for that, but what was its purpose? If you think about it for a moment you'll see a call with early answer is indistinguishable from a call that worked flawlessly.

I've already explained there's no simple solution to your problem.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 11, 2008 4:53 pm 
Offline

Joined: Wed Jun 11, 2008 10:19 am
Posts: 92
Location: Italy
stavros wrote:
Thanks for that, but what was its purpose? If you think about it for a moment you'll see a call with early answer is indistinguishable from a call that worked flawlessly.

I've already explained there's no simple solution to your problem.


Quote:
:arrow: I can offer money to those who can solve this problem. contact email noc (at) divafone.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 30, 2008 9:44 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Voice trading use a variety of carriers - hence the name -anyone can offer routes to any destinations, and if the price is right and the quality good, then customers wil use these routes.

Personally, I would complain loud and long to voicetrading, that you are being overcharged, and hopefully someone will do something about it.

If they will not, then find another carrier.

The issue is as follows:-

You make a call, and the call is supposed to be billed from the moment that the called party picks up the phone.

If there is a switch in the way that picks up the phone first, then Asterisk at your end is going to commence billing, because as far as it is concerned, the phone has been answered.

It is not possible to distinguish in software whether the phone has been answered by an intermediate switch, or by the person the call was intended for, as the signal is the same coming back to Asterisk (or any other switch for that matter).

Stavros's answer of min time to bill is the way of ensuring that your customer does not get fraudulently billed. So on if the call is longer than say 30 seconds does the entire call get billed from start to finish. If the call is shorter then the customer does not get billed - but you will by Voice Trading.

So a pragmatic solutions to this problem are:-

1. Complain
2. Change Carrier
3. Set mininimum time to bill
4. Use stepped billing and set the initial price to 0 for the first 15 seconds or so for the destinations where this is a problem - combine with 3 if you want.

Joe Roper


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 11 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