[OpenSER-Devel] openserctl ping
Edson
4lists at gmail.com
Fri Aug 24 21:50:09 CEST 2007
Hi Juha...
I have a closer look on the command string and finded that many '\' where
missed.
If What You want is to send a string like:
t_uac_dlg OPTIONS "" "." "." "From: sip:daemon@"$'\r\n'"To:
<>"$'\r\n'"Contact: sip:daemon@!!>"$'\r\n'
Then You should change it's definition to:
CMD="t_uac_dlg OPTIONS \"$1\" \".\" \".\" \"From:
sip:daemon@$myhost\"$'\r\n'\"To: <$1>\"$'\r\n'\"Contact:
sip:daemon@!!>\"$'\r\n'"
And not:
CMD="t_uac_dlg OPTIONS \"$1\" \".\" \".\" \"From:
sip:daemon@$myhost"$'\r\n'"To: <$1>"$'\r\n'"Contact: sip:daemon@!!>"$'\r\n'
And please, keep the RET definition that I sended You... ;)
If this didn't give You the desired output, I also give up... ;)
Edson
>-----Original Message-----
>From: Juha Heinanen [mailto:jh at tutpro.com]
>Sent: sexta-feira, 24 de agosto de 2007 16:39
>To: Edson
>Cc: daniel at voice-system.ro; devel at openser.org
>Subject: RE: [OpenSER-Devel] openserctl ping
>
>Edson writes:
>
> > Please try:
> > RET="$($CTLCMD "$CMD" | head -1)"
>
>edson,
>
>that gives
>
>Aug 24 22:31:58 localhost /usr/sbin/openser[10726]:
>ERROR:mi_fifo:get_reply_filename: forbidden filename: jh at test.fi" "." "."
>"From: sip:daemon at taimen
>
>perhaps it is best to give up with bash.
>
>-- juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openser.org/pipermail/devel/attachments/20070824/3b7af414/attachment.htm
More information about the Devel
mailing list