Thanks for responding Michael. Do you have any hints for getting started with implementing PIN security in the dialplan? I can see how a PIN could be prompted for and gathered but I can't see how to "attach" a PIN to a conference.<div>
<br></div><div>Best regards,</div><div>Duncan</div><div><br><br><div class="gmail_quote">On 29 March 2011 16:37, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This is one of those cases where the devs tried very hard not to force<br>
feed specific functionality onto the user. The bottom line here is<br>
that the devs consider mod_conference's primary function to be that of<br>
getting channels into a conference, muxing the audio, etc. Things like<br>
PINs and security, etc. can all be handled in the dialplan. This is,<br>
indeed, by design. Instead of forcing the security into mod_conference<br>
itself we let the FS implementor decide how he/she wants to perform<br>
security functions. One advantage to doing all the security in the<br>
dialplan is that you have a lot of power and flexibility: you do<br>
security however YOU feel is best.<br>
<br>
I believe that if you start viewing PINs and security/privacy from the<br>
perspective that they are functions of the dialplan instead of<br>
functions of mod_conference then you will be able to solve your<br>
problem much easier.<br>
<br>
-MC<br>
<div><div></div><div class="h5"><br>
On Tue, Mar 29, 2011 at 4:17 AM, Duncan Pierce <<a href="mailto:duncan.pierce@gmail.com">duncan.pierce@gmail.com</a>> wrote:<br>
> Hi everyone,<br>
> I'm new to FreeSWITCH. I've managed to set up many features quite easily but<br>
> I'm struggling with mod_conference. I want to allow a user to create a<br>
> conference and set its PIN by dialling a special number<br>
> 81<conference_number>*<pin>:<br>
> <extension name="initiate_conference"><br>
> <condition field="destination_number" expression="^81(\d*)\*(\d*)$"><br>
> <action application="log" data="INFO Creating conference $1 with PIN $2"/><br>
> <action application="answer"/><br>
> <action application="conference" data="$1@default+$2"/><br>
> </condition><br>
> </extension><br>
> Other users can dial into the same conference using a different access<br>
> number, but are challenged for the PIN set by the first user:<br>
> <extension name="join_conference"><br>
> <condition field="destination_number" expression="^82(\d*)$"><br>
> <action application="answer"/><br>
> <action application="conference" data="$1"/><br>
> </condition><br>
> </extension><br>
> There is no <param name="pin" ...> set in <configuration<br>
> name="conference.conf"><profiles><profile name="default">.<br>
> I was expecting <action application="conference" data="$1@default+$2"/> to<br>
> create the conference and set its PIN, so that a subsequent <action<br>
> application="conference" data="$1"/> would be challenged to provide the same<br>
> PIN. Instead what happens is the first caller has the required PIN set for<br>
> their call, but the second caller is not challenged to provide the PIN at<br>
> all.<br>
> Looking at the code in mod_conference.c on git checkout v1.0.6 I see there<br>
> only 2 ways conference->pin can be set: via <param name="pin" .../> in the<br>
> profile or via API 'conference $1 pin $2'. I was expecting there would be a<br>
> third way: assigning conference->pin = dpin when creating a new conference.<br>
> Although I find this a bit confusing it could be by design.<br>
> I tried using the API to set the PIN after the conference has been created<br>
> but I lack the knowledge to do this successfully. I've tried:<br>
> * <action application="set" data="result=${conference($1 pin $2)}"/> after<br>
> <action application="conference" data="$1@default+$2"/> - no actions execute<br>
> after the <action application="conference"><br>
> * <action application="set" data="result=${conference($1 pin $2)}"/> before<br>
> <action application="conference" data="$1@default+$2"/> - unsurprisingly, it<br>
> reports conference not found<br>
> * <action application="export" data="nolocal:api_on_answer=conference $1 pin<br>
> $2"/> - appears not to execute but it's difficult to be sure in this case<br>
> Thanks in advance for any help you can provide!<br>
> Best regards,<br>
> Duncan<br>
</div></div>> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Duncan Pierce<br><a href="http://duncanpierce.org">duncanpierce.org</a><br>
</div>