[OpenSER-Users] a c program behaves differently when called by openser than it does when called from the console.

Bontron bontron at telip.com
Wed Jul 11 13:08:42 CEST 2007


Hello,

I have this piece of code in my openser.cfg :
exec_msg("/usr/local/etc/openser/uri-folder/record '$fu' $$SIP_USER '$ft'
'additionalinfo'");
The instruction 'record' is a c program.

This is supposed to add a record in a mysql database  - new incoming call,
from caller , to called, date, and an additional info - and as the matter of
fact it almost does except that 'record' is unable to append the date. It
writes  '0000-00-00'.

The strange thing is that when the 'record' instruction is being called from
the console, the set of instructions being manually written : record
'joe at ....' etc ... it records everything including the right date and time.

Did any one face a similar situation ? Thanks in advance.

Olivier


________________________________________________
Message sent using UebiMiau 2.7.8






More information about the Users mailing list