Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 8:20 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Just upgraded to 2.0.16 and no outgoing calls - solved!
PostPosted: Sat Jan 24, 2015 5:42 am 
Offline

Joined: Tue Nov 25, 2008 8:49 pm
Posts: 42
Location: Canada
--- update ---
There was some 'garbage' on the cc_sip_buddies, made some clean up and all is working just fine.
I hope this helps someone.
---------------

Hi,
I just upgraded from 1.7.0 to 2.0.16 and there's something with the outgoings calls, they just don't work, however, incoming calls work flawlessly.

I'm using Opensips upfront to manage SIP and asterisk + a2billing in a separate server to handle the rest, I have made no changes to Opensips or asterisk at all.

Am I missing a new feature or something?

Here is some output:

Code:
    -- Executing [0018003988647@a2billing:1] AGI("SIP/openser-in-0000001c", "a2billing.php,1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php,1: file:Class.A2Billing.php - line:590 - uniqueid: - A2Billing AGI internal configuration:
a2billing.php,1: file:Class.A2Billing.php - line:591 - uniqueid: - Array
a2billing.php,1: (
a2billing.php,1:     [callerid_update] => 0
a2billing.php,1:     [dialcommand_param_call_2did] => |60|HiL(%timeout%:61000:30000)
a2billing.php,1:     [description] => agi-config
a2billing.php,1:     [asterisk_version] => 1_6
a2billing.php,1:     [answer_call] => 0
a2billing.php,1:     [play_audio] => 1
a2billing.php,1:     [say_goodbye] => 0
a2billing.php,1:     [play_menulanguage] => 0
a2billing.php,1:     [force_language] =>
a2billing.php,1:     [intro_prompt] =>
a2billing.php,1:     [min_credit_2call] => 0.25
a2billing.php,1:     [min_duration_2bill] => 0
a2billing.php,1:     [notenoughcredit_cardnumber] => 0
a2billing.php,1:     [notenoughcredit_assign_newcardnumber_cid] => 0
a2billing.php,1:     [use_dnid] => 1
a2billing.php,1:     [no_auth_dnid] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 2400
a2billing.php,1:             [1] => 2300
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [number_try] => 1
a2billing.php,1:     [force_callplan_id] =>
a2billing.php,1:     [say_balance_after_auth] => 0
a2billing.php,1:     [say_balance_after_call] => 0
a2billing.php,1:     [say_rateinitial] => 0
a2billing.php,1:     [say_timetocall] => 0
a2billing.php,1:     [auto_setcallerid] => 1
a2billing.php,1:     [force_callerid] =>
a2billing.php,1:     [cid_sanitize] => CID
a2billing.php,1:     [cid_enable] => 0
a2billing.php,1:     [cid_askpincode_ifnot_callerid] => 0
a2billing.php,1:     [failover_lc_prefix] => 1
a2billing.php,1:     [cid_auto_assign_card_to_cid] => 1
a2billing.php,1:     [callerid_authentication_over_cardnumber] => 0
a2billing.php,1:     [sip_iax_friends] => 1
a2billing.php,1:     [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php,1:     [sip_iax_pstn_direct_call] => 1
a2billing.php,1:     [ivr_voucher] => 0
a2billing.php,1:     [ivr_voucher_prefix] => 8
a2billing.php,1:     [jump_voucher_if_min_credit] => 0
a2billing.php,1:     [dialcommand_param] => |60|HRrL(%timeout%:61000:30000)
a2billing.php,1:     [dialcommand_param_sipiax_friend] => |60|HiL(3600000:61000:30000)
a2billing.php,1:     [switchdialcommand] => 0
a2billing.php,1:     [failover_recursive_limit] => 2
a2billing.php,1:     [maxtime_tocall_negatif_free_route] => 5400
a2billing.php,1:     [send_reminder] => 1
a2billing.php,1:     [record_call] => 1
a2billing.php,1:     [monitor_formatfile] => gsm
a2billing.php,1:     [agi_force_currency] =>
a2billing.php,1:     [currency_association] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => usd:dollars
a2billing.php,1:             [1] => mxn:pesos
a2billing.php,1:             [2] => eur:euros
a2billing.php,1:             [3] => all:credit
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [local_dialing_addcountryprefix] => 0
a2billing.php,1:     [max_call_call_2_did] => 3600
a2billing.php,1:     [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php,1:     [conf_order_menulang] => en:fr:es
a2billing.php,1:     [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php,1:     [international_prefixes] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 011
a2billing.php,1:             [1] => 00
a2billing.php,1:             [2] => 09
a2billing.php,1:             [3] => 1
a2billing.php,1:             [4] => 999
a2billing.php,1:             [5] => 998
a2billing.php,1:             [6] => 997
a2billing.php,1:             [7] => 996
a2billing.php,1:             [8] => 995
a2billing.php,1:             [9] => *32
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [extracharge_did] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 1800
a2billing.php,1:             [1] => 1900
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [extracharge_fee] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 0
a2billing.php,1:             [1] => 0
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [extracharge_buyfee] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 0
a2billing.php,1:             [1] => 0
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [maxtime_tounlimited_calls] => 5400
a2billing.php,1:     [maxtime_tofree_calls] => 5400
a2billing.php,1:     [callplan_deck_minute_threshold] =>
a2billing.php,1:     [disable_announcement_seconds] => 0
a2billing.php,1:     [currency_cents_association] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => usd:prepaid-cents
a2billing.php,1:             [1] => eur:prepaid-cents
a2billing.php,1:             [2] => gbp:prepaid-pence
a2billing.php,1:             [3] => all:credit
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [verbosity_level] => 4
a2billing.php,1:     [logging_level] => 3
a2billing.php,1:     [dial_balance_reservation] => 0.25
a2billing.php,1:     [cid_auto_create_card] => 0
a2billing.php,1:     [cid_auto_create_card_len] => 10
a2billing.php,1:     [cid_auto_create_card_typepaid] => PREPAID
a2billing.php,1:     [cid_auto_create_card_credit] => 0
a2billing.php,1:     [cid_auto_create_card_credit_limit] => 0
a2billing.php,1:     [cid_auto_create_card_tariffgroup] => 1
a2billing.php,1:     [busy_timeout] => 1
a2billing.php,1:     [callback_reduce_balance] => 1
a2billing.php,1:     [ivr_enable_locking_option] => 0
a2billing.php,1:     [ivr_enable_account_information] => 0
a2billing.php,1:     [ivr_enable_ivr_speeddial] => 0
a2billing.php,1:     [play_rate_cents_if_lower_one] => 0
a2billing.php,1:     [callback_beep_to_enter_destination] => 0
a2billing.php,1:     [cid_prompt_callback_confirm_phonenumber] => 0
a2billing.php,1:     [lcr_mode] => 0
a2billing.php,1:     [logger_enable] => 1
a2billing.php,1:     [log_file] => /var/log/a2billing/a2billing.log
a2billing.php,1:     [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000)
a2billing.php,1:     [currency_association_internal] => Array
a2billing.php,1:         (
a2billing.php,1:             [usd] => dollars
a2billing.php,1:             [mxn] => pesos
a2billing.php,1:             [eur] => euros
a2billing.php,1:             [all] => credit
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [currency_cents_association_internal] => Array
a2billing.php,1:         (
a2billing.php,1:             [usd] => prepaid-cents
a2billing.php,1:             [eur] => prepaid-cents
a2billing.php,1:             [gbp] => prepaid-pence
a2billing.php,1:             [all] => credit
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [file_conf_enter_menulang] => prepaid-menulang
a2billing.php,1:     [ivr_voucher_prefixe] => 8
a2billing.php,1:     [cheat_on_announcement_time] => 0
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: file:a2billing.php - line:117 - uniqueid: - IDCONFIG : 1
a2billing.php,1: file:a2billing.php - line:118 - uniqueid: - MODE : standard
a2billing.php,1: file:a2billing.php - line:130 - uniqueid: - AGI Request:
a2billing.php,1: Array
a2billing.php,1: (
a2billing.php,1:     [agi_request] => a2billing.php
a2billing.php,1:     [agi_channel] => SIP/openser-in-0000001c
a2billing.php,1:     [agi_language] => en
a2billing.php,1:     [agi_type] => SIP
a2billing.php,1:     [agi_uniqueid] => 1422076610.28
a2billing.php,1:     [agi_version] => 1.6.2.7
a2billing.php,1:     [agi_callerid] => 9261877014
a2billing.php,1:     [agi_calleridname] => 9261877014
a2billing.php,1:     [agi_callingpres] => 0
a2billing.php,1:     [agi_callingani2] => 0
a2billing.php,1:     [agi_callington] => 0
a2billing.php,1:     [agi_callingtns] => 0
a2billing.php,1:     [agi_dnid] => 0018003988647
a2billing.php,1:     [agi_rdnis] => unknown
a2billing.php,1:     [agi_context] => a2billing
a2billing.php,1:     [agi_extension] => 0018003988647
a2billing.php,1:     [agi_priority] => 1
a2billing.php,1:     [agi_enhanced] => 0.0
a2billing.php,1:     [agi_accountcode] =>
a2billing.php,1:     [agi_threadid] => -177194096
a2billing.php,1:     [agi_arg_1] => 1
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: file:a2billing.php - line:131 - uniqueid: - [INFO : A2Billing - v2.0.16]
a2billing.php,1: file:Class.A2Billing.php - line:748 - uniqueid:1422076610.28 -  get_agi_request_parameter = 9261877014 ; SIP/openser-in-0000001c ; 1422076610.28 ;  ; 0018003988647
a2billing.php,1: file:a2billing.php - line:169 - uniqueid:1422076610.28 - [NO ANSWER CALL]
a2billing.php,1: file:Class.A2Billing.php - line:2869 - uniqueid:1422076610.28 -  - Account code ::>
a2billing.php,1: file:Class.A2Billing.php - line:3051 - uniqueid:1422076610.28 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
    -- <SIP/openser-in-0000001c> Playing 'prepaid-enter-pin-number.gsm' (language 'en')




So he asked me for the prepaid pin number... I hang up then:


Code:
a2billing.php,1: file:Class.A2Billing.php - line:3053 - uniqueid:1422076610.28 - RES DTMF : -1
a2billing.php,1: file:Class.A2Billing.php - line:3057 - uniqueid:1422076610.28 - CARDNUMBER ::> -1
a2billing.php,1: file:Class.A2Billing.php - line:3067 - uniqueid:1422076610.28 - PREPAID-INVALID-DIGITS
a2billing.php,1: file:Class.A2Billing.php - line:3043 - uniqueid:1422076610.28 - Streamfile : PREPAID-INVALID-DIGITS
a2billing.php,1: file:Class.A2Billing.php - line:3051 - uniqueid:1422076610.28 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
a2billing.php,1: file:Class.A2Billing.php - line:3053 - uniqueid:1422076610.28 - RES DTMF :
a2billing.php,1: file:Class.A2Billing.php - line:3057 - uniqueid:1422076610.28 - CARDNUMBER ::>
a2billing.php,1: file:Class.A2Billing.php - line:3061 - uniqueid:1422076610.28 - PREPAID-NO-CARD-ENTERED
a2billing.php,1: file:Class.A2Billing.php - line:3043 - uniqueid:1422076610.28 - Streamfile : PREPAID-NO-CARD-ENTERED
a2billing.php,1: file:Class.A2Billing.php - line:3051 - uniqueid:1422076610.28 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
a2billing.php,1: file:Class.A2Billing.php - line:3053 - uniqueid:1422076610.28 - RES DTMF :
a2billing.php,1: file:Class.A2Billing.php - line:3057 - uniqueid:1422076610.28 - CARDNUMBER ::>
a2billing.php,1: file:Class.A2Billing.php - line:3061 - uniqueid:1422076610.28 - PREPAID-NO-CARD-ENTERED
a2billing.php,1: file:a2billing.php - line:181 - uniqueid:1422076610.28 - [TRY : callingcard_ivr_authenticate]
a2billing.php,1: file:a2billing.php - line:615 - uniqueid:1422076610.28 - [NO AUTH (CN:, cia_res:-1, CREDIT:)]
    -- <SIP/openser-in-0000001c>AGI Script a2billing.php completed, returning -1


Hope someone can help me.
Kind regards,
Christancho


Top
 Profile  
 
 Post subject: Re: Just upgraded to 2.0.16 and no outgoing calls - solved!
PostPosted: Wed Feb 04, 2015 1:22 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
Thanks for the info. I've seen that before also and fixed with this -

update cc_sip_buddies set nat = replace(nat,'\0','');
update cc_sip_buddies set DEFAULTip = replace(DEFAULTip,'\0','');
update cc_sip_buddies set ipaddr = replace(ipaddr,'\0','');


Top
 Profile  
 
 Post subject: Re: Just upgraded to 2.0.16 and no outgoing calls - solved!
PostPosted: Fri Apr 17, 2015 4:23 am 
Offline

Joined: Thu Apr 16, 2015 9:10 am
Posts: 1
Hi,
When multiple callerid's are registered for a user, I would like to pick one that matches his current callerid rather than the latest registered.

The use case I have in mind is if you use your mobile phone to call you would like your mobile number used as caller id rather than the latest fixed line number registered.

Looked in a2billing.php file but unable to locate where callerid is set. Any pointers on which files need changing?

______________________________
http://solitaire-champ.com/


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


All times are UTC


Who is online

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