asterisk2billing.org http://forum.asterisk2billing.org/ |
|
FreePBX with A2Billing SIP trunk DID set up help http://forum.asterisk2billing.org/viewtopic.php?f=21&t=8664 |
Page 1 of 1 |
Author: | galcv2 [ Mon Mar 14, 2011 8:18 pm ] |
Post subject: | FreePBX with A2Billing SIP trunk DID set up help |
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 |
Author: | galcv2 [ Tue Mar 15, 2011 8:09 pm ] |
Post subject: | Re: FreePBX with A2Billing SIP trunk DID set up help |
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 |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |