<p>Ya and seven is working on that a bit. If we build some momentum we can get it working.</p>
<div class="gmail_quote">On Jul 27, 2012 5:24 AM, "Gerald Weber" <<a href="mailto:gerald.weber@besharp.at">gerald.weber@besharp.at</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" lang="DE-AT" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Wow,cool idea to test the leds this way !<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">But my goal is a different:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I need a way to tell a snom phone to pickup or hangup a call using a (agent) webinterface.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">With PhonerLite this is easy, just send uuid_phone_event uuid talk and you are done, but snom doesn’t accept a NOTIFY talk event.<u></u><u></u></span></p>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">They offer a way to simulate a keypress using http requests (e.g. „/command.htm?key=ENTER“ ). My idea is to patch this functionality into mod_snom.<u></u><u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The other way:<u></u><u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Let uuid_phone_event decide what to send by looking up the user_agent in the sip_registration table.<u></u><u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">(I dont like this one, because this means i have to patch every phone specific handling into the core. But it would be a nicer way for me to build my webinterface.)<u></u><u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">gw<u></u><u></u></span></pre>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">Von:</span></b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>Im Auftrag von </b>William King<br>
<b>Gesendet:</b> Freitag, 27. Juli 2012 08:54<br><b>An:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br><b>Betreff:</b> Re: [Freeswitch-users] HTTP Request from within the core<u></u><u></u></span></p>
</div></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">It sounds like you might be doing something similar to what mod_snom started with. I've worked heavily with phone automation and I would be curious which phones you're working with and your experiences with them. <br>
<br>Here's an example I was working on to automate the testing of Polycom BLF lights and call scenarios: <a href="http://imgur.com/a/9JfcR" target="_blank">http://imgur.com/a/9JfcR</a><br><br><br><u></u><u></u></p><pre>
William King<u></u><u></u></pre><pre>Senior Engineer<u></u><u></u></pre><pre>Quentus Technologies, INC<u></u><u></u></pre><pre>1037 NE 65th St Suite 273<u></u><u></u></pre><pre>Seattle, WA 98115<u></u><u></u></pre><pre>Main: <a href="tel:%28877%29%20211-9337" value="+18772119337" target="_blank">(877) 211-9337</a><u></u><u></u></pre>
<pre>Office: <a href="tel:%28206%29%20388-4772" value="+12063884772" target="_blank">(206) 388-4772</a><u></u><u></u></pre><pre>Cell: <a href="tel:%28253%29%20686-5518" value="+12536865518" target="_blank">(253) 686-5518</a><u></u><u></u></pre>
<pre><a href="mailto:william.king@quentustech.com" target="_blank">william.king@quentustech.com</a> <u></u><u></u></pre><p class="MsoNormal"><br>On 07/25/2012 06:47 AM, Gerald Weber wrote: <u></u><u></u></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thats it, muchas gracias !</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>] <b>Im Auftrag von </b>Brian Foster<br>
<b>Gesendet:</b> Mittwoch, 25. Juli 2012 15:10<br><b>An:</b> FreeSWITCH Users Help<br><b>Betreff:</b> Re: [Freeswitch-users] HTTP Request from within the core</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p>
<p>sofia_contact might be what you are looking for. <u></u><u></u></p><p>Brian Foster<br>Endigo Computer LLC<u></u><u></u></p><p>Sent from a mobile device.<u></u><u></u></p><div><p class="MsoNormal">On Jul 25, 2012 9:04 AM, "Gerald Weber" <<a href="mailto:gerald.weber@besharp.at" target="_blank">gerald.weber@besharp.at</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks, looks very easy to implement.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Just on more question:</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I need to get the IP address of a registered user.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">E.g. user/2000 is a SNOM with ip 192.168.20.219</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I guess a query against the registrations table ist the fastest way to do this ?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Or is there any core api command ? </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>Im Auftrag von </b>Avi Marcus<br>
<b>Gesendet:</b> Mittwoch, 25. Juli 2012 14:26<br><b>An:</b> FreeSWITCH Users Help<br><b>Betreff:</b> Re: [Freeswitch-users] HTTP Request from within the core</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p>
<div><p class="MsoNormal">You can use the API for curl or just check how the codebase for curl works:<u></u><u></u></p><div><p class="MsoNormal"><a href="http://wiki.freeswitch.org/wiki/Mod_curl" target="_blank">http://wiki.freeswitch.org/wiki/Mod_curl</a> -- src/mod/applications/mod_curl/<u></u><u></u></p>
</div><div><p class="MsoNormal">Or look at <a href="http://wiki.freeswitch.org/wiki/Mod_http_cache" target="_blank">http://wiki.freeswitch.org/wiki/Mod_http_cache</a> -- src/mod/applications/mod_http_cache/<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">-Avi<u></u><u></u></p></div></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>Join Us At ClueCon - Aug 7-9, 2012<br><br>FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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><u></u><u></u></p>
</div><p class="MsoNormal"><br><br><br><u></u><u></u></p><pre>_________________________________________________________________________<u></u><u></u></pre><pre>Professional FreeSWITCH Consulting Services:<u></u><u></u></pre>
<pre><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><u></u><u></u></pre><pre><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><u></u><u></u></pre>
<pre><u></u> <u></u></pre><pre>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<u></u><u></u></pre><pre><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><u></u><u></u></pre><pre><u></u> <u></u></pre>
<pre>Official FreeSWITCH Sites<u></u><u></u></pre><pre><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><u></u><u></u></pre><pre><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><u></u><u></u></pre>
<pre><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><u></u><u></u></pre><pre><u></u> <u></u></pre><pre>Join Us At ClueCon - Aug 7-9, 2012<u></u><u></u></pre><pre><u></u> <u></u></pre><pre>FreeSWITCH-users mailing list<u></u><u></u></pre>
<pre><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><u></u><u></u></pre><pre><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><u></u><u></u></pre>
<pre>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><u></u><u></u></pre><pre><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><u></u><u></u></pre>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<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>
<br></blockquote></div>