SARK V4.0.0 doorsnooper

From sailpbx
Revision as of 13:46, 10 September 2013 by Adminwiki (talk | contribs) (Created page with "Up a level ===Introduction=== We often get requests to repeat what is going on in a conversation at some other location. A good example is door entry whe…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Up a level

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