Conference set auto outcall

From FreeSWITCH Wiki
Jump to: navigation, search

Use conference_set_auto_outcall to have mod_conference call one or more endpoints when a conference starts. To have it call more than one endpoint, just repeat the conference_set_auto_outcall action in the dialplan.


<action application="conference_set_auto_outcall" data="dialstring"/>


Here is an example of using conference_set_auto_outcall with some of the other conference_auto_outcall_* parameters to start a conference when someone dials 12345. Extensions 1000 and 1001 will be dialed when the conference starts.

   <extension name="Demonstrate conference_set_auto_outcall">
     <condition field="destination_number" expression="^(12345)$">
       <action application="answer"/>
       <action application="set" data="conference_auto_outcall_timeout=5"/>
       <action application="set" data="conference_auto_outcall_flags=none"/>
       <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_profile=default"/>
       <action application="conference_set_auto_outcall" data="user/1000@$${domain}"/>
       <action application="conference_set_auto_outcall" data="user/1001@$${domain}"/>
       <action application="conference" data="$1@default"/>
Nota Bene

If you want, you can also autocall multiple destination at once, just remember to escape your variables if you have more than one or any non-escaped chars in it.

       <action application="conference_set_auto_outcall" data="['var1=a,var2=b']user/1001@$${domain},['var1=c,var2=d']user/1002@$${domain}"/>


See Also

See Conferencing and Intercom for an example of using all this to page via multiple extensions.

See conference for details on initiating conferences.