SARK V4.0.0 doorsnooper
Introduction
We often get requests to repeat what is going on in a conversation at some other location. A good example is door entry where the customer wants the door entry conversation to be broadcast over an overhead speaker or at some other phone. This is the code we use to do it, it requires a little custom app to be coded in SARK
Create an app and call it dialsnoop with a span of internal. Here is the annotated app - you can just cut and paste it in and then change the extension numbers and conference room number to suit your site.
; 4444 is the extension that the doorphone will dial. 401 is the overhead speaker - ; you can freely change these to suit your site exten=>4444,1,Originate(SIP/401,exten,dialsnoop) ; sip/403 is the dialled phone or ring group exten=>4444,n,Dial(SIP/403,20,G(dialsnoop,s,101)) ; Turn it into a ring group like this ; Dial(SIP/403&SIP/404&SIP/405,20,G(dialsnoop,s,101)) ; this will fetch the overhead speaker into conference room 301 in listen mode - : you can change the room to whatever you like ; but change it for all 3 MeetMe commands in the app exten=>s,1,MeetMe(301,1mqx) : This is where the caller at the door will arrive exten=>s,101,MeetMe(301,Fqx) ; this is where whoever picks the call up will arrive so connect them to the ; conf room as Master so when they hang up all will hang up exten=>s,102,MeetMe(301,AFqx) ; end of the app
Without the annotation the app is only 5 lines of code. Basically what happens is that when a caller presses the door entry button, the system will ring one or more phones and wait for one to answer. Once the call is answered, the caller, the calle and the overhead repeater (or another phone) are all dumped into a conference room. The caller and callee are unaware of this; to them it just sounds like a normal call. However, the overhead will monitor the conversation so that others can hear, When the callee hangs up, all three calls will end (because the callee is the master, or tagged, user in the conference). The overhead repeater joins the conference in listen-only mode and it must be set to auto-answer so that when we send it the invite it will join the call.