[Serdev] small error in tm/t_hook.h and responses

Goran.Edling at teliasonera.com Goran.Edling at teliasonera.com
Fri Jul 11 11:56:02 UTC 2003


Thanks Jiri!

I added the ONREPLY_ROUTE in xlog.c and added some code to in xl_lib.c to return status and reason for the reply (ie. %rs and %rs). Also did some error handling if you try to get ruri from a reply. Its working fine.

But it seems like the "t_on_reply" don't handle replys from BYE request when I en my call?


Ps. If someone wants my "enhanced" xlog code I send it in.

/Göran

-----Original Message-----
From: Jiri Kuthan [mailto:jiri at iptel.org] 
Sent: den 8 juli 2003 17:26
Subject: Re: [Serdev] small error in tm/t_hook.h and responses



>content-class: urn:content-classes:message
>Content-Type: multipart/alternative;
>        boundary="----_=_NextPart_001_01C3455A.E147A5C0"
>
>Hi!
> 
>I was looking for a way to tell other applications about response (and 
>not only requests), so I looked at the t_hook.c and there is a small 
>typo (i think) on row 48 #define TMCB_ON_NEGATIVE_TMCB_ON_FAILURE should be:
> 
>#define TMCB_ON_NEGATIVE TMCB_ON_FAILURE

Thanks, fixed.

>ps. If someone has done any type of logging modules for response codes 
>(like 100, 180 Ringing and so on) I appreciate the help.

I'm not aware of any module which would do so. The accounting module, acc, doesn't do so on purpose as it attempts to aggregate all messages into a single transaction report. One could perhaps use the undocumented onreply_route feature 
(see examples/serial_183.cfg to see it in action), from which you can process replies. I'm not by heart sure what it would do if you tried to apply some request-accouting function (like acc_log_request or something from xlog) to a reply. (One would have to first permit the use with the ONREPLY_ROUTE flag in module descriptor to see if it crashes or not.)

-Jiri 



More information about the Serdev mailing list