Hello,
I’m trying to set up a IVR that adds headers to the SIP connection. I’m calling extension 100 and 100 should receive an additional SIP header.
My application (jitsi) doesn’t seem to respect that header so I fired up tcpdump and analyzed it in wireshark.
I can’t seem to find the header in the packets though, am I looking in the right place?
This is how my /etc/asterisk/extensions_override_freepbx.conf looks:
[ext-local]
exten => 100,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/100/ringtimer)}" > "0"]?${DB(AMPUSER/100/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 100,n,Read(Pin,"de_DE/confbridge-pin")
exten => 100,n,Verbose(result is: ${Pin})
exten => 100,n,AGI(jitsi_curling.sh,${Pin})
exten => 100,n,Verbose(result is: ${JITSI})
exten => 100,n,SIPAddHeader(Jitsi-Conference-Room: ${JITSI})
exten => 100,n,Macro(exten-vm,novm,100,0,0,0)
exten => 100,n,(dest),Set(__PICKUPMARK=)
exten => 100,n,Goto(${IVR_CONTEXT},return,1)
exten => 100,hint,SIP/100&Custom:DND100,CustomPresence:100
The JITSI Variable does have a value, it appears in the log:
https://pastebin.freepbx.org/view/f74154c5
Could someone help me out here? Thank you in advance!