Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Jun 20, 2018 1:57 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: FreePBX with A2Billing SIP trunk DID set up help
PostPosted: Mon Mar 14, 2011 8:18 pm 
Offline

Joined: Tue Mar 01, 2011 3:08 pm
Posts: 10
Hello Guys,

I have installed successfully A2Billing 1.4.1 but I'm having a problem setting up more than 1 incoming DID for different contexts...

This is the way I have done it, I know it's not right, I think that I'm forcing the DID to go to context a2billing2 here:

[from-sip-external]
exten => _.,n,Goto(a2billing2,s,1)

I would really appreciate some help so that I can setup incoming DIDs the right way, and use FreePBX for that...

Here's my configuration:

A2billing 1.4.1
Asterisk 1.4
FreePBX 2.5.2.1

extensions.conf

[from-sip-external]
;give external sip users congestion and hangup
; Yes. This is _really_ meant to be _. - I know asterisk whines about it, but
; I do know what I'm doing. This is correct.
exten => _.,1,NoOp(Received incoming SIP connection from unknown peer to ${EXTEN})
exten => _.,n,Set(DID=${IF($["${EXTEN:1:2}"=""]?s:${EXTEN})})
exten => _.,n,Goto(a2billing2,s,1)
exten => s,1,GotoIf($["${ALLOW_SIP_ANON}"="yes"]?from-trunk,${DID},1)
exten => s,n,Set(TIMEOUT(absolute)=15)
exten => s,n,Answer
exten => s,n,Wait(2)
exten => s,n,Playback(ss-noservice)
exten => s,n,Playtones(congestion)
exten => s,n,Congestion(5)
exten => h,1,NoOp(Hangup)
exten => i,1,NoOp(Invalid)
exten => t,1,NoOp(Timeout)

extensions_a2billing.conf

[a2billing2]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,deadAGI(a2billing.php|2)
exten => s,n,Hangup

FreePBX

Inbound Routes
Incoming Route
DID Number: 305XXXXXXX
Custom Destinations: DIDin

Custom Destination: a2billing2,s,1
Description: DIDin

THANKS in advance.

Best regards,

galcv2


Top
 Profile  
 
 Post subject: Re: FreePBX with A2Billing SIP trunk DID set up help
PostPosted: Tue Mar 15, 2011 8:09 pm 
Offline

Joined: Tue Mar 01, 2011 3:08 pm
Posts: 10
Hello Guys,

After reading and reading and some testing I got the answer...

1) There's no need to modify [from-sip-external] in extensions.conf

2) a2billing2 in extensions_a2billing.conf should look like

[a2billing2]
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,deadAGI(a2billing.php|2)
exten => _X.,n,Hangup

3) in FreePBX the right configuration is:

Inbound Routes
Incoming Route
DID Number: 305XXXXXXX
Custom Destinations: DIDin

Custom Destination: a2billing2,${EXTEN},1
Description: DIDin


Best regards,

galcv2


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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