Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Mon Dec 10, 2018 4:36 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Catchall FreePBX->a2billing "You probably want a DID for thi
PostPosted: Tue May 15, 2012 7:54 pm 
Offline

Joined: Sun Dec 18, 2011 8:57 pm
Posts: 6
Hello,


I am running PIAF 1.7.5.7 with FreePBX 2.1.0.7, Asterisk 1.8.6 and a2billing 1.9.4

Everything is set up and running fine.

However I have one issue:
I am using a2billing to manage my DID's (specifically I use it to forward/resell DID's).
All my customers are managed in a2billing.

I pass all calls though FreePBX (because some lines are used for fax and other services).
I have tried to set up a catchall for did's in FreePBX - in this manner all calls (not specifically listed in FreePBX) will be sent to a2billing and dealt with there.
(The DID number has been modified in the text below)

However when I do this I get "Catch-All DID Match - Found 123456789 - You probably want a DID for this."
...and the call is not processed. It seems to go into an endless loop... And I don't want a DID for this (the DID is in a2billing)


It works great if I add the corresponding DID (equal to that in a2billing) to FreePBX and forward the calls "individually" - however this is not ideal with a large number of customers.

I have posted the relevant log here:
------- start log
-- Executing [[email protected]:1] NoOp("SIP/MyDivert-00000011", "Catch-All DID Match - Found 5117074326 - You probably want a DID for this.") in new stack
-- Executing [[email protected]:2] Goto("SIP/MyDivert-00000011", "ext-did,s,1") in new stack
-- Goto (ext-did,s,1)
-- Executing [[email protected]:1] ExecIf("SIP/MyDivert-00000011", "1?Set(__FROM_DID=s)") in new stack
-- Executing [[email protected]:2] Gosub("SIP/MyDivert-00000011", "app-blacklist-check,s,1()") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/MyDivert-00000011", "0?blacklisted") in new stack
-- Executing [[email protected]:2] Set("SIP/MyDivert-00000011", "CALLED_BLACKLIST=1") in new stack
-- Executing [[email protected]pp-blacklist-check:3] Return("SIP/MyDivert-00000011", "") in new stack
-- Executing [[email protected]:3] Set("SIP/MyDivert-00000011", "CDR(did)=s") in new stack
-- Executing [[email protected]:4] ExecIf("SIP/MyDivert-00000011", "0 ?Set(CALLERID(name)= 123456789)") in new stack
-- Executing [[email protected]:5] Set("SIP/MyDivert-00000011", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [[email protected]:6] Set("SIP/MyDivert-00000011", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [[email protected]:7] Goto("SIP/MyDivert-00000011", "a2billing-did,s,1") in new stack
-- Goto (a2billing-did,s,1)
---------- end log



What I think is happening here is this.
1) The call goes to FreePBX (asterisk), it is recognized by the catchall (all DID's), then forwarded to a2billing
2) A2billing recognizes the DID (which is listed there), and forwarded to another DID (in this case a mobile phone)
3) The outgoing call is goes to FreePBX and is then passed back to a2billing (to charge for the forwarding service).
4) Then somehow a2billing goes into a loop


Any help here would be highly appreciated


Cheers,

Bjorn


Top
 Profile  
 
 Post subject: Re: Catchall FreePBX->a2billing "You probably want a DID for thi
PostPosted: Wed May 16, 2012 8:27 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

In the catchall, change the DID from blank to _. (that's underscore, dot)

Joe


Top
 Profile  
 
 Post subject: Re: Catchall FreePBX->a2billing "You probably want a DID for thi
PostPosted: Thu May 17, 2012 6:47 am 
Offline

Joined: Sun Dec 18, 2011 8:57 pm
Posts: 6
Hello Joe,

That worked like a charm. Excellent.

It's quite logical, but at the same time a bit confusing when FreePBX (latest version) tells you to leave it completely blank for a catchall...

At any rate, works great now - thanks.


Bjorn


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
Predictive Dialer


All times are UTC


Who is online

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