2007/10/31, Liang <[EMAIL PROTECTED]>: > I'm trying to find out a way to log sofia sip stack's behavior, like > logging how a SIP > registration/publication/subcribe/bye/cancel/message > REQUEST being sent out with what <from> ,<to> , <Request line>, <Cseq>, > <CallID> SIP headers, etc. > Example : > I'm trying to make a log entry : > SRC.IP=192.168.0.XXX SRC.PORT=5100 DST.IP=XXX.XXX.XXX.XXX DST.PORT=5060 > Request.line = <REQUEST-LINE> From= <From> TO = <TO> Cseq = <CSeq> CallID = > <CallID> Contact = <Contact> Expire=<expiration> > > I'd like to known how could i access these SIP header information before > the SIP REQUEST being sent out to the real network. > What i need is a interface to collect these information and log them to > a file.
There is no ready hook for doing exactly what you want. You can enable som logging with environment variables NTA_DEBUG, TPORT_DEBUG and TPORT_LOG. If the output there is not enough you could try add a call to your own logging code in libsofia-sip-ua/nta/nta.c/outgoing_send(). -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel