[Freeswitch-users] mod_conference: Any way to pass conference PIN in the URI?
Anthony Minessale
anthony.minessale at gmail.com
Tue Oct 14 14:48:48 PDT 2008
you don't have to use the pin in the conference
you can use a small script or some dialplan logic to ask for an arbitrary
pin then
comp it to the one from the header.
On Tue, Oct 14, 2008 at 4:11 PM, Joe Attardi <joe.attardi at nortel.com> wrote:
> Hi Kristian,
>
> Kristian Kielhofner wrote:
> > I'm still pretty new at this (and I'm sure there are better ways to do
> > it) but I *think* this should ask for ping 1234 unless you are coming
> > from SIP host 192.168.0.5 (at least according to the $sip_from_host,
> > presumably parsing the host portion of the From: header). Obviously
> > replace sip_from_host with a relevant SIP variable and expression with
> > whatever you want to match...
>
> I tried something similar (here is the relevant snippet from my
> default_context.xml):
>
> <context name="default">
> <extension name="4444">
> <condition field="destination_number" expression="^conf1$"
> break="on-true">
> <action application="conference" data="conf1 at 4444+12345"/>
> </condition>
> <condition field="destination_number" expression="^conf1-nopin$"
> break="on-true">
> <action application="conference" data="conf1 at 4444" />
> </condition>
> </extension>
> </context>
>
> The intent was to skip the PIN if the destination number was
> 'conf1-nopin' and require it if it was 'conf1'. This works great for the
> first person to call the conference. After that, the setting "sticks".
>
> i.e. if I call conf1-nopin, I get in without a PIN, but then others get
> in without a PIN even if they call conf1;
> and if I call conf1; I am prompted for a PIN, but then others get
> prompted for a PIN even if they call conf1-nopin.
>
> I looked through the mod_conference docs and found this as the explanation:
> http://wiki.freeswitch.org/wiki/Mod_conference#Syntax
> "The first time a conference name (confname) is used, it will be created
> on demand, and the pin will be set to what ever is specified at that
> time: the pin in the data string if specified, or if not, the "pin"
> setting in the conference profile, and if that is also unspecified, then
> there is no pin protection. Any later attempt to join the conference
> must specify the same pin number, if one existed when it was created. "
>
> So, though your suggestion was good (and I got excited when it initially
> worked!), it looks like this won't work. Does anyone else have any other
> ideas?
>
> Thanks...
>
> -- Joe
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081014/8163b0f4/attachment-0002.html
More information about the FreeSWITCH-users
mailing list