Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 8:37 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Call from a DID does not reach destination
PostPosted: Tue Nov 06, 2007 10:09 pm 
Offline

Joined: Thu Sep 13, 2007 12:46 pm
Posts: 254
Location: Naples, Fl ( USA )
I have a DID which I have it going to one of the customers card. I tried every thing to make it work so far nothing. I need help with this. I was trying it this way because I cannot make call from one IPphone to an other which have different account for example if I have a callerid 2000 and I call it from another device like "5552000" it does not work even if both are registered. here is my debug info from a did.
a2billing.php|2|did: file:Class.A2Billing.php - line:602 - get_agi_request_parameter = 17182221111 ; SIP/204.11.194.34-09bef2c0 ; 1194386382.1481 ; ; 13051112222
a2billing.php|2|did: file:a2billing.php - line:317 - [NO ANSWER CALL]
a2billing.php|2|did: file:a2billing.php - line:329 - [DID CALL - [CallerID=17182221111]:[DID=13058902989]
a2billing.php|2|did: file:a2billing.php - line:337 - SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination, voip_call, username FROM cc_did, cc_did_destination, cc_card WHERE id_cc_did=cc_did.id and cc_card.id=id_cc_card and cc_did_destination.activated=1 and cc_did.activated=1 and did='13051112222' AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL OR cc_did.expirationdate = '0000-00-00 00:00:00') ORDER BY priority ASC
a2billing.php|2|did: file:a2billing.php - line:339 - Array
a2billing.php|2|did: file:Class.A2Billing.php - line:953 - [A2Billing] DID call friend: FOLLOWME=1 (cardnumber:3660004911|destination:SIP/3660004911|tariff:5)
a2billing.php|2|did:
a2billing.php|2|did: file:Class.A2Billing.php - line:1670 - 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='3660004911'
a2billing.php|2|did: file:Class.A2Billing.php - line:1744 - [SET LANGUAGE() fr]
a2billing.php|2|did: file:Class.A2Billing.php - line:635 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='3660004911']
a2billing.php|2|did: file:Class.A2Billing.php - line:981 - [A2Billing] DID call friend: Dialing 'SIP/3660004911|60|HrL(3600000:61000:30000)' Friend.
a2billing.php|2|did:
-- AGI Script Executing Application: (DIAL) Options: (SIP/3660004911|60|HrL(3600000:61000:30000))
-- Limit Data for this call:
-- - timelimit = 3600000
-- - play_warning = 61000
-- - play_to_caller= yes
-- - play_to_callee= no
-- - warning_freq = 30000
-- - start_sound = UNDEF
-- - warning_sound = timeleft
-- - end_sound = UNDEF
== Everyone is busy/congested at this time (1:0/0/1)
a2billing.php|2|did: file:Class.A2Billing.php - line:635 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='3660004911']
-- AGI Script a2billing.php completed, returning 0


Top
 Profile  
 
 Post subject: Re: Call from a DID does not reach destination
PostPosted: Wed Nov 07, 2007 12:16 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
That looks perfect except for:
graher01 wrote:
== Everyone is busy/congested at this time (1:0/0/1)
Are you sure that SIP client is registered?
'set verbose 15' might entice Asterisk to give you an additional error at that point
Code:
Unable to create channel of type 'SIP' (cause 3 - No route to destination)
which would confirm my diagnosis.


Top
 Profile  
 
 Post subject: Re: Call from a DID does not reach destination
PostPosted: Wed Nov 07, 2007 1:07 pm 
Offline

Joined: Thu Sep 13, 2007 12:46 pm
Posts: 254
Location: Naples, Fl ( USA )
stavros wrote:
Are you sure that SIP client is registered?
'set verbose 15' might entice Asterisk to give you an additional error at that point [code] .


// these are from FreePbx
2002/2002 (Unspecified) D N 0 UNKNOWN
2001/2001 (Unspecified) D N 0 UNKNOWN
// These are from a2billing
5843569/5843569 (Unspecified) D N 0 UNKNOWN
4742821773/4742821773 XXX.XXX.XXX.XXX D N 60200 LAGGED (98 ms)
3660004911/3660004911 xx.xxx.xxx.xxx D N 47740 LAGGED (175 ms)

I have verbose set to 100


Destination is set to
SIP/3660004911
Voip_Call

Here is the verbose

-- Executing NoOp("SIP/111.111.111.111-09c026f0", ""1718xxxxxxx" <1718xxxxxxx>") in new stack
-- Executing DeadAGI("SIP/111.111.111.111-09c026f0", "a2billing.php|2|did") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|2|did: A2Billing AGI internal configuration:
a2billing.php|2|did: Array
a2billing.php|2|did: (
a2billing.php|2|did: [debug] => 3
a2billing.php|2|did: [asterisk_version] => 1_2
a2billing.php|2|did: [answer_call] =>
a2billing.php|2|did: [play_audio] => 1
a2billing.php|2|did: [say_goodbye] =>
a2billing.php|2|did: [play_menulanguage] =>
a2billing.php|2|did: [force_language] =>
a2billing.php|2|did: [intro_prompt] =>
a2billing.php|2|did: [min_credit_2call] => 0.05
a2billing.php|2|did: [min_duration_2bill] => 0
a2billing.php|2|did: [notenoughcredit_cardnumber] => 1
a2billing.php|2|did: [notenoughcredit_assign_newcardnumber_cid] => 1
a2billing.php|2|did: [use_dnid] => 1
a2billing.php|2|did: [no_auth_dnid] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] => 2400
a2billing.php|2|did: [1] => 2300
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [number_try] => 1
a2billing.php|2|did: [force_callplan_id] =>
a2billing.php|2|did: [say_balance_after_auth] =>
a2billing.php|2|did: [say_balance_after_call] =>
a2billing.php|2|did: [say_rateinitial] =>
a2billing.php|2|did: [say_timetocall] =>
a2billing.php|2|did: [auto_setcallerid] => 1
a2billing.php|2|did: [force_callerid] =>
a2billing.php|2|did: [cid_sanitize] =>
a2billing.php|2|did: [cid_enable] =>
a2billing.php|2|did: [cid_askpincode_ifnot_callerid] => 1
a2billing.php|2|did: [cid_auto_assign_card_to_cid] => 1
a2billing.php|2|did: [cid_auto_create_card] =>
a2billing.php|2|did: [cid_auto_create_card_len] => 10
a2billing.php|2|did: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php|2|did: [cid_auto_create_card_credit] => 0
a2billing.php|2|did: [cid_auto_create_card_credit_limit] => 1000
a2billing.php|2|did: [cid_auto_create_card_tariffgroup] => 6
a2billing.php|2|did: [callerid_authentication_over_cardnumber] =>
a2billing.php|2|did: [sip_iax_friends] => 1
a2billing.php|2|did: [sip_iax_pstn_direct_call_prefix] => 9
a2billing.php|2|did: [sip_iax_pstn_direct_call] => 1
a2billing.php|2|did: [ivr_voucher] => 1
a2billing.php|2|did: [ivr_voucher_prefix] => 8
a2billing.php|2|did: [jump_voucher_if_min_credit] =>
a2billing.php|2|did: [extracharge_did] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] =>
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [extracharge_fee] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] =>
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [dialcommand_param] => |45|HCL(%timeout%:61000:30000)
a2billing.php|2|did: [dialcommand_param_sipiax_friend] => |60|HrL(3600000:61000:30000)
a2billing.php|2|did: [switchdialcommand] =>
a2billing.php|2|did: [failover_recursive_limit] => 2
a2billing.php|2|did: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|2|did: [send_reminder] => 1
a2billing.php|2|did: [record_call] =>
a2billing.php|2|did: [monitor_formatfile] => gsm
a2billing.php|2|did: [agi_force_currency] =>
a2billing.php|2|did: [currency_association] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] => usd:dollars
a2billing.php|2|did: [1] => mxn:pesos
a2billing.php|2|did: [2] => eur:euros
a2billing.php|2|did: [3] => all:credit
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php|2|did: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php|2|did: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php|2|did: [logger_enable] => 1
a2billing.php|2|did: [log_file] => /tmp/a2billing.log
a2billing.php|2|did: [currency_association_internal] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [usd] => dollars
a2billing.php|2|did: [mxn] => pesos
a2billing.php|2|did: [eur] => euros
a2billing.php|2|did: [all] => credit
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [ivr_voucher_prefixe] => 8
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: file:a2billing.php - line:75 - IDCONFIG : 2
a2billing.php|2|did: file:a2billing.php - line:76 - MODE : did
a2billing.php|2|did: file:a2billing.php - line:88 - AGI Request:
a2billing.php|2|did: file:a2billing.php - line:89 - Array
a2billing.php|2|did: (
a2billing.php|2|did: [agi_request] => a2billing.php
a2billing.php|2|did: [agi_channel] => SIP/111.111.111.111-09c026f0
a2billing.php|2|did: [agi_language] => en
a2billing.php|2|did: [agi_type] => SIP
a2billing.php|2|did: [agi_uniqueid] => 1194440483.1493
a2billing.php|2|did: [agi_callerid] => 1718xxxxxxx
a2billing.php|2|did: [agi_calleridname] => 1718xxxxxxx
a2billing.php|2|did: [agi_callingpres] => 0
a2billing.php|2|did: [agi_callingani2] => 0
a2billing.php|2|did: [agi_callington] => 0
a2billing.php|2|did: [agi_callingtns] => 0
a2billing.php|2|did: [agi_dnid] => 1305ZZZZZZZ
a2billing.php|2|did: [agi_rdnis] => unknown
a2billing.php|2|did: [agi_context] => a2billing-did
a2billing.php|2|did: [agi_extension] => 1305ZZZZZZZ
a2billing.php|2|did: [agi_priority] => 2
a2billing.php|2|did: [agi_enhanced] => 0.0
a2billing.php|2|did: [agi_accountcode] =>
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: file:Class.A2Billing.php - line:602 - get_agi_request_parameter = 1718xxxxxxx ; SIP/111.111.111.111-09c026f0 ; 1194440483.1493 ; ; 1305ZZZZZZZ
a2billing.php|2|did: file:a2billing.php - line:317 - [NO ANSWER CALL]
a2billing.php|2|did: file:a2billing.php - line:329 - [DID CALL - [CallerID=1718xxxxxxx]:[DID=1305ZZZZZZZ]
a2billing.php|2|did: file:a2billing.php - line:337 - SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination, voip_call, username FROM cc_did, cc_did_destination, cc_card WHERE id_cc_did=cc_did.id and cc_card.id=id_cc_card and cc_did_destination.activated=1 and cc_did.activated=1 and did='13058902989' AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL OR cc_did.expirationdate = '0000-00-00 00:00:00') ORDER BY priority ASC
a2billing.php|2|did: file:a2billing.php - line:339 - Array
a2billing.php|2|did: file:Class.A2Billing.php - line:953 - [A2Billing] DID call friend: FOLLOWME=1 (cardnumber:3660004911|destination:SIP/3660004911|tariff:5)
a2billing.php|2|did:
a2billing.php|2|did: file:Class.A2Billing.php - line:1670 - 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='3660004911'
a2billing.php|2|did: file:Class.A2Billing.php - line:1744 - [SET LANGUAGE() fr]
a2billing.php|2|did: file:Class.A2Billing.php - line:635 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='3660004911']
a2billing.php|2|did: file:Class.A2Billing.php - line:981 - [A2Billing] DID call friend: Dialing 'SIP/3660004911|60|HrL(3600000:61000:30000)' Friend.
a2billing.php|2|did:
-- AGI Script Executing Application: (DIAL) Options: (SIP/3660004911|60|HrL(3600000:61000:30000))
-- Limit Data for this call:
-- - timelimit = 3600000
-- - play_warning = 61000
-- - play_to_caller= yes
-- - play_to_callee= no
-- - warning_freq = 30000
-- - start_sound = UNDEF
-- - warning_sound = timeleft
-- - end_sound = UNDEF
== Everyone is busy/congested at this time (1:0/0/1)
a2billing.php|2|did: file:Class.A2Billing.php - line:635 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='3660004911']
-- AGI Script a2billing.php completed, returning 0
asterisk1*CLI>


Top
 Profile  
 
 Post subject: Re: Call from a DID does not reach destination
PostPosted: Wed Nov 07, 2007 5:40 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
graher01 wrote:
4742821773/4742821773 XXX.XXX.XXX.XXX D N 60200 LAGGED (98 ms)
3660004911/3660004911 xx.xxx.xxx.xxx D N 47740 LAGGED (175 ms)
There's your problem.


Top
 Profile  
 
 Post subject: Re: Call from a DID does not reach destination
PostPosted: Wed Nov 07, 2007 5:42 pm 
Offline

Joined: Thu Sep 13, 2007 12:46 pm
Posts: 254
Location: Naples, Fl ( USA )
stavros wrote:
graher01 wrote:
4742821773/4742821773 XXX.XXX.XXX.XXX D N 60200 LAGGED (98 ms)
3660004911/3660004911 xx.xxx.xxx.xxx D N 47740 LAGGED (175 ms)
There's your problem.


Please explain I do not see the problem. the x's represent the IP address of the device. or are you taking about the LAGGED I do not understand call can be made with no problem from those devices. can you tell me how to make it work.

if I configure the same device with an account created with freepbx from the same server it works fine and does not show LAGGED it shows OK

ie
2001/2001 xxx.xxx.xxx.xxx D N 56958 OK (89 ms)

thanks


Last edited by graher01 on Wed Nov 07, 2007 5:51 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 07, 2007 5:49 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
You'll learn a lot more if you do the research.

I will give you a clue: LAGGED is closely linked to the warning messages Asterisk will be emitting: "sip_poke_noanswer: Peer 'XXX' is now UNREACHABLE!"


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 07, 2007 6:10 pm 
Offline

Joined: Thu Sep 13, 2007 12:46 pm
Posts: 254
Location: Naples, Fl ( USA )
stavros wrote:
You'll learn a lot more if you do the research.

I will give you a clue: LAGGED is closely linked to the warning messages Asterisk will be emitting: "sip_poke_noanswer: Peer 'XXX' is now UNREACHABLE!"


I think you for the lesson. I have really learn something today. I have seen UNREACHEABLE before and resolved it by making qualify=no but never knew I could LAGGED was the same think. the solution is qualify=no but I have to do some more reasearch to see if it will not cause other problem.

thanks


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


All times are UTC


Who is online

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