[OpenSIPS-Users] No SipResponseCode in radacct table

erik pepermans cpu1 at telenet.be
Fri Nov 27 21:39:06 CET 2009


Hi Bogdan,

I was mixing the two. I now use acc_aaa_request() only and both problems are
solved at once.
Great software !

Thanks
Erik

-----Oorspronkelijk bericht-----
Van: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] Namens Bogdan-Andrei Iancu
Verzonden: vrijdag 27 november 2009 10:21
Aan: OpenSIPS users mailling list
Onderwerp: Re: [OpenSIPS-Users] No SipResponseCode in radacct table


Hi Erik,

For the radius part, the accounting of BYE is done via flags 
(automatically) or you do it explicitly via the acc_aaa_request() from 
the script ? I'm asking because if you use the script function you will 
not get the REPLY CODE at all (acc is done at request time, so the reply 
code is unknown).

For the TOTAG - this is the TAG param in the TO header in the reply.

Regards,
Bogdan



erik pepermans wrote:
> Hi,
>  
> I've setup opensips 1.6.0 + freeradius + latest mediaproxy version.
> Accounting module in opensips records everything except that the 
> sipresponsecode is always 0 after a successful session. Moreover the 
> totag in the radacct table is a string which I can't deduct where it 
> comes from.
>  
> opensips log :
>  
> Nov 26 20:48:53 ns1 /sbin/opensips[18178]: ACC: transaction answered:
> timestamp=1259264933;method=BYE;from_tag=as5fe59fef;to_tag=ccid-30699043
>
3-1-1529;call_id=17fede8643fa1d72095978c278ec2abb at test.foo.be;code=200;reaso
n=OK 
>
>  
> last radius rec :
>  
> rad_recv: Accounting-Request packet from host 192.168.5.105:33473,
> id=27, length=316
>         Acct-Status-Type = Stop
>         Service-Type = Sip-Session
>         Sip-Response-Code = Undefined
>         Sip-Method = Bye
>         Event-Timestamp = "Nov 26 2009 20:48:53 CET"
>         Sip-From-Tag = "as5fe59fef"
>         Sip-To-Tag = "ccid-306990433-1-1529"
>         Acct-Session-Id = 
> "17fede8643fa1d72095978c278ec2abb at test.foo.be 
> <mailto:17fede8643fa1d72095978c278ec2abb at test.foo.be>"
>         User-Name = "1000 at test.foo.be <mailto:1000 at test.foo.be>"
>         Calling-Station-Id = "sip:1000 at test.foo.be"
>         Called-Station-Id = "sip:0043780004711 at 77.xx.xx.xxx:5071"
>         Sip-Translated-Request-URI = "sip:66.xx.xxx.xxx:5060"
>         Source-IP = "77.xx.xxx.xxx"
>         Source-Port = "5060"
>         SIP-Proxy-IP = "77.xx.xx.xxx"
>         User-Agent = "Asterisk PBX"
>         NAS-Port = 5060
>         Acct-Delay-Time = 0
>         NAS-IP-Address = 192.168.5.105
>  
> The ToTag in raddact table : adf7242aab0f46b4c4267e8d544f2b19
>  
> Erik
>  
>  
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org 
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro


_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Users mailing list