[Freeswitch-users] Excluding busy extensions from intercom

Rob Hutton justlikeef at gmail.com
Mon Dec 19 10:17:11 MSK 2011


I am trying to get a basic "All Page" setup working and have used the wiki and example configs to put together the following dialplan:

    <extension name="main_number_10" continue="true">
      <condition field="destination_number" expression="^\*40$">        
        <action application="set" data="api_hangup_hook=conference 40 kick all"/>
        <action application="answer"/>
        <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="set" data="conference_auto_outcall_prefix={sip_auto_answer=true}"/>
        <action application="set" data="sip_exclude_contact=${presence_id}"/> 
        <action application="conference_set_auto_outcall" data="user/115@$${location_1}"/>
        <action application="conference_set_auto_outcall" data="user/100@$${location_1}"/>
        <action application="conference_set_auto_outcall" data="user/warehouse@$${location_1}"/>
        <action application="conference" data="40 at conference_2"/>
        <action application="conference" data="40 kick all"/>
        </condition>
    </extension>

Everything works as expected, except that intercom forces any active calls to hold, and likewise forces the originating call on hold.

Is there a way of excluding any active users?

I have tried both ${network_addr} and ${presence_id} in the sip_exclude_contact variable, and neither causes the orginator to be excluded.

Console log is here:
http://pastebin.freeswitch.org/18022
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111219/28aef67c/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list