Hello
I'm trying to send a SIP-Info via the ser fifo server. This works fine for one time, but if I want to send a second message, I have to wait a certain time or I get the following errors: ------------------------- 9(12790) ERROR: fifo_server: command must begin with :: INFO 9(12790) ERROR: fifo_server: command must have at least 3 chars 9(12790) ERROR: fifo_server: command must begin with :: To: sip:dummy@pc33.faerun.ch 9(12790) ERROR: fifo_server: command must begin with :: Content-Type: text/plain; charset=iso8859-1 9(12790) ERROR: fifo_server: command must begin with :: And this is a text again. ------------------------
i used the following skript to get the message to the fifo: ------------------------ cat > /tmp/ser_fifo <<EOF :t_uac_dlg:hh INFO sip:dummy@pc33.faerun.ch . From: sip:ser@faerun.ch To: sip:dummy@pc33.faerun.ch Contact: sip:devnull@pc38.faerun.ch Content-Type: text/plain; charset=iso8859-1 . And this is a text again. . EOF --------------------------
If the message is acceptet, everything works as expected.
Counting the lines in the script and comparing them to the errors, it looks as if the second time I tried to send the message the first line was consumed without being processed (by the last call?).
What am I doing wrong?
thanks a lot emanuel
to answer to myself:
there was no \n after the line with .\n
emanuel
On Fri, 2 Jul 2004 13:01:29 +0300 Emanuel Schmid emanuel.schmid@grob.org wrote:
Hello
I'm trying to send a SIP-Info via the ser fifo server. This works fine for one time, but if I want to send a second message, I have to wait a certain time or I get the following errors:
9(12790) ERROR: fifo_server: command must begin with :: INFO 9(12790) ERROR: fifo_server: command must have at least 3 chars 9(12790) ERROR: fifo_server: command must begin with :: To: sip:dummy@pc33.faerun.ch 9(12790) ERROR: fifo_server: command must begin with :: Content-Type: text/plain; charset=iso8859-1 9(12790) ERROR: fifo_server: command must begin with :: And this is a text again.
i used the following skript to get the message to the fifo:
cat > /tmp/ser_fifo <<EOF :t_uac_dlg:hh INFO sip:dummy@pc33.faerun.ch . From: sip:ser@faerun.ch To: sip:dummy@pc33.faerun.ch Contact: sip:devnull@pc38.faerun.ch Content-Type: text/plain; charset=iso8859-1 . And this is a text again. . EOF
If the message is acceptet, everything works as expected.
Counting the lines in the script and comparing them to the errors, it looks as if the second time I tried to send the message the first line was consumed without being processed (by the last call?).
What am I doing wrong?
thanks a lot emanuel
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers