Reply To: Incoming call problem

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

    slemoal
    Participant
    Up
    0
    Down
    After several tries with Rodrigo (again thank you for your time) the problem comes from the rule: “_ [+ * # 0-9A-Za-z].” which does not match needing at least 2 characters.
    Excluding after analysis of the traces we only receive the “s” the DID being subsequently retrieved in the TO field

    The workaround is as follows:

    nano /etc/asterisk/vitalpbx/extensions__50-1-dialplan_custom.conf

    add dialplan

    [trk-1-in-custom]
    exten => _.,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_HEADE$
    same => n,Goto(default-trunk,${DID},1)

    put the rights

    chmod +x /etc/asterisk/vitalpbx/extensions__50-1-dialplan_custom.conf

    In the advanced tab of the trunk, Custom Settings

    type=peers
    parameter= context 
    value= trk-1-in-custom

    This procedure must be valid for all SIP operators which indicate the DID in the TO field (like OVH)

    en français:

    Apres plusieurs essai avec Rodrigo (encore merci pour votre temps) le probleme vient bien de la règle: “_[+*#0-9A-Za-z].” qui ne matche pas ayant besoin de 2 caractères minimum.
    Hors après analyse des trace nous ne recevons que le “s” le DID étant récupéré par la suite dans le champs TO

    La solution de contournement est la suivante:

    créer un fichier custom

    nano /etc/asterisk/vitalpbx/extensions__50-1-dialplan_custom.conf

    Ajouter le dialplan ci-dessous

    [trk-1-in-custom]
    exten => _.,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_HEADE$
    same => n,Goto(default-trunk,${DID},1)

    Mettre les droits d’exécution

    chmod +x /etc/asterisk/vitalpbx/extensions__50-1-dialplan_custom.conf

     

    Dans l’onglet avancé du trunk, Custom Settings

    type=peers
    parameter= context 
    value= trk-1-in-custom

    Cette procédure doit être valable pour tout les opérateurs SIP qui indique le DID dans le champs TO (comme OVH)

    0