Hi Nils!
Le mar 18/02/2003 à 16:56, Nils Ohlmeier a écrit :
Hard to say without seeing the config file. But '-E' as command line parameter should work and will overwrite any value in your config file.
Here it is (the HelloWorld.cfg):
<snip> log_stderror=yes route[0] { log("Hello World!"); } </snip>
Here is the SIP message I send to SER:
<snip> INVITE sip:alice@127.0.0.1 SIP/2.0 Via: SIP/2.0/UDP 127.0.0.1:5070 To: Alice sip:alice@localhost From: Me sip:me@localhost Call-ID:123456789@127.0.0.1 CSeq: 1 INVITE Content-Length: 0 </snip>
Here is the answer I get from SER:
<snip> SIP/2.0 404 Not Found Via: SIP/2.0/UDP 127.0.0.1:5070 To: Alice sip:alice@localhost;tag=d907c037823644515dfe0ede38ca9976.de25 From: Me sip:me@localhost Call-ID:123456789@127.0.0.1 CSeq: 1 INVITE Server: Sip EXpress router (0.8.10 (i386/linux)) Content-Length: 0 Warning: 392 127.0.0.1:5060 "Noisy feedback tells: pid=9995 req_src_ip=127.0.0.1 in_uri=sip:alice@127.0.0.1 out_uri=sip:alice@127.0.0.1 via_cnt==1" </snip>
And here is what I get from SER in stdout/stderr:
<snip> $ ser -E HelloWorld.cfg Listening on 127.0.0.1 [127.0.0.1]::5060 172.25.49.134 [172.25.49.134]::5060 Aliases: XXX.alcatel.fr:5060 localhost:5060 localhost.localdomain:5060 XXX:5060 </snip>
And from /var/log/messages
<snip> Feb 18 17:33:21 frilld0030711 ser[9994]: INFO: udp_init: SO_RCVBUF is initially 65535 Feb 18 17:33:21 frilld0030711 ser[9994]: INFO: udp_init: SO_RCVBUF is finally 131070 Feb 18 17:33:21 frilld0030711 ser[9994]: INFO: udp_init: SO_RCVBUF is initially 65535 Feb 18 17:33:21 frilld0030711 ser[9994]: INFO: udp_init: SO_RCVBUF is finally 131070 Feb 18 17:33:21 frilld0030711 ser[10003]: INFO: fifo process starting: 10003 Feb 18 17:33:21 frilld0030711 ser[10003]: SER: open_uac_fifo: fifo server up at /tmp/ser_fifo... </snip>
So there is sadly no "HelloWorld!" somewhere... would it be because of the "404 not found" error I get ?
TIA,
-- Sebastien
On Tuesday 18 February 2003 17:46, Sebastien Pierre wrote:
<snip> log_stderror=yes route[0] { log("Hello World!"); } </snip>
log only prints if the debug value is set to a minimum which i just not remeber. I think 3 or 4 should do it.
<snip> $ ser -E HelloWorld.cfg
I dont know how ser reacts on this, but this should be: ser -E -f HelloWorld.cfg
Regards Nils
At 05:46 PM 2/18/2003, Sebastien Pierre wrote:
So there is sadly no "HelloWorld!" somewhere... would it be because of the "404 not found" error I get ?
You may wish to consult user documentation, which describes use of the log action.
http://www.iptel.org/ser/doc/seruser-html/x1063.html
Unless level is explicitely set, log logs at level 4, which is higher than default log threshold. Use log(1, "hello world");
-Jiri