Reply To: Custom Context

VitalPBX Community Support Reporting an Issue Custom Context Reply To: Custom Context

    AR
    Participant
    Up
    0
    Down
    [root@phone ~]# cd /etc/asterisk/vitalpbx/
    [root@phone vitalpbx]# mv extension__30008-dialplan.conf extensions__30008-dialplan.conf
    [root@phone vitalpbx]# asterisk -x”core reload”
    [root@phone vitalpbx]# asterisk -x”dialplan show Jitsi-Conference-Entry”
    [ Context ‘Jitsi-Conference-Entry’ created by ‘pbx_config’ ]
    ‘s’ => 1. Answer() [extensions__30008-dialplan.conf:2967]
    2. Set(Jitsi=30008) [extensions__30008-dialplan.conf:2969]
    3. Set(Attempts=0) [extensions__30008-dialplan.conf:2971]
    4. Set(Attempts=${MATH(${Attempts}+1,i)}) [extensions__30008-dialplan.conf:2972]
    5. ExecIf($[“${Attempts}” = “4”]?Gosub(Attempts-Error,s,1)) [extensions__30008-dialplan.conf:2974]
    [begin] 6. NooP() [extensions__30008-dialplan.conf:2975]
    7. Read(confid,conf-getpin,10,,,10) [extensions__30008-dialplan.conf:2978]
    8. ExecIf($[“${confid}”=””]?goto(Jitsi-Conference-Entry,s,4)) [extensions__30008-dialplan.conf:2980]
    9. Playback(you-entered) [extensions__30008-dialplan.conf:2982]
    10. SayDigits(${confid}) [extensions__30008-dialplan.conf:2983]
    11. Read(digi,if-this-is-correct-press&digits/1&otherwise-press&digits/2,1,,1,10) [extensions__30008-dialplan.conf:2985]
    12. ExecIf($[“${digi}”=””]?goto(Jitsi-Conference-Entry,s,4)) [extensions__30008-dialplan.conf:2987]
    13. ExecIf($[“${digi}”=”1″]?goto(passcode)) [extensions__30008-dialplan.conf:2989]
    14. goto(Jitsi-Conference-Entry,s,begin) [extensions__30008-dialplan.conf:2991]
    [passcode] 15. Set(CURL_RESULT=${SHELL(curl –silent https://jitsi-api.jitsi.net/conferenceMapper?id=${confid} | sed -e ‘s/.*”conference”:”\(. *\)@.*/\1/’)}) [extensions__30008-dialplan.conf:2993]
    16. Verbose(0, ${CURL_RESULT}) [extensions__30008-dialplan.conf:2994]
    17. Read(confpin,pls-enter-conf-password&vm-then-pound&vm-tocancel,6,,,10) [extensions__30008-dialplan.conf:2998]
    18. goto(enterconf) [extensions__30008-dialplan.conf:3001]
    [enterconf] 19. SIPAddHeader(Jitsi-Conference-Room:${CURL_RESULT}) [extensions__30008-dialplan.conf:3003]
    20. SIPAddHeader(Jitsi-Conference-Room-Pass:${confpin}) [extensions__30008-dialplan.conf:3004]
    21. Set(CDR(userfield)=Jitsi:${CURL_RESULT}) [extensions__30008-dialplan.conf:3007]
    22. Set(__rnum=${RAND()}) [extensions__30008-dialplan.conf:3009]
    23. Playback(vm-rec-name) [extensions__30008-dialplan.conf:3010]
    24. Record(/tmp/name-${rnum}.gsm,3,10) [extensions__30008-dialplan.conf:3011]
    25. Set(SPYGROUP=1000) [extensions__30008-dialplan.conf:3013]
    26. Dial(SIP/${Jitsi},3,m(silence)A(/tmp/name-${rnum})M(Jitsi-join)) [extensions__30008-dialplan.conf:3016]
    27. Verbose(0, Contacting ${Jitsi}… Status is ${DIALSTATUS} ) [extensions__30008-dialplan.conf:3017]
    28. GotoIf($[“${DIALSTATUS}” = “BUSY”]?unknown) [extensions__30008-dialplan.conf:3019]
    29. GotoIf($[“${DIALSTATUS}” = “NOANSWER”]?conf-busy) [extensions__30008-dialplan.conf:3020]
    30. GotoIf($[“${DIALSTATUS}” = “CANCEL”]?unknown) [extensions__30008-dialplan.conf:3021]
    31. GotoIf($[“${DIALSTATUS}” = “CONGESTION”]?unknown) [extensions__30008-dialplan.conf:3022]
    32. GotoIf($[“${DIALSTATUS}” = “CHANUNAVAIL”]?unknown) [extensions__30008-dialplan.conf:3023]
    33. GotoIf($[“${DIALSTATUS}” = “DONTCALL”]?unknown) [extensions__30008-dialplan.conf:3024]
    34. GotoIf($[“${DIALSTATUS}” = “TORTURE”]?unknown) [extensions__30008-dialplan.conf:3025]
    35. GotoIf($[“${DIALSTATUS}” = “INVALIDARGS”]?unknown) [extensions__30008-dialplan.conf:3026]
    36. Hangup() [extensions__30008-dialplan.conf:3028]
    [unknown] 37. playback(please-contact-tech-supt&vm-goodbye) [extensions__30008-dialplan.conf:3031]
    38. Hangup() [extensions__30008-dialplan.conf:3032]
    [conf-busy] 39. Playback(conf-waitforleader) [extensions__30008-dialplan.conf:3036]
    40. Dial(SIP/${Jitsi},120,m(default)A(/tmp/name-${rnum})M(Jitsi-join)) [extensions__30008-dialplan.conf:3038]
    41. Hangup() [extensions__30008-dialplan.conf:3039]

    -= 1 extension (41 priorities) in 1 context. =-
    [root@phone vitalpbx]#

    0