ftocc

Redirect specific dialed PSTN numbers to internal extensions

IcelandDreams
Posts: 229
Member Since:
2007-09-11

I have a few stubborn users that will not dial internal extensions but will always dial the full PSTN number which then dials out before coming back in for the intended extension. Bad for bandwidth and that $0.015 adds up over time. How can I trap those dialed numbers and send it to the extension without leaving the PBX?
I can't do this for example on an outbound route:
9051231234|260+

user dials 9051231234 but I want it to go directly to 260



percykwong
Posts: 753
Member Since:
2007-04-30
well, there's really a

well, there's really a really simple answer to this..

Use ENUM. This way, when they dial, it checks to see that there is an enum address and it just connects to your pbx directly.

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



IcelandDreams
Posts: 229
Member Since:
2007-09-11
Thanks, I was on the right

Thanks,
I was on the right track and thought that ENUM might do the trick. But I guess I would have to register my DIDs which at this point I know little about ENUM. I see 'trial' projects for ENUM in Canada so not sure yet where to go. For giggles I setup a route to a test number I found here and got the recording so that theory works.

Can I do this with a local DNS domain or some other trick to keep my users from dialing out and back to the next desk?



percykwong
Posts: 753
Member Since:
2007-04-30
enum only checks to see if

enum only checks to see if it's listed in the database, then gives it a sip url to connect to if it exists in the db. there's no proxying out and back in. It's like a dns lookup.

I'm guessing you could run an enum server internally, but that's something i haven't set up ever.

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



SkykingOH
Posts: 3560
Member Since:
2007-12-17
Setup a trunk to yourself

Setup a SIP or IAX trunk to yourself. Use 127.0.0.1, you can do it in one trunk using the inbound and outbound settings. You may have to use the interface IP in the inbound peer settings on your trunk.

Then setup an outbound route to capture the DID's and send them to the 'loopback' trunk

--

Scott

aka "Skyking"



IcelandDreams
Posts: 229
Member Since:
2007-09-11
Brilliant! That was the

Brilliant! That was the easy way and works a treat. I setup an IAX2 trunk with the simple lines:
host=127.0.0.1
type=peer

An outbound route as Intra Company with a list of my DIDs pointing at the loopback trunk. Instantly connects to the extension and shows the internal extension # so they get used to dialing the easy way. Thanks a million!

But I'm also interested in ENUM for other uses. The test numbers work well but until today the e164.org site was unavailable. That might save some money down the line.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.