Difference between revisions of "Telephone system:Simple intercom"
(added category) |
m (todo weggehaald) |
||
Line 27: | Line 27: | ||
</pre> | </pre> | ||
− | + | Note that it only works on SIP settings, not for <abbr title="Cisco's Skinny Call Control Protocol">SCCP</abbr> phones. | |
− | |||
− | |||
[[Category:Telephony]] | [[Category:Telephony]] |
Revision as of 13:29, 19 July 2017
dialplan snippet
Upon dialing *<number>, this snippet will create a conference for the caller, and will try for 5 seconds to add the callee as <number>_intercom which is an auto-answer line 2 setup on the cisco phones containing a sip image.
<extension name="extension-intercom"> <condition field="destination_number" expression="^\*(1[09]\d\d)$" break="on-false"> <action application="set" data="dialed_extension=$1"/> <action application="sleep" data="300"/> </condition> <condition> <action application="set" data="api_hangup_hook=conference 412 kick all"/> <action application="answer"/> <action application="export" data="sip_invite_params=intercom=true"/> <action application="export" data="sip_auto_answer=true"/> <action application="set" data="conference_auto_outcall_caller_id_name=$${effective_caller_id_name}"/> <action application="set" data="conference_auto_outcall_caller_id_number=$${effective_caller_id_number}"/> <action application="set" data="conference_auto_outcall_timeout=5"/> <action application="set" data="conference_auto_outcall_flags=mute"/> <action application="conference_set_auto_outcall" data="user/${dialed_extension}_intercom@${domain_name}"/> <action application="conference" data="412@intercom"/> <!-- Shouldn't be needed --> <action application="conference" data="412 kick all"/> </condition> </extension>
Note that it only works on SIP settings, not for SCCP phones.