[Serusers] SER logging (and the mighty HelloWorld.cfg)

Sebastien Pierre sebastien.pierre at sxb.bsf.alcatel.fr
Tue Feb 18 17:46:19 CET 2003


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 at 127.0.0.1 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5070
To: Alice <sip:alice at localhost>
From: Me <sip:me at localhost>
Call-ID:123456789 at 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 at localhost>;tag=d907c037823644515dfe0ede38ca9976.de25
From: Me <sip:me at localhost>
Call-ID:123456789 at 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 at 127.0.0.1
out_uri=sip:alice at 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







More information about the sr-users mailing list