Problems with SIP connect (Jigasi & FreePBX integration)

Hi there,

I am trying to integrate jigasi with asterisk/pbx based on the topic

In simple “static” configuration (5) we no have dial in problem.
This scheme assumes simple dialing an extension number and connect to DEFAULT_JVB_ROOM_NAME
org.jitsi.jigasi.DEFAULT_JVB_ROOM_NAME=siptest@muc.meet.jitsi

…item #5
• Pull up a jitsi meeting via web browser , use the name: siptest
• from another registered endpoint, dial your jitsi extension (my example is 888)
• If this doesn’t work , check logs

Next, we are trying to make a scheme with dialing the conference by pin number (7-8).
The user dials the conference number, SIP header create based by this number (SIPAddHeader(Jitsi-Conference-Room:${CURL_RESULT}))

…items #8-9
FreePBX – Custom IVR
We need to be able to collect the meeting pin from callers, send that pin off to an API in order to retrieve the conference room name. Then, add the conference room name in the form of a SIP header so that Jigasi knows where we want to go.

On dial pin is successfully requested and header with the name of the conference mapped too… But I have problem dial in connect with SIP header (CHANUNAVAIL).
It seems that the system does not see where to connect with SIP header, there is no siptest problem with the connection (the extension works when siptest is used without SIP INVITE headers).


……log pbx……Jitsi-Conference-Room:test22……

[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx_builtins.c: Goto (from-trunk,74956024700,12)
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [74956024700@from-trunk:12] NoOp(“PJSIP/anonymous-00002b13”, “”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [74956024700@from-trunk:13] Set(“PJSIP/anonymous-00002b13”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [74956024700@from-trunk:14] Set(“PJSIP/anonymous-00002b13”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [74956024700@from-trunk:15] Set(“PJSIP/anonymous-00002b13”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [74956024700@from-trunk:16] Set(“PJSIP/anonymous-00002b13”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [74956024700@from-trunk:17] NoOp(“PJSIP/anonymous-00002b13”, “CallerID Entry Point”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [74956024700@from-trunk:18] Goto(“PJSIP/anonymous-00002b13”, “Jitsi-Conference-Entry,s,1”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx_builtins.c: Goto (Jitsi-Conference-Entry,s,1)
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:1] Answer(“PJSIP/anonymous-00002b13”, “”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:2] Set(“PJSIP/anonymous-00002b13”, “Jitsi=1888”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:3] Set(“PJSIP/anonymous-00002b13”, “Attempts=0”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:4] Set(“PJSIP/anonymous-00002b13”, “Attempts=1”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:5] ExecIf(“PJSIP/anonymous-00002b13”, “0?Gosub(Attempts-Error,s,1)”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:6] NoOp(“PJSIP/anonymous-00002b13”, “”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:7] Read(“PJSIP/anonymous-00002b13”, “confid,conf-getpin,10,10”) in new stack
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] app_read.c: Accepting a maximum of 10 digits.
[2021-04-20 22:26:35] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘conf-getpin.ulaw’ (language ‘ru’)
[2021-04-20 22:26:47] VERBOSE[25064][C-000015ca] app_read.c: User entered ‘104325’
[2021-04-20 22:26:47] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:8] ExecIf(“PJSIP/anonymous-00002b13”, “0?goto(Jitsi-Conference-Entry,s,4)”) in new stack
[2021-04-20 22:26:47] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:9] Playback(“PJSIP/anonymous-00002b13”, “you-entered”) in new stack
[2021-04-20 22:26:47] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘you-entered.ulaw’ (language ‘ru’)
[2021-04-20 22:26:48] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:10] SayDigits(“PJSIP/anonymous-00002b13”, “104325”) in new stack
[2021-04-20 22:26:48] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘digits/1.ulaw’ (language ‘ru’)
[2021-04-20 22:26:49] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘digits/0.ulaw’ (language ‘ru’)
[2021-04-20 22:26:49] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘digits/4.ulaw’ (language ‘ru’)
[2021-04-20 22:26:50] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘digits/3.ulaw’ (language ‘ru’)
[2021-04-20 22:26:50] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘digits/2.ulaw’ (language ‘ru’)
[2021-04-20 22:26:51] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘digits/5.ulaw’ (language ‘ru’)
[2021-04-20 22:26:51] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:11] Read(“PJSIP/anonymous-00002b13”, “digi,if-this-is-correct-press&digits/1&otherwise-press&digits/2,1,1,10”) in new stack
[2021-04-20 22:26:51] VERBOSE[25064][C-000015ca] app_read.c: Accepting a maximum of 1 digits.
[2021-04-20 22:26:51] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘if-this-is-correct-press.alaw’ (language ‘ru’)
[2021-04-20 22:26:53] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘digits/1.ulaw’ (language ‘ru’)
[2021-04-20 22:26:54] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘otherwise-press.alaw’ (language ‘ru’)
[2021-04-20 22:26:55] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘digits/2.ulaw’ (language ‘ru’)
[2021-04-20 22:26:57] VERBOSE[25064][C-000015ca] app_read.c: User entered ‘1’
[2021-04-20 22:26:57] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:12] ExecIf(“PJSIP/anonymous-00002b13”, “0?goto(Jitsi-Conference-Entry,s,4)”) in new stack
[2021-04-20 22:26:57] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:13] ExecIf(“PJSIP/anonymous-00002b13”, “1?goto(passcode)”) in new stack
[2021-04-20 22:26:57] VERBOSE[25064][C-000015ca] pbx_builtins.c: Goto (Jitsi-Conference-Entry,s,15)
[2021-04-20 22:26:57] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:15] Set(“PJSIP/anonymous-00002b13”, “CURL_RESULT=test22”) in new stack
[2021-04-20 22:26:57] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:16] Verbose(“PJSIP/anonymous-00002b13”, “0, test22”) in new stack
[2021-04-20 22:26:57] VERBOSE[25064][C-000015ca] app_verbose.c: test22
[2021-04-20 22:26:57] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:17] Read(“PJSIP/anonymous-00002b13”, “confpin,pls-enter-conf-password&vm-then-pound&vm-tocancel,6,10”) in new stack
[2021-04-20 22:26:57] VERBOSE[25064][C-000015ca] app_read.c: Accepting a maximum of 6 digits.
[2021-04-20 22:26:57] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘pls-enter-conf-password.alaw’ (language ‘ru’)
[2021-04-20 22:26:58] VERBOSE[25064][C-000015ca] app_read.c: User entered nothing.
[2021-04-20 22:26:58] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:18] Goto(“PJSIP/anonymous-00002b13”, “enterconf”) in new stack
[2021-04-20 22:26:58] VERBOSE[25064][C-000015ca] pbx_builtins.c: Goto (Jitsi-Conference-Entry,s,19)
[2021-04-20 22:26:58] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:19] SIPAddHeader(“PJSIP/anonymous-00002b13”, “Jitsi-Conference-Room:test22”) in new stack
[2021-04-20 22:26:58] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:20] SIPAddHeader(“PJSIP/anonymous-00002b13”, “Jitsi-Conference-Room-Pass:”) in new stack
[2021-04-20 22:26:58] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:21] Set(“PJSIP/anonymous-00002b13”, “CDR(userfield)=Jitsi:test22”) in new stack
[2021-04-20 22:26:58] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:22] Set(“PJSIP/anonymous-00002b13”, “__rnum=865953975”) in new stack
[2021-04-20 22:26:58] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:23] Playback(“PJSIP/anonymous-00002b13”, “vm-rec-name”) in new stack
[2021-04-20 22:26:58] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘vm-rec-name.ulaw’ (language ‘ru’)
[2021-04-20 22:27:02] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:24] Record(“PJSIP/anonymous-00002b13”, “/tmp/name-865953975.gsm,3,10”) in new stack
[2021-04-20 22:27:02] VERBOSE[25064][C-000015ca] file.c: <PJSIP/anonymous-00002b13> Playing ‘beep.ulaw’ (language ‘ru’)
[2021-04-20 22:27:06] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:25] Set(“PJSIP/anonymous-00002b13”, “SPYGROUP=1000”) in new stack
[2021-04-20 22:27:06] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:26] Dial(“PJSIP/anonymous-00002b13”, “SIP/1888,3,m(silence)A(/tmp/name-865953975)M(Jitsi-join)”) in new stack
[2021-04-20 22:27:06] WARNING[25064][C-000015ca] chan_sip.c: Purely numeric hostname (1888), and not a peer–rejecting!
[2021-04-20 22:27:06] WARNING[25064][C-000015ca] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
[2021-04-20 22:27:06] VERBOSE[25064][C-000015ca] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2021-04-20 22:27:06] VERBOSE[25064][C-000015ca] pbx.c: Executing [s@Jitsi-Conference-Entry:27] Verbose(“PJSIP/anonymous-00002b13”, "0, Contacting 1888… Status is CHANUNAVAIL ") in new stack
[2021-04-20 22:27:06] VERBOSE[25064][C-000015ca] app_verbose.c: Contacting 1888… Status is CHANUNAVAIL

How do I solve these problems?

Thank you for your attention.

Konstantin

Apparently jigasi is offline/not connected for asterisk. Check jigasi logs.