Inbound routes: How to route different trunks?

maxregware

Joined
Sep 17, 2009
Messages
2
Likes
0
Points
0
#1
Hi everyone!

How can I route (Inbound routes) the calls from different trunks that do NOT send any DID or CLID?

My trunks (one SPA400 device, the other a VoIP provider) both show the Source "Anonymous" and the CLID "unknown" in the FreePBX Reports.
Internal extensions always show the correct information.

Since they are separate trunks I guess there should be a way independent of DID or CID info.
Maybe using contexts?

Thanks for any help.
Max

Elastix 1.5.2
FreePBX 2.6
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#2
yes, in your trunk setup, instead of putting context=from-trunk, replace it by context=from-trunkA and context=from-trunkB

In extensions_custom.conf add these two contexts with something like:

[from-trunkA]
exten => _.,1,Goto(from-trunk,DIDnumber,1)

where you can replace DIDnumber by the DID number/name or whatever else you want.
That will be the name/number of the DID you can use to create an inbound route.


Another option:
You can also check is see that if you add at the end of the register string for the trunk "/DIDnumber", if the provider does not send this DIDnumber when you receive a call.
 

maxregware

Joined
Sep 17, 2009
Messages
2
Likes
0
Points
0
#3
Hi Patrick_elx,

The DIDnumber in the end of the register string produced no effect.

But the use of different contexts worked nicely!

Thank you very much.

K++;

Max
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,901
Messages
130,885
Members
17,561
Latest member
marouen
Top