Inbound DID for A2Billing

Status
Not open for further replies.

ahmed_gaffar

Joined
Jan 10, 2011
Messages
44
Reaction score
0
Hello,
i know that this subject discused for many times, i have DID which i connected to my elastix and i want that when somebody call it then it will be connected to A2billing, where it should ask him for his pin, i followed a lot of tutorials in this fourm and in a2billing also, but now i got no answer from elastix or from a2billing and the call debug show me:
Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_type] => SIP

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_uniqueid] => 1312476027.66

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_version] => 1.6.2.13

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_callerid] => 017670805820

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_calleridname] => 017670805820

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_callingpres] => 0

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_callingani2] => 0

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_callington] => 0

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_callingtns] => 0

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_dnid] => 1151753e2

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_rdnis] => unknown

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_context] => a2billing-did

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_extension] => _X.

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_priority] => 1

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_enhanced] => 0.0

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_accountcode] =>

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_threadid] => -1222263920

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_arg_1] => 1

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: [agi_arg_2] => did

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: )

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did:

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: file:Class.A2Billing.php - line:601 - get_agi_request_parameter = 017670805820 ; SIP/sipgate_did-00000042 ; 1312476027.66 ; ; _X.

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: file:a2billing.php - line:331 - [NO ANSWER CALL]

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: file:a2billing.php - line:343 - [DID CALL - [CallerID=017670805820]:[DID=_X.]

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: file:a2billing.php - line:351 - SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination, voip_call, username FROM cc_did, cc_did_destination, cc_card WHERE id_cc_did=cc_did.id and cc_card.id=id_cc_card and cc_did_destination.activated=1 and cc_did.activated=1 and did='_X.' AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL OR cc_did.expirationdate = '0000-00-00 00:00:00') ORDER BY priority ASC

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

a2billing.php,1,did: file:a2billing.php - line:353 - 0

Aug 4 18:40:27 VERBOSE [4727] res_agi.c:

-- <SIP/sipgate_did-00000042>AGI Script a2billing.php completed, returning -1

Aug 4 18:40:36 NOTICE [2795] chan_sip.c:

Registration from '<sip:[email protected]>' failed for '217.253.201.107' - No matching peer found

Aug 4 18:40:36 NOTICE [2795] chan_sip.c:

Registration from '<sip:[email protected]>' failed for '217.253.201.107' - No matching peer found


so can any body help'?! any tipp will be great.
 
Just configure the inbound route, and send it into your a2billing context.
 
hello jgutierrez,
first, alot of thanks for all in this fourm who try to give some help for newbie like me, about confinguring the a2billing context, well i used another answer an it is work fine for me
http://www.elx.ec/en/component/kunena/3 ... illig.html

i think i will write a tutorial with steps how to bind a2billing with elastix and using a DID number, becuase as i see, it is a problem for all the newbies here. i will only write the steps which worked for me and a special Q jgutierrez, i hope you can define me breifly what is the diff: exten => _X.,1,Goto(a2billing,${EXTEN},1) and exten => _X.,1,Goto(a2billing,1)
because i have only the _X in my elastix CDR as destination when i use one of the DID, can i handle this with another way?


thanks again
 
hello jgutierrez
thanks again for your answer it works fine now ... i hade to make some changes in the context as you said ... and walaaa. so thanks again.
 
Status
Not open for further replies.