PBXes » English » Miscellaneous » Inbound route - DID-based? 1 Votes - Average Rating: 5.00 1 Votes - Average Rating: 5.00 1 Votes - Average Rating: 5.00 1 Votes - Average Rating: 5.00 1 Votes - Average Rating: 5.00
Print Page | Recommend to Friend | Add Thread to Favorites
Post New Thread Post Reply
Author
Post « Previous Thread | Next Thread »
den
Grünschnabel


Registration Date: 14.05.2014
Posts: 3

Inbound route - DID-based? Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information Go to the top of this page

I'm getting calls to multiple DIDs via the same trunk.
When configuring inbound routes, there is no place to specify the DID - so how do I match an internal destination to an external DID?
This is a common thing with FreePBX, but can't find how to do this in PBXes.Org....

Thanks,

Yahel.

-- It's been weeks - nobody have an answer? I'm on Soho account!
PBXes is of no use to us if we cant route calls based on multiple DID over the same trunk.

-- I can totally understand how small companies like PBXes.Org must externalize all costs, including support, and pass it on to the community - that being said, if weeks go by and nobody answers my questions, how likely am I to continue and pay? Being forced to purchase support is not okay, when I can't even get the basic initial setup working, and when there's no clear indication that my setup is even supported. I'm not going to pay for support, only to be told that it can't be done (although it's a basic elementary feature - so I expect it does exist in SoHo or more costly plans, which I have no problem paying for, if it works).

This post has been edited 2 time(s), it was last edited by den on 21.01.2015 at 18:21.

22.12.2014 05:47 denovo is offline Search for Posts by denovo Add denovo to your Buddy List
eco
Premium Account


Registration Date: 05.12.2008
Posts: 16

(Solved) Inbound route - DID-based? Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information Go to the top of this page

I have a same problem, on PBXes Premium account, we have a SIP trunk receiving calls for 11 DID.

I did a SIP trace: our DID provider sends the called number in the "To" SIP INVITE header:

To: <sip:[email protected]>

Now I configured a single SIP trunk with the main number, that is registered just fine.

Then I've added an inbound route to an extension with the trunk name: the extension rings to any of the 11 DID.

To route the call depending of what number is called, I would probably need to create 11 incoming routes with the name of the trunk, but I don't see a field "called ID", is there a special syntax like using a suffix to the trunk name?

Solution

You need to edit the `extension.conf` file, context `ext-did` in Source View, which require a Premium or Pro account.


[ext-did]
; Generated by the web interface inbound routing
exten => 41376543210,1,SetVar(FROM_DID=41376543210)
exten => 41376543210,2,SetVar(FAX_RX=disabled)
exten => 41376543210,3,Goto(ext-local,200,1)

exten => 41376543211,1,SetVar(FROM_DID=41376543211)
exten => 41376543211,2,SetVar(FAX_RX=disabled)
exten => 41376543211,3,Goto(ext-local,201,1)

exten => 41376543212,1,SetVar(FROM_DID=41376543212)
exten => 41376543212,2,SetVar(FAX_RX=disabled)
exten => 41376543212,3,Goto(ext-local,201,1)

; Custom routing for DID trunk
exten => TrunkName,1,Set(original_did=${CUT(CUT(SIP_HEADER(To),@,1),:,2)})
exten => TrunkName,2,GotoIf($["${original_did}" = "41376543210"]?41376543210,1:TrunkName,3)
exten => TrunkName,3,GotoIf($["${original_did}" = "41376543211"]?41376543211,1:TrunkName,4)
exten => TrunkName,4,GotoIf($["${original_did}" = "41376543212"]?41376543212,1:TrunkName,5)
exten => TrunkName,5,Hangup

This post has been edited 3 time(s), it was last edited by eco on 06.11.2024 at 15:28.

05.11.2024 15:05 ecodev is offline Search for Posts by ecodev Add ecodev to your Buddy List
 
Post New Thread Post Reply
Go to:

Powered by Burning Board Lite 1.0.2 © 2001-2004 WoltLab GmbH
English Translation by Satelk