How to properly setup a trunk context?

Discussion in 'General' started by Patrick_elx, Dec 3, 2009.

  1. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    I don't know if it's new or not. Maybe I've been sleeping this last year, but I've just discovered in extensions_additional.conf that freepbx is creating a context for each of my trunk called

    [from-trunk-sip-mytrunk]
    include => from-trunk-sip-mytrunk-custom
    exten => _.,1,Set(GROUP()=OUT_14)
    exten => _.,n,Goto(from-trunk,${EXTEN},1)

    ; end of [from-trunk-sip-mytrunk]


    According to voip-info the GROUP is here for to count the number of channels per trunk to enforce the limit setup in the trunk settings.

    But so far the way I always setup my trunk was to put either context=from-trunk or context=from-mytrunk when I wanted to do specific operations (like adding a DID number).


    Would that mean that I was wrong all this time and the proper way would be to setup all trunks with

    context= from-trunk-sip[iax2]-mytrunk
    or from-trunk-sip[iax2]-mytrunk-custom if I want a special context?

    Did I miss something big in EWT despite having read it many times?
    Or is it something new in Freepbx?
     

Share This Page