Thanks for a quick reply Nerd Uno. I am pasting here the call progress on asterisk CLI. There is a line there that says user entered '12345' . So does not look like DTMF problem. However, I noticed that in another line following it says EMPNAME=''..so it is not picking up the value entered. I checkd asterisk -rx "core show functions like ODBC", and it show no matches..I have all the Func_odbc.conf, odbc.conf, res_odbc.conf and odbc.ini files in place as they should.
== Parsing '/etc/asterisk/asterisk.conf': Found
Connected to Asterisk 1.4.21.2 currently running on pbx (pid = 3225)
Verbosity is at least 3
-- Executing [222@from-internal:1] Answer("SIP/510-08614da8", "") in new stack
-- Executing [222@from-internal:2] Wait("SIP/510-08614da8", "2") in new stack
-- Executing [222@from-internal:3] Flite("SIP/510-08614da8", ""Please enter the 5 digit employee number."") in new stack
== Parsing '/etc/asterisk/flite.conf': Found
-- <SIP/510-08614da8> Playing '/tmp/flite_buf_o2003h' (language 'en')
-- Executing [222@from-internal:4] Read("SIP/510-08614da8", "EMPNUM|beep|5") in new stack
-- Accepting a maximum of 5 digits.
-- <SIP/510-08614da8> Playing 'beep' (language 'en')
-- User entered '12345'
-- Executing [222@from-internal:5] NoOp("SIP/510-08614da8", "EMPNUM: 12345") in new stack
-- Executing [222@from-internal:6] Set("SIP/510-08614da8", "EMPNAME=") in new stack
-- Executing [222@from-internal:7] GotoIf("SIP/510-08614da8", "1?notfound") in new stack
-- Goto (from-internal,222,11)
-- Executing [222@from-internal:11] Flite("SIP/510-08614da8", ""No such employee on file. Good bye."") in new stack
== Parsing '/etc/asterisk/flite.conf': Found
-- <SIP/510-08614da8> Playing '/tmp/flite_buf_w28WIB' (language 'en')
-- Executing [222@from-internal:12] Hangup("SIP/510-08614da8", "") in new stack
== Spawn extension (from-internal, 222, 12) exited non-zero on 'SIP/510-08614da8'
-- Executing [h@from-internal:1] Macro("SIP/510-08614da8", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/510-08614da8", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/510-08614da8", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/510-08614da8", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/510-08614da8", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/510-08614da8", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/510-08614da8", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/510-08614da8' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/510-08614da8'
pbx*CLI>