context in IAX2 connections

Discussion in 'General' started by ericng, Aug 10, 2009.

  1. ericng

    Joined:
    May 14, 2008
    Messages:
    78
    Likes Received:
    0
    I am having IAX2 connection to connect two Elastix servers via the following:

    Server 1:
    host=192.168.1.28 // @IP server 2
    type=friend
    qualify=yes
    context=dnid-custom3



    Server 2:
    host=192.168.1.38 // @IP server 1
    type=friend
    qualify=yes
    context=dnid-custom3


    How can I make sure that calls redirected from server 1 to server 2 will go through a predefined context as I need to set some global variable in server 2 to enable Asterisk Desktop Manager to utilise that variable.


    Thanks and Regards,

    Eric
     
  2. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    As far I can see you are using context dnid-custom3. Calls are going to use that context when they get into the PBX.

    Regards,

    RAfael
     

Share This Page