On 02/02/2009 09:35 PM, kokoska rokoska wrote:
With sip trace you still get them in a DB, because it first stores to DB and then sends to another address. However, what you want to achieve is something good, so for the future I will have in mind the option just to replicate to another address and skip writing to db.
Or, better to say, can I trace and duplicate messages on one server and not log them?
If you want to duplicate the messages that come to kamailio, you can use the send() function in route and onreply_route block. http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:devel#send_destinati...
If you want the siptrace module to do it, you have to hack it a bit. Practically is to introduce a new parameter, e.g., skip_db_storage, and put the code that writes in db inside a if not skip_db_storage.
Cheers, Daniel
Daniel-Constantin Mierla napsal(a):
Thank you very much, Daniel, for very valuable help!
Thats a shame, but I completly forgot about "send" (if I ever know it - I'm not sure :-) It could solve my needs for now. Many thanks once more...
Your suggestion about improving siptrace module is very interesting, but I'm very overloaded for now and not a programmer. But in a month or so I try to look in the code and let's see what happens :-)
Best regards,
kokoska.rokoska
On 02/03/2009 10:48 AM, kokoska rokoska wrote:
welcome!
Everyone is overloaded, it is a matter of needs to set priorities. Code is frozen now to prepare the release of 1.5.0, next version, which will use the http://sip-router.org project will add the onsend_route that makes possible to get access to the outgoing sip requests as well. With a bit of extension at that time, probably the entire siptrace functionality can be done only in the config file.
Cheers, Daniel
Daniel-Constantin Mierla napsal(a):
I'm sure about it :-)
Code is frozen now to prepare the release of 1.5.0,
Yes, I know. This is the main reason I hope I could start to study code next month...
Thank you very much, Daniel, for that kind of informations! If I catch it well, there will be no future needs to implement such improvements to siptrace module. Am I right?
Best regards,
kokoska.rokoska
On 02/03/2009 03:42 PM, kokoska rokoska wrote:
with some extensions. For example the ACK for negative replies do not get in config file. They are dropped before calling the config script.
Cheers, Daniel