Skip to main content

DID is bad when passing call downstream

Posted by bup413 on Sat, 08/22/2009

I am using MTE primarily as a hosted PBX solution for my customers, however I have a couple running PIAF (PBX In A Flash) as CPE. So Aastra IP Telephone registers to PIAF locally. PIAF has a trunk setup to the MTE. All that has been working fine and when a call comes in MTE forwards it on via an "Inbound Route: Goto User Extension" on the CPE side the calls come in to an inbound route that rings a ring group. OK, that is all fine, or so I thought.

One customer wanted to add another DID so I said sure and did so. Problem is when I created a new inbound route on the CPE for the 4135551212 DID the error recordings started, after looking at the CLI during the call what I found was the DID= looks like DID=4135551212-TENANT so the inbound route could not match and route the call properly.

How can I get MTE to only send the DID and not the TENANT part? can I clone a script and strip TENANT out for those customers running CPE?

I figure I am missing something obvious but can't seem to find where TENANT is added on to the DID. Any help is appreciated.

-Adam


Submitted by eeman on Sat, 08/22/2009 Permalink

thats not your problem, your trying to Dial(SIP/4135551212-TENANT) (how dial user extension works)

you should be Dial(SIP/4135551212-TENANT/1234569876) (how you send calls with DID to another server), another acceptable format is Dial(SIP/1234569876@4135551212-TENANT)

dont worry about tenant name, thats just the registered user, as long as you pass the DID after the channel name it should work fine...

I dial SIP/SOMENAME/${EXTEN} all the time.

you're biggest problem that you are going to have is actually placing outbound calls with MTE. Its not designed to be a switch, its a pbx. So your customer will send an outbound call, and its going to overwrite the callerid based on the tenant default value... you think things work great. Then suddenly a customer asks you to let him set his own outbound callerid, now you have to stop using tl-dialout-base entirely and write your own custom thing.

If you've read my posts you've probably realized by now how I advocate a gateway box in front of MTE. This is another example where you could simply send those calls directly to their PBIAF server instead of adding call load to your MTE server.

Submitted by bup413 on Sun, 08/23/2009 Permalink

We started small and simple and are growing nicely and do acknowledge we are not ideally configured yet. MTE was a move to get there, but only a step.

What would you recommend for a gateway setup / config?

-Adam