Reply To: Incoming call problem

VitalPBX Community Support General Discussion Incoming call problem Reply To: Incoming call problem

    slemoal
    Participant
    Up
    0
    Down
    I found the “bug”
    /etc/asterisk/vitalpbx/sip__50-1-trunks.conf
    [trunkxxxxx](p13)
    context=trk-1-in
    description=Trunk_sip_Sewan
    dtmfmode=rfc2833
    allow=!all,alaw,ulaw,g729
    nat=no
    host=37.97.65.78
    port=5070
    secret=ppppp
    insecure=port,invite
    defaultuser=trunkxxxxx
    remotesecret=ppppp
    fromdomain=yyyy.sewan.eu
    qualify=yes
    type=peer

    /etc/asterisk/vitalpbx/extensions__50-1-dialplan.conf

    My trunk has the context: [trk-1-in]

    [trk-1-in]
    exten => _[+*#0-9A-Za-z].,1,NoOp(Incoming call through: Trunk_sip_Sewan)
    same => n,Set(__TRUNK_ID=1)
    same => n,Set(CDR(trunk)=1)
    same => n,Set(__DID_NUMBER=${EXTEN})
    same => n,Set(CDR(did)=${EXTEN})
    same => n,Set(DID=${EXTEN})
    same => n,Set(DID=${IF($["${CHANNEL(channeltype)}"="SIP"]?${CUT(CUT(SIP_HEADER(To),@,1),:,2)}:${CUT(CUT(PJSIP_HEADER(read,To),@,1),:,2)})})
    same => n,Goto(default-trunk,${DID},1)

    if I change the first line to:
    exten => _.,1,NoOp(Incoming call through: Trunk_sip_Sewan)
    and that I reload the dialplan in CLI it works.
    The problem is that as soon as I modify in GUI it regenerates the plan of num with the problem …

    • This reply was modified 2 months ago by slemoal.
    0