Inbound routes: How to route different trunks?

Discussion in 'General' started by maxregware, Sep 17, 2009.

  1. maxregware

    Joined:
    Sep 17, 2009
    Messages:
    2
    Likes Received:
    0
    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
     
  2. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    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.
     
  3. maxregware

    Joined:
    Sep 17, 2009
    Messages:
    2
    Likes Received:
    0
    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
     

Share This Page