On 02/02/2009 09:35 PM, kokoska rokoska wrote:
>
> [...]
>>> Hello,
>>>
>>> i have increased debug to 6 and I can not see errors in syslog.
>>> Messages are traced, stored into DB, but not duplicated.
>>> I'm at 1.4.3 on CentOS 5 - if it makes sense...
>>>
>>> Thank you very much, Daniel, for your interest!
>>>
>>>
>>>
>> ok, checked the source code. For some reason I do not recall now, when I
>> wrote the module the duplication is done only when traced_user_avp is set.
>> http://kamailio.org/docs/modules/devel/siptrace.html#id2452997
>>
>> Set that avp and try again. If works I will try to fix and make it work
>> without avp.
>>
>> Thanks,
>> Daniel
>>
>>
>>
>
>
> Thank you very much, Daniel, for your help!
>
> It works :-)
>
> BTW: My idea is to offload proxy from (blocking ?) DB operatinos and
> still have all possible logs => I think I can duplicate all messages to
> another kamailio server and store them there to another DB. Is it
> doable?
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_destinat…
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
http://www.asipto.com
I agree with you, the module needs improvements on that point.
It's a really old point I missed when we decided to reuse and to reverse
that module.
I think about two manners in order to solve it :
* implement a return code for purple_send_message
* sending a reply directly in the module
Regarding the design of the module, I think both possibilities needs a lot
of mod.
I'm not sure how to consider that mod as it's not a bug but a limitation.
Is it a new feature I'll code when the trunk will be unfreezed ?
If yes, we may add that limitation in the doc for now.
Eric.
2009/1/29 Iñaki Baz Castillo ibc(a)aliax.net
> Why is needed to reply "200"? doesn't this module act as a proxy
> waiting for a response from downstread (i.e. MSN network) and mapping
> that response to the appropiate SIP code?
>
> This is: if I send a MESSAGE to a MSN account not online (or not
> existing) I will receive "200" anyway, shouldn't I receive a 480 or
> 404?
>
> Regards.
>
>
> --
> Iñaki Baz Castillo
> <ibc(a)aliax.net>
>
> _______________________________________________
> Kamailio (OpenSER) - Devel mailing list
> Devel(a)lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/devel
Hello all,
thanks to Frederick Bullik we've now a nice documentation index for the
Kamailio 1.4.x and 1.5.x releases available. You can easily lookup all module
exports like functions [1] or module parameters [2]. The index is sorted
alphabetically and provides convinient links to jump directly to the
respective place in the module documentation.
You'll find the new index in our wiki at: http://kamailio.org/dokuwiki/, as
well as the old ones for past OpenSER releases.
Best regards,
Henning Westerholt
[1] http://www.kamailio.org/dokuwiki/doku.php/modules:1.5.x:index-functions
[2] http://www.kamailio.org/dokuwiki/doku.php/modules:1.4.x:index-parameters
--
Henning Westerholt - Development Consumer Products / DSL Core
1&1 Internet AG, Ernst-Frey-Str. 9, 76135 Karlsruhe, Germany
I'm going to FOSDEM
Daniel-Constantin Mierla napsal(a):
> Hello,
>
> On 02/02/2009 08:08 PM, kokoska rokoska wrote:
>>
>> Daniel-Constantin Mierla napsal(a):
>>
>>> Hello,
>>>
>>> do you get any error in the syslog?
>>>
>>> Cheers,
>>> Daniel
>>>
>>>
>>
>>
>> Hello,
>>
>> i have increased debug to 6 and I can not see errors in syslog.
>> Messages are traced, stored into DB, but not duplicated.
>> I'm at 1.4.3 on CentOS 5 - if it makes sense...
>>
>> Thank you very much, Daniel, for your interest!
>>
>>
>
> ok, checked the source code. For some reason I do not recall now, when I
> wrote the module the duplication is done only when traced_user_avp is set.
> http://kamailio.org/docs/modules/devel/siptrace.html#id2452997
>
> Set that avp and try again. If works I will try to fix and make it work
> without avp.
>
> Thanks,
> Daniel
>
>
Thank you very much, Daniel, for your help!
It works :-)
BTW: My idea is to offload proxy from (blocking ?) DB operatinos and
still have all possible logs => I think I can duplicate all messages to
another kamailio server and store them there to another DB. Is it
doable? Or, better to say, can I trace and duplicate messages on one
server and not log them?
Best regards,
kokoska.rokoska
Hi all,
could someone be so kind and explain me how to use (or how exactly
works) duplicate_uri in siptrace module?
I think, if I setup
modparam("siptrace","duplicate_uri","sip:1.2.3.4:5060")
that all (and what is it "all"? :-) traced messages will be copied to
defined sip uri (1.2.3.4:5060).
I see nothing "on the wire" with ngrep, but all messages are succesufly
inserted into local DB so I thing the siptrace module works. But doesn't
copy messages to 1.2.3.4:5060 :-)
Any hitns are really welcome!
Best regards,
kokoska.rokoska
Hello,
a bunch of us will be at FOSDEM 2009:
http://fosdem.org/2009/
Therefore is the opportunity for first Social Networking Event in 2009.
Everyone interested in Kamailio (OpenSER), SIP Router, SER, SIP and not
only are invited to join -- participation is free, everybody pays for
its expenses. The event is very likely to be a dinner on Saturday
evening, Feb 7, 2009.
So far, from Kamailio (OpenSER) community you can meet there:
- Henning Westerholt - http://www.kamailio.org/mos/view/Management/
- Elena-Ramona Modroiu - http://www.kamailio.org/mos/view/Management/
- Daniel-Constantin Mierla - http://www.kamailio.org/mos/view/Management/
- Dan Bogos - http://itsyscom.com/
In order to know properly the size of the place we need, please drop me
an email if you intend to attend. People knowing Brussels are welcome to
suggest a nice place to meet (good beer and food are a must).
Looking forward to meeting you in Brussels.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com