checkdir passing bad variables
So I got everything working properly, but something has changed. The variables never get set for the callerid and callername anymore.
I get this in my logs now when a call runs the checkdir.php.
Is there anything I should be looking for or a setting somewhere that would cause it to be "undefined"
We use your call-stats, and all the callerID and callerNumbers are there perfectly fine.
Our checkdir.php is your example pretty much for the variables.
I get this in my logs now when a call runs the checkdir.php.
/fop2/checkdir.php?poptype=connect&clidnum=undefined&clidname=undefined&exten=275&fromqueue=Sales&UNIQUEID=1332695254.28713
[trix asterisk]# grep 1332695254.28713 queue_log
1332695277|1332695254.28713|1010|NONE|ENTERQUEUE||"SalesNOT FOUND" <1235551212>
The event_log for the above example (with the phone number changed)Is there anything I should be looking for or a setting somewhere that would cause it to be "undefined"
We use your call-stats, and all the callerID and callerNumbers are there perfectly fine.
Our checkdir.php is your example pretty much for the variables.
function custom_popup($ALLVAR) {
$clidnum = $ALLVAR['clidnum'];
$clidname = $ALLVAR['clidname'];
$fromqueue = $ALLVAR['fromqueue'];
$exten = $ALLVAR['exten'];
Comments
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.
So, start fop2_server in manager debug mode:
(do your calls, wait for an agent to be connected to a call then stop the session)
Inspect the capture.log, search for AgentConnect and check the data there.
Best regards,
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.
Can you explain more on this new option you mentioned? eventwhencalled=vars
Event: Newstate
With Ringing state
or the Event: MemberStatus
if you have eventmemberstatus=yes in the queue configuration.
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.
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.
write = all
writetimeout = 1000
eventfilter=!Event: RTCPSent
eventfilter=!Event: RTCPReceived
eventfilter=!Event: VarSet
eventfilter=!Event: Cdr
eventfilter=!Event: ExtensionStatus
eventfilter=!Event: ChannelUpdate