passing calls between two trunks

Discussion in 'General' started by lutz, Jun 15, 2010.

  1. lutz

    Joined:
    Jun 15, 2010
    Messages:
    2
    Likes Received:
    0
    Hi,
    I am new to this, native german so please forgive my mistakes.

    I just set up
    1. elastix with
    a. working sip-trunk (using sipgate.de in germany)
    b. working extension

    inbound / outbound works perfectly

    2. kamailio / opensips-server
    a. sip-trunk on elastix, connecting elastix with kamailio.
    b.

    now I want to configure elastix to pass incoming calls on the sipgate-trunk directly to
    the kamailio-trunk.

    goal: using the elastix system for the trunk-connection / PSTN-connection, then using kamailio for extension-provisioning.

    so, how do I set up call-routing from one trunk to the other ?

    I found something of a custom extension with a trunk as destination... but how excatly do I set that up ?
    thanks in advance
    lutz
     
  2. chito

    Joined:
    Jan 14, 2010
    Messages:
    26
    Likes Received:
    0
    What you need to do is make your sip trunk context "from-trunk-custom".
    Nest go tp your /etc/asterisk/extensions_custom.conf

    you can add these lines
    [from-trunk-custom]
    exten => _XXX!,1,Dial(sip/your-trunk-to opensips/${EXTEN})
    exten => _X!,n,Goto(from-trunk,${EXTEN},1)

    the _XXX depend on your DID number your are getting from sipgate ,

    but why do you want to use sipgate? Elastix can provision your phones perfectly.
     
  3. lutz

    Joined:
    Jun 15, 2010
    Messages:
    2
    Likes Received:
    0
    first of all thanks for the help.
    regarding your question:
    sipgate is for the first tests.
    later on I will connect the elastix installation to the PSTN using a SIP-trunk
    connecting to a TRansit-partner (providing media-gateway-functions). I am not planning on installing PRI / BRI interfaces or connections into the elastix-box.

    anyways back to the question..
    so... I need to change what trunk exactly ?
    1. trunk to sipgate
    2. trunk to kamailio

    is it possible to set up this parameters so that every DID in a certain range (ex. 123400-123455 gets passed on like that ?

    thanks again
    regards
    lutz
     

Share This Page