Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Sep 20, 2019 10:40 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: No A2B between extensions
PostPosted: Sun Feb 01, 2009 2:30 am 
Offline

Joined: Tue Nov 25, 2008 8:49 pm
Posts: 42
Location: Canada
Hi,
I have two extensions created on Elastix 6000 and 6001, and I want free calls between them just like a regular PBX, but I have A2Billing installed for my other customers, when I dialed to 6001 from 6000 a message appeared: "Please enter your complete pin number", so I could not make the call, my A2B customers can call 6000 dialing 9996000. So I look all over the files and I found:
Code:
/etc/asterisk/extensions_custom.conf

and I commented these lines:
Code:
;asterisk2billing application
;exten => _X.,1,Answer
;exten => _X.,2,Wait,2
;exten => _X.,1,DeadAGI,a2billing.php
;exten => _X.,2,Wait,2
;exten => _X.,3,Hangup


My A2B customers can call over the trunks without problem even generate CDR, my extensions can call each other without problems, so did I really solved my issue or just creating a bigger problem? what are these lines for?

Best regards
Christancho


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 01, 2009 9:44 am 
Offline

Joined: Fri Jan 18, 2008 9:54 pm
Posts: 135
Hi,

Those lines are necessary for A2B to work, by commenting them, you deprive A2B from being called.. It is strange that A2B customers can still make calls.

I have no experience with Elastix in particular, but may be the file you changed is not the real callplan.

By the way .. did you restart/reload asterisk after editing the file.??

To achieve what you want, you could have only added the following lines before the A2Billing lines :

exten => 6000,1, Dial(SIP/6000) ; not sure of the syntax.. plz check
exten => 6001,1, Dial(SIP/6001) ; not sure of the syntax.. plz check

Is there any /etc/asterisk/extensions.conf in your system ??
can you plz attach it to the post with the one you edited..
also what is the context of your A2B customers and the 6000/6001 extensions ?


Regards,


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 01, 2009 5:41 pm 
Offline

Joined: Tue Nov 25, 2008 8:49 pm
Posts: 42
Location: Canada
Hi,
Answering your questions...
yes, i did restarted asterisk even the server, just in case.

yes, I do have a /etc/asterisk/extensions.conf at the end I have these lines:
Quote:
[a2billing]
; CallingCard application
;exten => _X.,1,Answer
;exten => _X.,2,Wait,2
exten => _X.,1,DeadAGI,a2billing.php
exten => _X.,2,Wait,2
exten => _X.,3,Hangup



and the extensions are context: from-internal

Well, here are my test:

6000 calling to 6001 - OK
6001 calling to 6000 - OK
A2B customer calling to another customer ( 555 + Alias) - OK
A2B customer calling to 6000 (999 + 6000) OK
A2B customer calling to 6001 (999 + 6001) OK
A2B customer calling through SIP trunk OK.

Am I missing something?

best regards!
Christancho


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 01, 2009 7:14 pm 
Offline

Joined: Fri Jan 18, 2008 9:54 pm
Posts: 135
Hello,

/etc/asterisk/extensions.conf is the file Asterisk looks for, the other file is added by whoever customed Elastix to serve a certain purpose...

you might see a reference to the (custom) file in the extensions.conf (include statement)


The following is the part that calls A2B, what you have commented in the other file had no effect..

[a2billing]
; CallingCard application
;exten => _X.,1,Answer
;exten => _X.,2,Wait,2
exten => _X.,1,DeadAGI,a2billing.php
exten => _X.,2,Wait,2
exten => _X.,3,Hangup

In case you did not know it :
The [a2billing] denotes the context... any peer with this context will be transfered here when dialing a number...

mostly, your A2B customers will be having this context in their definitions..

On the other hand, since you say that the 6000 and 6001 are having their context as (from-internal ).. then you have to look in the file for : [from-internal ].. there you will find the code to be executed when the 6000/6001 calls ..


When A2B customer, calls in, the [a2billing] context is executed.. what happens after calling A2B is related to the route definitions in side A2B .. mostly you will find a trunk defined as localhost or something and calls are routed to it when dialed number is starting with 999 ..


Hope this helps understanding it..
Dig, interpret and understand the logic out of it.. and whenever you feel confused, i am only one post away..

Regards,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 
VoIP Billing solution


All times are UTC


Who is online

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