David,
When $RatingEngine['split_rating_table'] setting is true, after
changing the rates
in the web interface or by importing them, you must run the script from
scripts/splitRatingTables.php to split the central billing_rates table
into
individual tables for each rate id. You do not need this feature if
you have
less than 100K rates in your system.
Adrian
On Mon, Jun 16, 2008 at 5:55 PM, Iñaki Baz Castillo <ibc at
in.ilimit.es>
wrote:
> El Monday 16 June 2008 17:44:56 David Villasmil escribió:
>
> > But as it happens, when you specify a profile like I did: billing
profile
> > is NORMAL, but RATE NAME is 1, then you MUST CREATE A TABLE CALLED
> > "BILLING_RATES_1", I don't know if cdrtool is supposed to create
it but
> > didn't do it for me. I had to manually create the table:
>
> What about if you don't use numeric values as Rate Id?
> I use Rate id with textual value ("Reducida", "Normal"...) and had
not your
> problem.
>
At least in my case, it doesn't find the rate... Same thing, I had to
create
the table...
without creating the table:
Jun 16 12:02:30 rgi-sql CDRTool[15559]: Error: Cannot find rates for
callid=
00808260004800068104000005E9 at 82.144.106.187, billing party=user at
1.2.3.4,
customer gateway=1.2.3.4, gateway=1.2.3.4, destination=1,
profile=Normal,
app=audio
and then, having created the billing_rates_reducida table:
Jun 16 12:03:16 rgi-sql CDRTool[21793]: ConnectFee=0.0000 Span=1
Duration=6
DestId=1 gateway=1.2.3.4 Profile=Normal Period=weekday Rate=reducida
Interval=0-24 Cost=0.0500/60 Price=0.0050
Hi,
I have setup the Openser 1.3.2 (mysql, presence, presence_xml, pua,
xmpp, and Pua_xmpp) module for evaluation.
Now I found two critical issue about the presence gateway of
SIMPLE_XMPP module PUA_XMPP of openser.
1. missing two side authorisation, gateway only send sip level
subsribe message to XMPP server, but the gateway needs to send similar
XMPP level subscribe message what is seen in the other direction when
a buddy is addded to the XMPP clients' roster.
2. empty NOTIFY for initial SIP SUBSRIBE request
Please verify me if this is the known issue going to be fixed later or
configuration bug.
Thanks a lot.
Br,
Gaoqiang
--
Gaoqiang Qian
>
>
>> > select *, UNIX_TIMESTAMP(AcctStartTime) as timestamp from radacct where
>> > (1=1) and Normalized = '0' and AcctStopTime != '0000-00-00 00:00:00'
>> and
>> > (ConnectInfo_stop is not NULL or MediaInfo is NULL or MediaInfo != '')
>> >
>> >
>> > MediaInfo (after update from mediaproxy) is NOT null... the rest of the
>> > fields are ok.
>>
>> Look again at the SQL query of above:
>>
>> MediaInfo is NULL or MediaInfo != ''
>>
>> It's not needed that MediaInfo is NULL, it can be any value except NULL or
>> empty string.
>>
>
That's it, it IS an empry string, so it will never rate it
Hello,
Cesc Santasusana has retired from the board of OPENSER as he is no
longer involved in projects using OPENSER -- he may come back in the
near future. I want to thank Cesc for all his contributions in technical
and organizational aspects of OPENSER.
To complete the board, Henning Westerholt will take his seat. Now, one
of the main tasks of the board is to define the election mechanisms for
board members, where the community has a relevant contribution.
Welcome to Henning, who did a lot of improvements to OPENSER and
advocated the project to many events worldwide. His experience from
other open source projects will help a lot.
Cheers,
Daniel
--
http://www.asipto.com
Well I did :-) and it did not work, no info is written into the db
With Regards
Ali Jawad
System Administrator
Splendor Telecom (www.splendor.net)
Beirut, Lebanon
Phone: +961 1 373725
Fax: + 961 1 375554
________________________________
From: David Villasmil [mailto:david.villasmil.work@gmail.com]
Sent: Tuesday, June 17, 2008 3:27 PM
To: Ali Jawad
Subject: Re: [OpenSER-Users] Enter Dialog info to database
try it and you'll see
;)
On Tue, Jun 17, 2008 at 2:22 PM, Ali Jawad <ali.jawad(a)splendor.net>
wrote:
Hi I am setting the flag as follows
if (is_method("INVITE")) {
setflag(4);
}
Is that the correct way ?
With Regards
________________________________
From: David Villasmil [mailto:david.villasmil.work@gmail.com]
Sent: Tuesday, June 17, 2008 3:21 PM
To: Ali Jawad
Subject: Re: [OpenSER-Users] Enter Dialog info to database
You have to set the flag on incoming INVITEs to enable db on the dialog.
On Tue, Jun 17, 2008 at 2:18 PM, Ali Jawad <ali.jawad(a)splendor.net>
wrote:
Hi All
I have the following dialog module setup
# ----- Dialog -----------
modparam("dialog",
"db_url","mysql://openser:xxxxxxxxxxxxx@localhost/openser")
modparam("dialog", "db_mode", 1)
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "enable_stats", 1)
modparam("dialog", "rr_param", "did")
If I execute
/usr/local/sbin/openserctl fifo dlg_list
I get the dialogs that are taking place. However there is nothing
written into the database even for calls longer than 2 minute
Anything I missed here?
Thanks
_______________________________________________
Users mailing list
Users(a)lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users
--
This message has been scanned for viruses and
dangerous content by MailScanner <http://www.mailscanner.info/> , and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by MailScanner <http://www.mailscanner.info/> , and is
believed to be clean.
This is obvioulsy the problem, if I go and set MediaInfo to NULL by hand, the call get rated!
----- Original Message -----
From: David Villasmil
To: openser users
Sent: Tuesday, June 17, 2008 2:42 PM
Subject: Re: [OpenSER-Users] OPenser+mediaproxy
Looking at mysql's log, this is what I see:
---> BY OPENSER_:
24 Query INSERT INTO radacct (RadAcctId, AcctSessionId, AcctUniqueId, UserName, Realm, NASIPAddress, NASPortId, AcctStartTime, AcctStopTime, AcctSessionTime, AcctInputOctets, AcctOutputOctets, CalledStationId, CallingStationId, AcctTerminateCause, ServiceType, ENUMtld, FramedIPAddress, AcctStartDelay, AcctStopDelay, SipResponseCode, SipMethod, SipTranslatedRequestURI, SipToTag, SipFromTag, SipRPID, SourceIP, SourcePort, CanonicalURI) VALUES (NULL, 'OWNhNDAwMmIyOTM5NDU3MjQ4MGJjMTk2YWIwZmE0NGE.', 'd986b295f8a55559', '', SUBSTRING_INDEX('', '@',-1), '1.2.3.4', '5060', '2008-06-17 08:27:52', '0', '0', '0', '0', trim(leading 'sip:' from trim(leading 'sips:' from 'sip:0013058883456@1.2.3.4')), trim(leading 'sip:' from trim(leading 'sips:' from 'sip:915568911@1.2.3.4')), '200', 'Sip-Session', '', '', '0', '0', '200', 'Invite', trim(leading 'sip:' from trim(leading 'sips:' from 'sip:13058883456@5.6.7.8:5060=3Btransport=3Dudp')), '17062708081947605004610377', '34794a17', '', '9.8.7.6', '27374', trim(leading 'sip:' from trim(leading 'sips:' from '')) )
-------------------------------------------------------------------------------------------------------------------------------------------------
---> THE CALL DROPS, THE BY MEDIAPROXY:
29 Connect openser@localhost on radius
29 Query SET NAMES latin1
29 Query UPDATE
radacct
SET
AcctSessionTime = AcctSessionTime + IF(ConnectInfo_stop IS NULL, 53, 0),
AcctStopTime = DATE_ADD(AcctStartTime, INTERVAL AcctSessionTime SECOND),
AcctInputOctets = AcctInputOctets + 77488,
AcctOutputOctets = AcctOutputOctets + 152760,
SipUserAgents = 'eyeBeam release 1014c stamp 46090 + unknown-agent',
SipCodecs = 'G729',
SipApplicationType = 'Audio',
MediaInfo = '', <------------------ LOOK AT THIS! ITS AN EMPTY STRING!!
Normalized = '0'
WHERE
AcctSessionId = 'OWNhNDAwMmIyOTM5NDU3MjQ4MGJjMTk2YWIwZmE0NGE.' AND SipFromTag = '34794a17' AND SipToTag = '17062708081947605004610377'
-------------------------------------------------------------------------------------------------------------------------------------------------
---> THEN BY CDRTOOL, GETTING CDRs TO RATE:
select *, UNIX_TIMESTAMP(AcctStartTime) as timestamp
from radacct
where
(1=1) and
Normalized = '0' and
AcctStopTime != '0000-00-00 00:00:00' and
(ConnectInfo_stop is not NULL or MediaInfo is NULL or MediaInfo != '') <------------- CDRTOOL DOESN'T WANT AN EMPTY STRING!!
-------------------------------------------------------------------------------------------------------------------------------------------------
this of course will never work, I wonder whether it is a configuration problem or a cdrtool/mediaproxy bug...
Any thoughts?
David
Hi,
I am trying to setup CDRTool to work with Openser.
After installation, I try to bring up the web UI and login with
username=admin and password=admin. But it does not log me in. In the
CDRTool DB, I can find the admin username in the auth_user table.
Could someone tell me what could be wrong? Where can I check the log file
for CDRTool?
In the documentation, it says that CDRTool can provide 100% accuracy when
use with MediaProxy. If I use rptProxy instead, can CDRTool still provide
100% accuracy?
Thanks alot for all your help in advance.
Regards,
Pete
Hi All
I have the following dialog module setup
# ----- Dialog -----------
modparam("dialog",
"db_url","mysql://openser:xxxxxxxxxxxxx@localhost/openser")
modparam("dialog", "db_mode", 1)
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "enable_stats", 1)
modparam("dialog", "rr_param", "did")
If I execute
/usr/local/sbin/openserctl fifo dlg_list
I get the dialogs that are taking place. However there is nothing
written into the database even for calls longer than 2 minute
Anything I missed here?
Thanks