> 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'
edson,
i noticed too that there some errors in the CMD that i sent to the list,
but i had fixed them. in the tests i have used this:
CMD="t_uac_dlg OPTIONS \"$1\" \".\" \".\" \"From: sip:[EMAIL
PROTECTED]"$'\r\n'"To: <$1>"$'\r\n'"Contact: sip:[EMAIL PROTECTED]>"$'\r\n'"\""
that results in exactly correct /tmp/cmd:
taimen:~# hexdump -c /tmp/cmd
0000000 t _ u a c _ d l g O P T I O N
0000010 S " s i p : j h @ t e s t . f
0000020 i " " . " " . " " F r o m
0000030 : s i p : d a e m o n @ t a i
0000040 m e n \r \n T o : < s i p : j h
0000050 @ t e s t . f i > \r \n C o n t a
0000060 c t : s i p : d a e m o n @ !
0000070 ! > \r \n "
what you suggest in above results in /tmp/cmd:
taimen:~# hexdump -c /tmp/cmd
0000000 t _ u a c _ d l g O P T I O N
0000010 S " s i p : j h @ t e s t . f
0000020 i " " . " " . " " F r o m
0000030 : s i p : d a e m o n @ t a i
0000040 m e n " $ ' \ r \ n ' " T o :
0000050 < s i p : j h @ t e s t . f i >
0000060 " $ ' \ r \ n ' " C o n t a c t
0000070 : s i p : d a e m o n @ ! ! >
0000080 " $ ' \ r \ n '
and
openserctl ping sip:[EMAIL PROTECTED]
never returns.
-- juha
_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel