Skip to main content

Inbound route with Patterns

Posted by amagurie on Tue, 07/29/2008

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


Submitted by eeman on Tue, 07/29/2008 Permalink

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.