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:[EMAIL PROTECTED]>"$'\r\n'

 

Then You should change it's definition to:

CMD="t_uac_dlg OPTIONS \"$1\" \".\" \".\" \"From:
sip:[EMAIL PROTECTED]"$'\r\n'\"To: <$1>\"$'\r\n'\"Contact:
sip:[EMAIL PROTECTED]>\"$'\r\n'"

And not:

CMD="t_uac_dlg OPTIONS \"$1\" \".\" \".\" \"From:
sip:[EMAIL PROTECTED]"$'\r\n'"To: <$1>"$'\r\n'"Contact: sip:[EMAIL 
PROTECTED]>"$'\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:[EMAIL PROTECTED]

>Sent: sexta-feira, 24 de agosto de 2007 16:39

>To: Edson

>Cc: [EMAIL PROTECTED]; [email protected]

>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: [EMAIL PROTECTED]" "." 
>"."

>"From: sip:[EMAIL PROTECTED]

> 

>perhaps it is best to give up with bash.

> 

>-- juha

_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to