Hello,
looks like, perhaps we should import the style of examples/ctd.sh . It
is not exposed to shell interpretation and won't have to worry about
adding extra escapes to quotes.
Cheers,
Daniel
On 08/24/07 12:15, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
> what do you get in log messages (running with higher debug level)?
with command
> > RET=`$CTLCMD t_uac_dlg OPTIONS "$1" "." "." "From: sip:[EMAIL PROTECTED]:
<$1>\r\nContact: <sip:[EMAIL PROTECTED]>\r\n" \
> > | head -1 `
looks like From, To and Contact are parsed as separate parameters:
Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node
<> ; val <OPTIONS>
Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node
<> ; val <sip:192.98.101.10>
Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node
<> ; val <.>
Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node
<> ; val <.>
Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node
<> ; val <From: sip:[EMAIL PROTECTED]>
Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node
<> ; val <To: <sip:192.98.101.10>>
Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node
<> ; val <Contact: <sip:[EMAIL PROTECTED]>>
Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree:
end of input tree
Aug 24 12:09:35 localhost /usr/sbin/openser[9573]:
DEBUG:mi_fifo:mi_fifo_server: done parsing the mi tree
Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: INFO:mi_fifo:mi_fifo_server:
command empty
Aug 24 12:09:35 localhost /usr/sbin/openser[9573]:
DEBUG:mi_fifo:mi_fifo_server: entered consume
perhaps some escaping of " chars is needed to that openser gets the
headers as a single parameter.
-- juha
_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel