<div>Hi everyone,</div><div><br></div><div>I&#39;m new to FreeSWITCH. I&#39;ve managed to set up many features quite easily but I&#39;m struggling with mod_conference. I want to allow a user to create a conference and set its PIN by dialling a special number 81&lt;conference_number&gt;*&lt;pin&gt;:</div>
<div><br></div><div>&lt;extension name=&quot;initiate_conference&quot;&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;condition field=&quot;destination_number&quot; expression=&quot;^81(\d*)\*(\d*)$&quot;&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;action application=&quot;log&quot; data=&quot;INFO Creating conference $1 with PIN $2&quot;/&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;action application=&quot;answer&quot;/&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;action application=&quot;conference&quot; data=&quot;$1@default+$2&quot;/&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;/condition&gt;</div>
<div>&lt;/extension&gt;</div><div><br></div><div>Other users can dial into the same conference using a different access number, but are challenged for the PIN set by the first user:</div><div><br></div><div>&lt;extension name=&quot;join_conference&quot;&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;condition field=&quot;destination_number&quot; expression=&quot;^82(\d*)$&quot;&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;action application=&quot;answer&quot;/&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;action application=&quot;conference&quot; data=&quot;$1&quot;/&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;/condition&gt;</div>
<div>&lt;/extension&gt;</div><div><br></div><div>There is no &lt;param name=&quot;pin&quot; ...&gt; set in &lt;configuration name=&quot;conference.conf&quot;&gt;&lt;profiles&gt;&lt;profile name=&quot;default&quot;&gt;.</div>
<div><br></div><div>I was expecting &lt;action application=&quot;conference&quot; data=&quot;$1@default+$2&quot;/&gt; to create the conference and set its PIN, so that a subsequent &lt;action application=&quot;conference&quot; data=&quot;$1&quot;/&gt; would be challenged to provide the same PIN. Instead what happens is the first caller has the required PIN set for their call, but the second caller is not challenged to provide the PIN at all.</div>
<div><br></div><div>Looking at the code in mod_conference.c on git checkout v1.0.6 I see there only 2 ways conference-&gt;pin can be set: via &lt;param name=&quot;pin&quot; .../&gt; in the profile or via API &#39;conference $1 pin $2&#39;. I was expecting there would be a third way: assigning conference-&gt;pin = dpin when creating a new conference. Although I find this a bit confusing it could be by design.</div>
<div><br></div><div>I tried using the API to set the PIN after the conference has been created but I lack the knowledge to do this successfully. I&#39;ve tried:</div><div><br></div><div>* &lt;action application=&quot;set&quot; data=&quot;result=${conference($1 pin $2)}&quot;/&gt; after &lt;action application=&quot;conference&quot; data=&quot;$1@default+$2&quot;/&gt; - no actions execute after the &lt;action application=&quot;conference&quot;&gt;</div>
<div>* &lt;action application=&quot;set&quot; data=&quot;result=${conference($1 pin $2)}&quot;/&gt; before &lt;action application=&quot;conference&quot; data=&quot;$1@default+$2&quot;/&gt; - unsurprisingly, it reports conference not found</div>
<div>* &lt;action application=&quot;export&quot; data=&quot;nolocal:api_on_answer=conference $1 pin $2&quot;/&gt; - appears not to execute but it&#39;s difficult to be sure in this case</div><div><br></div><div>Thanks in advance for any help you can provide!</div>
<div><br></div><div>Best regards,</div><div>Duncan</div>