Inbound route with Patterns
amagurie

Tue, 07/29/2008 - 03:41 | Inbound route with Patterns

Hi, I have setup a 'inbound route' using a pattern to inorder to match any number that doesn't have a inbound route setup for the DDI. This inbound route use tl-dialout-1-trunk to route to another PBX.
.
The administrator's guide says the following:
.
Inbound Routes allows ...... Note that the Single-Tenant PBX Manager allows you to use patterns to match a group of numbers as well as directly enter DIDs when creating Inbound Routes.
.
All our DDI's are for example 6748994613, and so I created a inbound route with a DID/Pattern of _67489946XX.
.
Problem is it gets setup as:
exten => _67489946XX,1,Set(DIALED_PUBLIC_NUMBER=${EXTEN})
exten => _67489946XX,2,Set(DIALED_NUMBER=${EXTEN})
exten => _67489946XX,3,GotoIfTime(*|*|*|*?from-outside-_67489946XX-tl-allhours|_67489946XX|1)
.
and therefore tries to ring '_67489946XX'?? shouldn't it be like the following? (if a manually edit it to this it works correctly).
.
exten => _67489946XX,3,GotoIfTime(*|*|*|*?from-outside-_67489946XX-tl-allhours|${DIALED_NUMBER}|1)
.
Regards
Allister Maguire

eeman

Tue, 07/29/2008 - 16:46 | good catch. I agree, the

good catch. I agree, the code should actually look like this...

_67489946XX,3,GotoIfTime(*|*|*|*?from-outside-_67489946XX-tl-allhours,${EXTEN},1)

I also removed the pipe delimits for arguments, since they dont work in 1.6

I would have the webmin code just look for the _ in the first character of the string and use ${EXTEN} when patterns are in use.

Erik Smith
CTO
BluegrassNet Voice
dCAP

thirdlane

Fri, 08/01/2008 - 15:02 | Inbound Route With Patterns

Thanks guys! It will be fixed in the next build.

Alex

amagurie

Sat, 08/02/2008 - 06:28 | Thanks Alex

Thanks Alex