[Serusers] config / accounting help

Matt Hess mhess at livewirenet.com
Thu Jan 29 21:20:39 CET 2004


Ok here's another question:

off the same ser.cfg I sent earlier when dialing a number that would go 
to a pstn.. ie: route(5) and then rewritehostport("172.16.0.5:5060"); 
t_relay(); break; I get the following error messages:

Jan 29 06:06:31 tranquility /usr/local/ser/sbin/ser[22664]: ERROR: 
t_newtran: transaction already in process 0x7c1ad7f0
Jan 29 06:06:31 tranquility /usr/local/ser/sbin/ser[22664]: ERROR: 
t_newtran: transaction already in process 0x7c1ad7f0

I must have a hole in my logic somewhere..?

Oh and I did move the setflag to be before record_route(); and I do get 
invites in the database but don't receive any bye's.. I've got to be 
able to get both to do proper cdr and billing.. yes?

I also get when placing a call to another registered user:

Jan 29 06:11:43 tranquility /usr/local/ser/sbin/ser[5017]: WARNING: 
t_reply: ACKs are not replied
Jan 29 06:11:45 tranquility /usr/local/ser/sbin/ser[14527]: WARNING: 
t_reply: ACKs are not replied
Jan 29 06:11:48 tranquility /usr/local/ser/sbin/ser[25400]: WARNING: 
t_reply: ACKs are not replied
Jan 29 06:11:48 tranquility /usr/local/ser/sbin/ser[14527]: ERROR: 
t_reply: cannot send a t_reply to a message for which no T-state has 
been established
Jan 29 06:11:48 tranquility /usr/local/ser/sbin/ser[14527]: ERROR: 
t_reply: cannot send a t_reply to a message for which no T-state has 
been established
Jan 29 06:11:50 tranquility /usr/local/ser/sbin/ser[6559]: ERROR: 
t_reply: cannot send a t_reply to a message for which no T-state has 
been established
Jan 29 06:11:50 tranquility /usr/local/ser/sbin/ser[6559]: ERROR: 
t_reply: cannot send a t_reply to a message for which no T-state has 
been established
Jan 29 06:11:53 tranquility /usr/local/ser/sbin/ser[5017]: ERROR: 
t_reply: cannot send a t_reply to a message for which no T-state has 
been established
Jan 29 06:11:53 tranquility /usr/local/ser/sbin/ser[5017]: ERROR: 
t_reply: cannot send a t_reply to a message for which no T-state has 
been established

and the other user never sees me hang up..


Jiri Kuthan wrote:

> At 10:12 AM 1/29/2004, Live_Wire_Net_Matt_Hess wrote:
> 
>>I'm trying hard to get a handle on configuring ser but I think I need a few hints..
>>
>>I thought I was doing the accounting right but the acc table never receives any information.. In my reading I thought by using setflag(x) where x was the same number as the db_flag number stateful accounting records would be automatic.. is this wrong..? 
> 
> 
> That's the way it is supposed to work and I unfortunately don't see an obvious 
> reason why it should not. The only thing is that setflag is before record-routing
> section, i.e., it will be processed only for initial requests (INVITE) but at least
> those should be appear in the acc table.
> 
> -jiri
> 
> 
> 
>>Can someone clue me in as to what I'm doing wrong as I just can't get this.
>>
>>
>>Here's my config if it helps at all:
>>
>># ----------- global configuration parameters ------------------------
>>loadmodule "/usr/local/ser/lib/ser/modules/acc.so"
>>modparam("acc", "db_url", "mysql://ser:heslo@localhost/ser")
>>
>>record_route();
>>if (loose_route()) {
>>       t_relay();
>>       break;
>>};
>>
>>
>># label all transactions for accounting
>>setflag(1);




More information about the sr-users mailing list