[Freeswitch-users] Lua problem digits limit error

Thomas Hoellriegel admin at blindi.net
Fri Aug 10 03:44:17 MSD 2012


Hi guys, i like to define a counter
my script:
nummer_pointer  = argv[1];
api         = freeswitch.API();
msg_pointerdb = api:execute("hash", "select/mailbox_pointer_msg/msg");
  if msg_pointerdb == "nil" then
msg_pointerdb_add = api:execute("hash", 
"insert/mailbox_pointer_msg/msg/1");
elseif msg_pointerdb > 200  then
print(msg_pointerdb)
   else
msg_pointerdb = api:execute("hash", "select/mailbox_pointer_msg/msg"  )
pointer  =  msg_pointerdb  + nummer_pointer
  msg_pointerdb_add = api:execute("hash", "insert/mailbox_pointer_msg/msg/"
  ..pointer )
end

I become the error:
2012-08-10 01:41:35.499182 [ERR] mod_lua.cpp:198 
/usr/local/freeswitch/scripts/t
est-elseif.lua:6: attempt to compare number with string

what is wrong please?
thanks.


m

---------------
Du kannst mich jederzeit kostenlos per Festnetz erreichen unter:
http://www.blindi.net/callback
homepage: http://www.blindi.net
blinde-misc mailingliste für blinde. anmeldung unter:
http://www.blindi.net/mailman/listinfo/blinde-misc


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list