<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FOP2 monitoring for asterisk plain (USERDEVICE MODE)]]></title><description><![CDATA[<p dir="auto">Hi FOP2,</p>
<p dir="auto">Today i know how astdb working on userdevice mode, i can see script agi user_login_out and i think we can change the script using shell script and execute the script on dialplan asterisk</p>
<p dir="auto">Here  is the small script example :</p>
<p dir="auto">LOGIN<br />
asterisk -rx "database put DEVICE/${DEVICE} user ${USER}"<br />
asterisk -rx "database put AMPUSER/${USER} device ${DEVICE}"<br />
asterisk -rx "dialplan add extension ${USER},hint,SIP/${DEVICE} into ext-local"<br />
exten =&gt; s,n,UserEvent(UserDeviceAdded,Action: UserEvent,Data: ${USER},${DEVICE})</p>
<p dir="auto">LOGOUT<br />
asterisk -rx "database del AMPUSER ${USER}/device"<br />
asterisk -rx "database put DEVICE/${DEVICE} user none"<br />
asterisk -rx "dialplan remove extension ${USER}@ext-local hint"<br />
exten =&gt; s,n,UserEvent(UserDeviceRemoved,Action: UserEvent,Data: ${USER},${DEVICE})</p>
<p dir="auto">And variable "database show" we can set on asterisk using CLI database put/del etc</p>
<p dir="auto">/AMPUSER/${USER}/device  : 4001<br />
/DEVICE/${DEVICE}/user 	: 100</p>
<p dir="auto">etc....</p>
<p dir="auto">My Question are :</p>
<p dir="auto">What should i do on fop2 configuration to support userdevice mode on asterisk plain?</p>
<p dir="auto">I only need fop2 monitoring  GREEN color if i run command Login, GREY if run script LOGOUT and RED if i call out from device.</p>
<p dir="auto">Thanks</p>
]]></description><link>http://localhost:4567/topic/2400/fop2-monitoring-for-asterisk-plain-userdevice-mode</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 06:25:24 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/2400.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Nov 2016 18:25:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FOP2 monitoring for asterisk plain (USERDEVICE MODE) on Tue, 22 Nov 2016 13:57:01 GMT]]></title><description><![CDATA[<p dir="auto">Go to the fop2 manager, configuration and set startNotRegistered to true</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/10498</link><guid isPermaLink="true">http://localhost:4567/post/10498</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 22 Nov 2016 13:57:01 GMT</pubDate></item><item><title><![CDATA[Reply to FOP2 monitoring for asterisk plain (USERDEVICE MODE) on Mon, 21 Nov 2016 22:50:03 GMT]]></title><description><![CDATA[<p dir="auto">Dear FOP2 Team,</p>
<p dir="auto">I try to explore userdevice mode on asterisk plain.</p>
<p dir="auto">USER    : 2000<br />
DEVICE : 100</p>
<p dir="auto">Here is my config on <strong>fop2.cfg</strong></p>
<p dir="auto">user=2000:2000:dial::configonreload<br />
buttonfile=buttons.cfg</p>
<hr />
<p dir="auto">** buttons.cfg**</p>
<p dir="auto">[USER/2000]<br />
type=extension<br />
extension=2000<br />
label=2000<br />
context=from-internal<br />
autoanswerheader=__SIPADDHEADER51=Call-Info=answer-after=0.001</p>
<p dir="auto">After i restart fop2 and then login from <a href="http://ip/fop2" rel="nofollow ugc">http://ip/fop2</a> , user : 2000, password : 2000, it show <strong>green</strong> color (see pic on attachment fop2_box_green.png),  in normal state (using freepbx), before not success login from xlite/softphone by  press *11 it should be "GRAY" color</p>
<p dir="auto">Here is i my config (asterisk)</p>
<p dir="auto">sip.<strong>conf</strong></p>
<p dir="auto">[general]<br />
#include sip_general_additional.conf<br />
[authentication]</p>
<p dir="auto">[100]<br />
deny=0.0.0.0/0.0.0.0<br />
secret=100@password<br />
dtmfmode=rfc2833<br />
canreinvite=no<br />
context=from-internal<br />
host=dynamic<br />
trustrpid=yes<br />
sendrpid=no<br />
type=friend<br />
nat=no<br />
port=5060<br />
qualify=yes<br />
qualifyfreq=60<br />
transport=udp<br />
avpf=no<br />
icesupport=no<br />
encryption=no<br />
callgroup=<br />
pickupgroup=<br />
dial=SIP/100<br />
mailbox=100@device<br />
permit=0.0.0.0/0.0.0.0<br />
callerid=100 &lt;100&gt;<br />
callcounter=yes<br />
faxdetect=no<br />
cc_monitor_policy=generic</p>
<hr />
<p dir="auto"><strong>extensions.conf</strong></p>
<p dir="auto">[general]<br />
static = yes<br />
writeprotect = no<br />
autofallthrough = yes<br />
clearglobalvars = no</p>
<p dir="auto">[globals]</p>
<p dir="auto">[from-internal]<br />
exten =&gt; 2000,hint,SIP/100</p>
<hr />
<p dir="auto">asterisk -rx "database show"</p>
<p dir="auto">/AMPUSER/2000/device                              : 100<br />
/AMPUSER/2000/password                            : 2000<br />
/DEVICE/100/dial                                  : SIP/100<br />
/DEVICE/100/type                                  : adhoc<br />
/DEVICE/100/user                                  : 2000<br />
/SIP/Registry/100                                 : 27.111.XX.XX:36698:300<img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f4af.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--100" style="height:1.4em;width:auto;vertical-align:middle" title=":100:" alt="💯" />sip:100@27.111.XX.XX:36698;rinstance=55805cdce59f495c</p>
<p dir="auto"><strong>[root@cls asterisk]# asterisk  -rx "core show hints"</strong></p>
<pre><code>-= Registered Asterisk Dial Plan Hints =-
               2000@from-internal       : SIP/100               State:Idle            Watchers  0
</code></pre>
<hr />
<ul>
<li>1 hints registered</li>
</ul>
<p dir="auto">Pls help me to solve this issue so i can using userdevice mode on asterisk plain.</p>
<p dir="auto">Thanks</p>
]]></description><link>http://localhost:4567/post/10497</link><guid isPermaLink="true">http://localhost:4567/post/10497</guid><dc:creator><![CDATA[moses]]></dc:creator><pubDate>Mon, 21 Nov 2016 22:50:03 GMT</pubDate></item><item><title><![CDATA[Reply to FOP2 monitoring for asterisk plain (USERDEVICE MODE) on Fri, 18 Nov 2016 14:04:53 GMT]]></title><description><![CDATA[<p dir="auto">FOP2 users are configured with USER/xxx buttons, while devices are congigured with SIP/xxx (or whatever other tech they use).</p>
<p dir="auto">So, in the button configuration on FOP2 you  must have</p>
<p dir="auto">[USER/100]<br />
type=extension<br />
extension=100<br />
Label=Mary<br />
...</p>
<p dir="auto">At startup the ASTDB will be quieried to perform the device mapping with the user, and then UserEvents will be read to dynamically change that mapping.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/10496</link><guid isPermaLink="true">http://localhost:4567/post/10496</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Fri, 18 Nov 2016 14:04:53 GMT</pubDate></item></channel></rss>