Skip to main content

Alert-Info for click to call?

Posted by antme on Fri, 04/22/2016

I would like to add Alert-Info for the click to call so that my polycom phones can auto pickup the call to not have to pick the call up myself. Please let me know if this is possible.

Thanks,


Submitted by antme on Fri, 08/19/2016 Permalink

Since I never got back on this I went ahead and did it myself. I have documented all changes and I'm sharing it in case anyone else would like this feature as well. The file to modify is /etc/asterisk/scripts.include

Modifications are in bold

;;; CHECK VM IF CALLING FROM THE SAME EXTENSION
exten => s,1,GotoIf($["${TL_ORIGINATE_SPECIAL}" = "1"]?**set_options_originate**)
exten => s,n,GotoIf($["${CALLERID(num)}" != "${DIALED_NUMBER}"]?set_options)
exten => s,n,GotoIf($["${CALLFWD}" != ""]?set_options)
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n,VoiceMailMain(${ARG2})
exten => s,n,Wait(1)
exten => s,n,Hangup

**exten => s,n(set_options_originate),SIPAddHeader(Alert-Info: )**
exten => s,n(set_options),Set(OPTIONS=rtT)

exten => s,n,Macro(tl-set-myvariables)