Hey,
i have this below in my dialplan:
exten => 666,1,NoOp()
same => n,Progress()
same => n,Originate(PJSIP/6001,exten,default,777,1,,aC(ulaw,alaw,h264)c(6000)n(Doorbell))
same => n,Originate(PJSIP/6002,exten,default,777,1,,aC(ulaw,alaw,h264)c(6000)n(Doorbell))
same => n,Originate(PJSIP/6003,exten,default,777,1,,aC(ulaw,alaw,h264)c(6000)n(Doorbell))
same => n,Originate(Local/doorbell@default,exten,default,888,1,,aC(ulaw,alaw,h264)c(6000)n(Doorbell))
same => n,ConfBridge(1,myconferenceroom,default_user)
exten => 777,1,NoOp()
same => n,Set(CHANNEL(hangup_handler_push)=finish_confbridge,s,1(args));
same => n,ConfBridge(1,myconferenceroom,admin_user)
exten => 888,1,NoOp()
same => n,Set(CHANNEL(hangup_handler_push)=finish_confbridge,s,1(args));
same => n,ConfBridge(1,myconferenceroom,default_user)
exten => doorbell,1,Answer()
same => n,RTSP-SIP(rtsp://admin:Password01@192.168.0.70:554/Streaming/Channels/102,0,Hikvision,5060)
[finish_confbridge]
exten => s,1,System(/usr/sbin/asterisk -rx "confbridge kick 1 all")
same=>n,Return()
In my confbridge i have:
[admin_user]
type=user
marked=yes
wait_marked=no
end_marked=yes
admin=yes
music_on_hold_when_empty=yes
quiet=yes
[default_user]
type=user
marked=yes
wait_marked=yes
end_marked=yes
admin=no
music_on_hold_when_empty=yes
quiet=yes
[myconferenceroom]
type=bridge
max_members=10
video_mode=first_marked
What i want, if i call 666 => Local/doorbell_rtsp@from-internal-custom => schould be called, as default_user = OK
What i want, if i call 666 => 6001 => should be called as admin_user = OK
What i also want
Video_mode = first_marked => i always need video from the Local/doorbell_rtsp@from-internal-custom in the conf, not other users => OK
But whats not working, and what i also want, 6001 is the admin user, if 6001 leaves the Confbridge, the conference should be stopped and quited…
If i setup marked=no in the default_user properties, if 6001 leaves, the conference is stopped, but then i dont see the video…
I cant find an option to always set video to the rtsp user? i only have options like follow_talker, last_marked, first_marked in the confbridge properties? Those options are working, but marked users are not kicked out the conference , so the confbridge never quits