<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:12pt">Ask and you shall receive.<br><br>&nbsp; &lt;!-- Example extension for require auth per-call. --&gt;<br>&nbsp; &lt;extension name="9191"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;!-- Match the destination digits of 9191 --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^9191$"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;!-- Make sure the sip_authorized variable is set (set on all authed calls)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If it isn't, then send an auth challange.<br>&nbsp;&nbsp;&nbsp; --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field="${sip_authorized}" expression="true"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;anti-action application="reject" data="407"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;!-- If you made it here all is well and the call is
 authed.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do whatever you wish.<br>&nbsp;&nbsp;&nbsp; --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="playback" data="/tmp/itworked.wav"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp; &lt;/extension&gt;<br><br><div>&nbsp;</div><div>Anthony Minessale II<br><br><span>FreeSWITCH <a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a></span><br><span>ClueCon <a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a></span><br><br>AIM: anthm<br>MSN:anthony_minessale@hotmail.com<br>JABBER:anthony.minessale@gmail.com<br>IRC: irc.freenode.net #freeswitch</div><div><br>FreeSWITCH Developer Conference<br>sip:888@conference.freeswitch.org<br>iax:guest@conference.freeswitch.org/888<br>googletalk:conf+888@conference.freeswitch.org<br>pstn:213-799-1400</div><div style="font-family: courier,monaco,monospace,sans-serif;
 font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Jason Garland &lt;jgarland@gmail.com&gt;<br>To: freeswitch-users@lists.freeswitch.org<br>Sent: Friday, June 8, 2007 12:25:36 PM<br>Subject: Re: [Freeswitch-users] Authenticating calls<br><br><div>I still also like the idea of an auth app that forces the call to be<br>authenticated.&nbsp;&nbsp;Or maybe it could be a parameter that is passed to the<br>sophia channel. This would be more secure then just checking if the<br>user is allready registered.<br><br>On 6/8/07, Anthony Minessale &lt;anthmct@yahoo.com&gt; wrote:<br>&gt;<br>&gt; The best way to mix auth and not auth is to use<br>&gt; 2 profiles so you can make one be public and one private.<br>&gt; Since the private one is only for people to register it's<br>&gt; not inconvenient at all to make them use 5061 instead as it's<br>&gt; a 1 time setting.&nbsp;&nbsp;Otherwise you can
 just use 2 ip.<br>&gt; This way you can turn on full auth for the 1 profile and the other can be<br>&gt; directed to a paticular public context with a limited dialplan.<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Anthony Minessale II<br>&gt;<br>&gt; FreeSWITCH <a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>&gt; ClueCon <a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>&gt;<br>&gt; AIM: anthm<br>&gt; MSN:anthony_minessale@hotmail.com<br>&gt; JABBER:anthony.minessale@gmail.com<br>&gt; IRC: irc.freenode.net #freeswitch<br>&gt;<br>&gt; FreeSWITCH Developer Conference<br>&gt; sip:888@conference.freeswitch.org<br>&gt; iax:guest@conference.freeswitch.org/888<br>&gt; googletalk:conf+888@conference.freeswitch.org<br>&gt; pstn:213-799-1400<br>&gt;<br>&gt;<br>&gt; ----- Original Message ----<br>&gt; From: Jason Garland &lt;jgarland@gmail.com&gt;<br>&gt; To: freeswitch-users@lists.freeswitch.org<br>&gt; Sent: Friday,
 June 8, 2007 10:06:25 AM<br>&gt; Subject: Re: [Freeswitch-users] Authenticating calls<br>&gt;<br>&gt; If there was just a channel variable that told me if the call was from<br>&gt; a registered user or not I think I could use that too.<br>&gt;<br>&gt; On 6/8/07, Anthony Minessale &lt;anthmct@yahoo.com&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; We don't have that but it would fairly easy to add<br>&gt; &gt; a dialplan application that could trigger a challange<br>&gt; &gt; but from there you would need to have an external hook<br>&gt; &gt; ready for the user directory when the auth happened.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Anthony Minessale II<br>&gt; &gt;<br>&gt; &gt; FreeSWITCH <a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>&gt; &gt; ClueCon <a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>&gt; &gt;<br>&gt; &gt; AIM: anthm<br>&gt; &gt; MSN:anthony_minessale@hotmail.com<br>&gt; &gt;
 JABBER:anthony.minessale@gmail.com<br>&gt; &gt; IRC: irc.freenode.net #freeswitch<br>&gt; &gt;<br>&gt; &gt; FreeSWITCH Developer Conference<br>&gt; &gt; sip:888@conference.freeswitch.org<br>&gt; &gt; iax:guest@conference.freeswitch.org/888<br>&gt; &gt; googletalk:conf+888@conference.freeswitch.org<br>&gt; &gt; pstn:213-799-1400<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ----- Original Message ----<br>&gt; &gt; From: Jason Garland &lt;jgarland@gmail.com&gt;<br>&gt; &gt; To: freeswitch-users@lists.freeswitch.org<br>&gt; &gt; Sent: Friday, June 8, 2007 8:42:02 AM<br>&gt; &gt; Subject: Re: [Freeswitch-users] Authenticating calls<br>&gt; &gt;<br>&gt; &gt; Yes. Or check a condition that will tell me if it's a registered user.<br>&gt; &gt;<br>&gt; &gt; On 6/8/07, Mike Murdock &lt;mmurdock@coppercom.com&gt; wrote:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; So you want to get an invite, look at the headers, and if it is a toll<br>&gt; &gt; call,<br>&gt;
 &gt; &gt; authenticate the subscriber?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;Michael Murdock<br>&gt; &gt; &gt;&nbsp;&nbsp;VP Operations &amp; Development<br>&gt; &gt; &gt;&nbsp;&nbsp;Switchmaxx Product Line<br>&gt; &gt; &gt;&nbsp;&nbsp;125 N. Market. Suite 1520<br>&gt; &gt; &gt;&nbsp;&nbsp;Wichita KS. 67202<br>&gt; &gt; &gt;&nbsp;&nbsp;(316) 932-2693<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; -----Original Message-----<br>&gt; &gt; &gt;&nbsp;&nbsp;From:&nbsp;&nbsp; Jason Garland [mailto:jgarland@gmail.com]<br>&gt; &gt; &gt;&nbsp;&nbsp;Sent:&nbsp;&nbsp; Thursday, June 07, 2007 10:58 PM Eastern Standard Time<br>&gt; &gt; &gt;&nbsp;&nbsp;To:&nbsp;&nbsp;&nbsp;&nbsp; freeswitch-users@lists.freeswitch.org<br>&gt; &gt; &gt;&nbsp;&nbsp;Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Freeswitch-users] Authenticating<br>&gt; calls<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;Is there something I can put in the dialplan to
 authenticate some<br>&gt; &gt; &gt;&nbsp;&nbsp;calls(Toll calls), and not others?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;_______________________________________________<br>&gt; &gt; &gt;&nbsp;&nbsp;Freeswitch-users mailing list<br>&gt; &gt; &gt;&nbsp;&nbsp;Freeswitch-users@lists.freeswitch.org<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; <a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; &gt; &gt;&nbsp;&nbsp;<a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; Freeswitch-users mailing list<br>&gt;
 &gt; &gt; Freeswitch-users@lists.freeswitch.org<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; <a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; &gt; &gt; <a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Freeswitch-users mailing list<br>&gt; &gt; Freeswitch-users@lists.freeswitch.org<br>&gt; &gt;<br>&gt; <a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; &gt;<br>&gt; UNSUBSCRIBE:<a target="_blank"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; &gt; <a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;________________________________<br>&gt; &gt; Be a better Heartthrob. Get better relationship answers from someone who<br>&gt; &gt; knows.<br>&gt; &gt; Yahoo! Answers - Check it out.<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Freeswitch-users mailing list<br>&gt; &gt; Freeswitch-users@lists.freeswitch.org<br>&gt; &gt;<br>&gt; <a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; &gt;<br>&gt; UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt;
 &gt; <a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Freeswitch-users mailing list<br>&gt; Freeswitch-users@lists.freeswitch.org<br>&gt; <a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; <a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;________________________________<br>&gt; The fish are biting.<br>&gt;&nbsp;&nbsp;Get more visitors on your site using Yahoo! Search Marketing.<br>&gt; _______________________________________________<br>&gt; Freeswitch-users mailing list<br>&gt;
 Freeswitch-users@lists.freeswitch.org<br>&gt; <a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; <a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>&gt;<br>&gt;<br><br>_______________________________________________<br>Freeswitch-users mailing list<br>Freeswitch-users@lists.freeswitch.org<br><a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a target="_blank"
 href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></div><br></div></div><br>
      <hr size=1>Boardwalk for $500? In 2007? Ha! <br><a href="http://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow">Play Monopoly Here and Now</a> (it's updated for today's economy) at Yahoo! Games.</body></html>