[Freeswitch-users] Authenticating calls

Anthony Minessale anthmct at yahoo.com
Fri Jun 8 16:47:22 PDT 2007


Ask and you shall receive.

  <!-- Example extension for require auth per-call. -->
  <extension name="9191">
    <!-- Match the destination digits of 9191 -->
    <condition field="destination_number" expression="^9191$"/>
    <!-- Make sure the sip_authorized variable is set (set on all authed calls)
         If it isn't, then send an auth challange.
    -->
    <condition field="${sip_authorized}" expression="true">
      <anti-action application="reject" data="407"/>
    </condition>

    <!-- If you made it here all is well and the call is authed.
         Do whatever you wish.
    -->
    <condition>
      <action application="playback" data="/tmp/itworked.wav"/>
    </condition>
  </extension>

 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com
JABBER:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
pstn:213-799-1400


----- Original Message ----
From: Jason Garland <jgarland at gmail.com>
To: freeswitch-users at lists.freeswitch.org
Sent: Friday, June 8, 2007 12:25:36 PM
Subject: Re: [Freeswitch-users] Authenticating calls

I still also like the idea of an auth app that forces the call to be
authenticated.  Or maybe it could be a parameter that is passed to the
sophia channel. This would be more secure then just checking if the
user is allready registered.

On 6/8/07, Anthony Minessale <anthmct at yahoo.com> wrote:
>
> The best way to mix auth and not auth is to use
> 2 profiles so you can make one be public and one private.
> Since the private one is only for people to register it's
> not inconvenient at all to make them use 5061 instead as it's
> a 1 time setting.  Otherwise you can just use 2 ip.
> This way you can turn on full auth for the 1 profile and the other can be
> directed to a paticular public context with a limited dialplan.
>
>
>
>
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> JABBER:anthony.minessale at gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> iax:guest at conference.freeswitch.org/888
> googletalk:conf+888 at conference.freeswitch.org
> pstn:213-799-1400
>
>
> ----- Original Message ----
> From: Jason Garland <jgarland at gmail.com>
> To: freeswitch-users at lists.freeswitch.org
> Sent: Friday, June 8, 2007 10:06:25 AM
> Subject: Re: [Freeswitch-users] Authenticating calls
>
> If there was just a channel variable that told me if the call was from
> a registered user or not I think I could use that too.
>
> On 6/8/07, Anthony Minessale <anthmct at yahoo.com> wrote:
> >
> > We don't have that but it would fairly easy to add
> > a dialplan application that could trigger a challange
> > but from there you would need to have an external hook
> > ready for the user directory when the auth happened.
> >
> >
> >
> > Anthony Minessale II
> >
> > FreeSWITCH http://www.freeswitch.org/
> > ClueCon http://www.cluecon.com/
> >
> > AIM: anthm
> > MSN:anthony_minessale at hotmail.com
> > JABBER:anthony.minessale at gmail.com
> > IRC: irc.freenode.net #freeswitch
> >
> > FreeSWITCH Developer Conference
> > sip:888 at conference.freeswitch.org
> > iax:guest at conference.freeswitch.org/888
> > googletalk:conf+888 at conference.freeswitch.org
> > pstn:213-799-1400
> >
> >
> > ----- Original Message ----
> > From: Jason Garland <jgarland at gmail.com>
> > To: freeswitch-users at lists.freeswitch.org
> > Sent: Friday, June 8, 2007 8:42:02 AM
> > Subject: Re: [Freeswitch-users] Authenticating calls
> >
> > Yes. Or check a condition that will tell me if it's a registered user.
> >
> > On 6/8/07, Mike Murdock <mmurdock at coppercom.com> wrote:
> > >
> > >
> > >
> > > So you want to get an invite, look at the headers, and if it is a toll
> > call,
> > > authenticate the subscriber?
> > >
> > >
> > >  Michael Murdock
> > >  VP Operations & Development
> > >  Switchmaxx Product Line
> > >  125 N. Market. Suite 1520
> > >  Wichita KS. 67202
> > >  (316) 932-2693
> > >
> > >
> > >   -----Original Message-----
> > >  From:   Jason Garland [mailto:jgarland at gmail.com]
> > >  Sent:   Thursday, June 07, 2007 10:58 PM Eastern Standard Time
> > >  To:     freeswitch-users at lists.freeswitch.org
> > >  Subject:        [Freeswitch-users] Authenticating
> calls
> > >
> > >  Is there something I can put in the dialplan to authenticate some
> > >  calls(Toll calls), and not others?
> > >
> > >  _______________________________________________
> > >  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
> > >
> > >
> > >
> > > _______________________________________________
> > > 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
> > >
> > >
> >
> > _______________________________________________
> > 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
> >
> >
> >  ________________________________
> > Be a better Heartthrob. Get better relationship answers from someone who
> > knows.
> > Yahoo! Answers - Check it out.
> > _______________________________________________
> > 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
> >
> >
>
> _______________________________________________
> 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
>
>
>  ________________________________
> The fish are biting.
>  Get more visitors on your site using Yahoo! Search Marketing.
> _______________________________________________
> 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
>
>

_______________________________________________
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







       
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20070608/78091edf/attachment-0002.html 


More information about the FreeSWITCH-users mailing list