<div dir="ltr"><div class="gmail_extra"><div class="gmail_extra">thanks a lot for this additional example. </div><div class="gmail_extra"><br></div><div class="gmail_extra">i&#39;m still a little confused if i can send this all in one command (where 9999 is door, and 100x are house phones) </div><div class="gmail_extra"><br></div><div class="gmail_extra">--&gt; originate user/9999 &amp;bridge(user/1001,user/1002,user/1003)</div><div class="gmail_extra"><br></div><div class="gmail_extra">or if i need to split this like in your example. It seems strange to say something like </div><div class="gmail_extra"><br></div><div class="gmail_extra">--&gt; originate user/9999 default XML ringall DOOR BEEL</div><div class="gmail_extra"><br></div><div class="gmail_extra">and add an extension to the dialplan like </div><div class="gmail_extra"><br></div><div class="gmail_extra">    &lt;extension name=&quot;door call&quot;&gt;</div><div class="gmail_extra">      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(9999)$&quot;&gt;</div><div class="gmail_extra"><span class="" style="white-space:pre">                </span>&lt;action application=&quot;bridge&quot; data=&quot;user/1000,user/1001,user/1002&quot;/&gt;</div><div class="gmail_extra"><br></div><div class="gmail_extra">Somehow &quot;9999&quot; does not feel like the destination_number, but what else may be the condition?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Tomorrow my Grandstream test devices will show up and i am going to experiment...</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_quote">On Mon, Dec 15, 2014 at 6:59 PM, Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div>
<font face="Monaco, Courier New"><span style="font-size:11pt">This should be fairly straight forward...<br>
<br>
Have a process monitor the GPIO pin on the RPi for the the state change of the button press probably something like have that button pull the GPIO pin low (theres tons of docs on the RPi sites for doing this)<br>
<br>
On the the process monitoring the GPIO pin can fire an originate command to freeswith<br>
Something like <br>
# originate endpoint@door default XML ringall DOOR BELL <br>
<br>
Where endpoint@door is the proper bridge string for the door’s end point<br>
default being the dialplan context and XML being the dialplan<br>
ringall being an extension destination_number in the dialplan with<br>
DOOR being the CIDName<br>
BELL being the CIDNumber<br>
<br>
Then in the dialplan just use fork dialing style of bridging... No conferencing required...<br>
<br>
&lt;action application=&quot;bridge&quot; data=&quot;user/1000,user/1001,user/1002&quot;/&gt;<br>
Notice the , in the data= string... The comma tells bridge to try each one at the same time and just connect the call to the one that answers first, the others will then be hung up on...<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 12/15/14 11:44 AM, &quot;Michael Traut&quot; &lt;<a href="http://michael.traut@gmail.com" target="_blank">michael.traut@gmail.com</a>&gt; wrote:<br>
<br>
</span></font><blockquote><font face="Monaco, Courier New"><span style="font-size:11pt">Sorry, i try to restate:<br>
<br>
Raspberry is running FS, connected are a door SIP and (many) other device in the house. Completely external to the devices and FS an event &quot;bell&quot; is generated (assume by some event on the GPIO). This should trigger FS to connect 1 Leg to the door SIP (which will answer automatically and is always a participant) and the other leg to the first in house phone to answer. The complete session is FS initiated.<br>
<br>
So i have two successful &quot;originate&quot; calls and need two connect the two ends together... a kind of &quot;two man conference invitation&quot;.<br>
<br>
Am i still obscure?<br>
</span><font size="1"><span style="font-size:9pt"><br>
&gt; To be clear, you are trying to figure out config for the client running on raspberry (using fs) or for another server?<br>
</span></font><span style="font-size:11pt">&gt;<br>
&gt; </span><font size="1"><span style="font-size:9pt">yes, you can do originate to multiple destinations, and the first one wins.  This is built in to originate.  I don&#39;t think we have any code to receive auto_answer indication, we only send it.  It would require some small code changes to add this.<br>
&gt; Mike<br>
<br>
&gt;&gt; On Dec 14, 2014, at 8:17 PM, Michael Traut &lt;<a href="http://michael.traut@gmail.com" target="_blank">michael.traut@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m trying to build a Freeswitch / Raspberry based door communication. While there are some examples for such a constellation for Asterisk, i didn&#39;t find (and was not able to invent myself so far) a Freeswitch example.<br>
&gt;&gt;<br>
&gt;&gt; The target scenario:<br>
&gt;&gt;<br>
&gt;&gt; * A SIP based door module,<br>
&gt;&gt; * 1-n Pushbuttons, one for each floor<br>
&gt;&gt; * 1-n SIP Phones per floor<br>
&gt;&gt;<br>
&gt;&gt; When a push button is pressed i want to initiate a call to the door (that will be accepted automatically) and a call to all phones on the floor. The first one to answer gets connected to the door.<br>
&gt;&gt;<br>
&gt;&gt; Is this something i can do with &quot;originate&quot; ?<br>
</span></font><span style="font-size:11pt"><br>
<hr align="CENTER" size="3" width="95%"></span></font><font><font face="Consolas, Courier New, Courier"><span style="font-size:10pt">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services: <br>
<a href="http://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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="http://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><span class=""><font color="#888888"><br>
</font></span></span></font></font></blockquote><span class=""><font color="#888888"><font><font face="Consolas, Courier New, Courier"><span style="font-size:10pt"><br>
</span></font></font><font face="Monaco, Courier New"><span style="font-size:11pt">-- <br>
Ken<br>
<font color="#0000FF"><u><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
</u></font><a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br>
Twitter: @FreeSWITCH<br>
<br>
</span></font>
</font></span></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">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></blockquote></div></div></div>