<?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[checkdir passing bad variables]]></title><description><![CDATA[<p dir="auto">So I got everything working properly, but something has changed. The variables never get set for the callerid and callername anymore.</p>
<p dir="auto">I get this in my logs now when a call runs the checkdir.php.</p>
<pre><code>/fop2/checkdir.php?poptype=connect&amp;clidnum=undefined&amp;clidname=undefined&amp;exten=275&amp;fromqueue=Sales&amp;UNIQUEID=1332695254.28713
</code></pre>
<pre><code>[trix asterisk]# grep 1332695254.28713 queue_log
1332695277|1332695254.28713|1010|NONE|ENTERQUEUE||"SalesNOT FOUND" &lt;1235551212&gt;
</code></pre>
<p dir="auto">The event_log for the above example (with the phone number changed)</p>
<p dir="auto">Is there anything I should be looking for or a setting somewhere that would cause it to be "undefined"</p>
<p dir="auto">We use your call-stats, and all the callerID and callerNumbers are there perfectly fine.</p>
<p dir="auto">Our checkdir.php is your example pretty much for the variables.</p>
<pre><code>
function custom_popup($ALLVAR) {

        $clidnum   = $ALLVAR['clidnum'];
        $clidname  = $ALLVAR['clidname'];
        $fromqueue = $ALLVAR['fromqueue'];
        $exten     = $ALLVAR['exten'];
</code></pre>
]]></description><link>http://localhost:4567/topic/1099/checkdir-passing-bad-variables</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 13:08:40 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1099.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Mar 2012 18:12:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to checkdir passing bad variables on Tue, 27 Mar 2012 03:47:41 GMT]]></title><description><![CDATA[<p dir="auto">Do you have eventmemberstatus=yes in your queue configuration? Try toggling it and see if that makes a difference.</p>
]]></description><link>http://localhost:4567/post/4955</link><guid isPermaLink="true">http://localhost:4567/post/4955</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 27 Mar 2012 03:47:41 GMT</pubDate></item><item><title><![CDATA[Reply to checkdir passing bad variables on Tue, 27 Mar 2012 02:14:36 GMT]]></title><description><![CDATA[<p dir="auto">read = all<br />
write = all<br />
writetimeout = 1000<br />
eventfilter=!Event: RTCPSent<br />
eventfilter=!Event: RTCPReceived<br />
eventfilter=!Event: VarSet<br />
eventfilter=!Event: Cdr<br />
eventfilter=!Event: ExtensionStatus<br />
eventfilter=!Event: ChannelUpdate</p>
]]></description><link>http://localhost:4567/post/4954</link><guid isPermaLink="true">http://localhost:4567/post/4954</guid><dc:creator><![CDATA[chrisgg]]></dc:creator><pubDate>Tue, 27 Mar 2012 02:14:36 GMT</pubDate></item><item><title><![CDATA[Reply to checkdir passing bad variables on Tue, 27 Mar 2012 02:07:32 GMT]]></title><description><![CDATA[<p dir="auto">It is still working fine, perhaps your manager events are being filtered. Do you have "all" permissions in /etc/asterisk/manager.conf file read and write lines ?</p>
]]></description><link>http://localhost:4567/post/4953</link><guid isPermaLink="true">http://localhost:4567/post/4953</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 27 Mar 2012 02:07:32 GMT</pubDate></item><item><title><![CDATA[Reply to checkdir passing bad variables on Tue, 27 Mar 2012 01:09:46 GMT]]></title><description><![CDATA[<p dir="auto">It isn't passing it at all, the only one I see is "fromqueue" to the web client. I have pretty much given up at this point, I am no debugger, and to be honest this isnt critical enough to hire someone to look at it. The logs make no sense to me what so ever. There is no clidnum or clidname being passed anywhere. eventwhencalled is set to yes on all queues.</p>
<p dir="auto">I haven't changed anything and it used to work fine, I figured it would of been something simple. However I appreciate all your support, and I hope someone can get something out of your explanations on this in the future by reading our post here.</p>
]]></description><link>http://localhost:4567/post/4952</link><guid isPermaLink="true">http://localhost:4567/post/4952</guid><dc:creator><![CDATA[chrisgg]]></dc:creator><pubDate>Tue, 27 Mar 2012 01:09:46 GMT</pubDate></item><item><title><![CDATA[Reply to checkdir passing bad variables on Mon, 26 Mar 2012 21:59:51 GMT]]></title><description><![CDATA[<p dir="auto">I forgot about this, sorry. The callerid number and name are set prior to that event, it could be set on:</p>
<p dir="auto">Event: Newstate<br />
With Ringing state</p>
<p dir="auto">or the Event: MemberStatus<br />
if you have eventmemberstatus=yes in the queue configuration.</p>
<p dir="auto">And some other situations, a Link event, a Callerid event, etc. So, inspect a little bit up your log and look for those, when the callerid is set, the callerid. If you set debug level to 15 ( -x 15 ), you will see the commands sent to the web client, look for the commands clidnum and clidname that are passed, and then the manager event just above those.</p>
]]></description><link>http://localhost:4567/post/4951</link><guid isPermaLink="true">http://localhost:4567/post/4951</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 26 Mar 2012 21:59:51 GMT</pubDate></item><item><title><![CDATA[Reply to checkdir passing bad variables on Mon, 26 Mar 2012 20:59:39 GMT]]></title><description><![CDATA[<p dir="auto">The variable doesn't even exist in the AgentConnect, its set in the AgentCalled though.</p>
<p dir="auto">Sorry I guess I really don't know how its being passed since its not in that Event. I don't know, we have a ringall system in place if that makes any difference. So it rings all channels, until someone picks it up.</p>
<p dir="auto">Can you explain more on this new option you mentioned? eventwhencalled=vars</p>
<pre><code>127.0.0.1       &lt;- Event: NewCallerid
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- Channel: SIP/xxxxxxx-xxx
127.0.0.1       &lt;- CallerIDNum: 1235551212
127.0.0.1       &lt;- CallerIDName: SalesNOT FOUND
127.0.0.1       &lt;- Uniqueid: 1332788687.31688
127.0.0.1       &lt;- CID-CallingPres: 0 (Presentation Allowed, Not Screened)
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: AgentCalled
127.0.0.1       &lt;- Privilege: agent,all
127.0.0.1       &lt;- Queue: 1010
127.0.0.1       &lt;- AgentCalled: Local/275@from-internal/n
127.0.0.1       &lt;- AgentName: Local/275@from-internal/n
127.0.0.1       &lt;- ChannelCalling: SIP/xxxxxxxx-xxx
127.0.0.1       &lt;- DestinationChannel: Local/275@from-internal-9301;1
127.0.0.1       &lt;- CallerIDNum: 1235551212
127.0.0.1       &lt;- CallerIDName: SalesNOT FOUND
127.0.0.1       &lt;- Context: ext-queues
127.0.0.1       &lt;- Extension: 1010
127.0.0.1       &lt;- Priority: 19
127.0.0.1       &lt;- Uniqueid: 1332788687.31688
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: AgentConnect
127.0.0.1       &lt;- Privilege: agent,all
127.0.0.1       &lt;- Queue: 1010
127.0.0.1       &lt;- Uniqueid: 1332788687.31688
127.0.0.1       &lt;- Channel: Local/275@from-internal-9301;1
127.0.0.1       &lt;- Member: Local/275@from-internal/n
127.0.0.1       &lt;- MemberName: Local/275@from-internal/n
127.0.0.1       &lt;- Holdtime: 105
127.0.0.1       &lt;- BridgedChannel: 1332788805.31785
127.0.0.1       &lt;- Ringtime: 6
127.0.0.1       &lt;- Server: 0

</code></pre>
]]></description><link>http://localhost:4567/post/4950</link><guid isPermaLink="true">http://localhost:4567/post/4950</guid><dc:creator><![CDATA[chrisgg]]></dc:creator><pubDate>Mon, 26 Mar 2012 20:59:39 GMT</pubDate></item><item><title><![CDATA[Reply to checkdir passing bad variables on Mon, 26 Mar 2012 12:05:51 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You might want to check the manager debug to see what callerid and name are passed to the AgentConnect event. I have just tested it locally and callerid is passed fine, also the new option to pass variables (eventwhencalled=vars) works ok too.</p>
<p dir="auto">So, start fop2_server in manager debug mode:</p>
<pre><code>service fop2 stop
cd /usr/local/fop2
script capture.log
./fop2_server -X 3
</code></pre>
<p dir="auto">(do your calls, wait for an agent to be connected to a call then stop the session)</p>
<pre><code>ctrl-C
exit
</code></pre>
<p dir="auto">Inspect the capture.log, search for AgentConnect and check the data there.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/4949</link><guid isPermaLink="true">http://localhost:4567/post/4949</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 26 Mar 2012 12:05:51 GMT</pubDate></item></channel></rss>