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
|