Klaus
It was a design consideration.
OpenSER queries for the pres rules document based on app type. If you
store in OpenXCAP server multiple pres-rules application documents
with different names this had worked but OpenSER will simply pick the
first document depending on what mysql query returns first.
Finally you have multiple clients that write their own pres-rules but
OpenSER care about only one (and you do not know before hand which one
as app type is equal). So we setup OpenXCAP server to consider that
any moment a single pres-rules document can exist for a give users
otherwise OpenSER does not know which document to use.
I believe that it should be a single document describing the rules for
a given presentity as a is central decision making place,
Unless there are better ideas ...
Adrian
If I PUT a document to
http://1.2.3.4/@mydomain/org.openmobilealliance.pres-rules/users/test/pres-…
and then PUT another document to
http://1.2.3.4/@mydomain/org.openmobilealliance.pres-rules/users/test/pres-…
,
it will overwrite the first file, thus it does not matter if it is
pres-rules or pres-rules2.
Is this by design, a wrong configuration, or just a bug?
Hi Folks,
I've got mediaproxy running with openser fine, however I want to
enable accounting. I've tested accounting to a database, and that seems
fine. however as soon as I try radius accounting, it seems to crash out
with the errors pasted below.
I'm no coder, but it looks like a global variable called filename is
not defined?
my mediaproxy.ini radius stanza is as follows and the radius
dictionaries are all present:
[Radius]
secret = secret
server = cdrradius
authport = 1812
acctport = 1813
dictionaries = /etc/radiusclient-ng/dictionary,
/etc/openser/dictionary.radius, /usr/local/mediaproxy/dictionary
retries = 2
timeout = 3
Any ideas?
-Cheers Max
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: Traceback (most recent
call last):
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
"/usr/local/mediaproxy/mediaproxy.py", line 71, in <module>
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: import rtphandler
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
"/usr/local/mediaproxy/modules/rtphandler.py", line 56, in <module>
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: from accounting import
accounting, StopRecord, StopRecordSerializer, QueuedItemProcessingThread
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
"/usr/local/mediaproxy/modules/accounting.py", line 330, in <module>
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: accounting =
RadiusAccountingThread()
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
"/usr/local/mediaproxy/modules/accounting.py", line 308, in __init__
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: self.__radius =
RadiusAccounting()
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
"/usr/local/mediaproxy/modules/radius.py", line 50, in __init__
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: abort("cannot read
radius dictionaries: %s" % str(e))
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
"/var/lib/python-support/python2.5/pyrad/dictionary.py", line 67, in __str__
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: if hasattr(self, filename):
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: NameError
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: :
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: global name 'filename'
is not defined
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: exiting.
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: Traceback (most
recent call last):
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
"/usr/local/mediaproxy/proxydispatcher.py", line 65, in <module>
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: import dispatcher
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
"/usr/local/mediaproxy/modules/dispatcher.py", line 39, in <module>
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: from accounting
import accounting, StopRecordSerializer, UnserializeError
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
"/usr/local/mediaproxy/modules/accounting.py", line 330, in <module>
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: accounting =
RadiusAccountingThread()
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
"/usr/local/mediaproxy/modules/accounting.py", line 308, in __init__
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: self.__radius =
RadiusAccounting()
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
"/usr/local/mediaproxy/modules/radius.py", line 50, in __init__
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: abort("cannot read
radius dictionaries: %s" % str(e))
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
"/var/lib/python-support/python2.5/pyrad/dictionary.py", line 67, in __str__
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: if hasattr(self,
filename):
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: NameError
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: :
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: global name
'filename' is not defined
Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: exiting.
i have setup ser and eveythin went smoothly and configured mysql also
to communicate with ser but when i tried to add users using serctl i
have the following error :
awk: syntax error near line 1
awk: bailing out near line 1
awk: syntax error near line 1
awk: bailing out near line 1
HA1 calculation failed
any suggestion i'll be appreciated
OS : Solaris 10
Ser_version : 0.9.4
Hello,
I would like to know if OpenSER supports some type of authentication credentials caching, to improve the performance when a non-local authentication service (i.e. RADIUS) is used. If it is not supported, are there any plans to include this functionality in future versions?
Bests,
JB
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
hi every body,
i am really in search of somebodies help in finding solution to my
problem mentioned below.i hope someone will respond kindfully.
i have installed opendiameter and openser successfully and all was
going well till yesterday.I need to authenticate a client by enabling
communication between openser and diameter.
when i try to communicate, the diameter shows me a message "invalid
session AVP" . if i run both continuously then diameter client
continuously the above message.
if somebody have got the solution please insist me.It would be so kind of u
Bhargav.b
Hi all,
does the Openser server version 1.0.1 support P-asserted identity header based on RFC 3325? If yes, is there something that needs to be configured on the server to make this feature to work?
Thanks,
Padmaja
Hi all,
what does "proxy_recurse" parameter do if it not set to zero ?
For example:
modparam("cpl-c","proxy_recurse",2)
regards,
daniel
--
Daniel Grotti
________________________
e-mail : d.grotti(a)gmail.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I tried to replace Displayname in From field with
uac_replace_from("$fn", "sip:1234@exaple.com");
What I found ist, that display name seems to be hold with quotes in $fn
instead without qoutes. So after running uac_replace_from I got double
quotes in front of and behind display name like this:
befor uac_replace-from:
From: "abc" <sip:1234@example.com>;tag ...
after uac_replace_from:
From: ""abc"" <sip:1234@example.com>";tag ...
Is this a feature or a Bug?
regards
Helmut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHu/6V4tZeNddg3dwRAlO5AJ4pSYqO0/fw/DPUGtT2oHMebXw/NQCfSPfD
lpUpAmoCuLE5mlEMocBzO5o=
=Y3ek
-----END PGP SIGNATURE-----
Hi Iñaki,
I checked the code and made test calls that span multiple profiles.
The calculus is correct.
The confusion likely arises because StartTime is printed in each
span, while it is the StartTime of the call itself and not of the span.
Finally the sum of all spans equals the duration of the call. If you
have data that contradicts this I would be happy to look at it again.
Regards,
Adrian
>>>>>>>>>>>>>>>>
Hi, CDRTool can calculate the price of a call involving various spans
(rates).
But it does it wrongly since the start time for each span is set to
the start
time of the call, so the price is much higher than the correct one.
An example: This is a call of more than 3 days of duration. Note that
in spans
2, 3 and 4 the "StartTime" is 2008-02-16 15:57:05 in all (the start
time of
the call), and note also that the "Duration" of spans 2, 3 and 4 are
the sum
of each span and its previous spans:
--
Span: 1
Duration: 28975 s
StartTime: 2008-02-16 15:57:05 (Europe/Madrid)
ProfileId: 01 Festivo for weekend
RateId: Reducida for 0-24h
Rate: 0.0100 / 60 s
Price: 4.8292
--
Span: 2
Duration: 115375 s <---- WRONG !!!
StartTime: 2008-02-16 15:57:05 (Europe/Madrid) <---- WRONG !!!
ProfileId: 01 Festivo for weekend
RateId: Reducida for 0-24h
Rate: 0.0100 / 60 s
Price: 19.2292
--
Span: 3
Duration: 144175 s <---- WRONG !!!
StartTime: 2008-02-16 15:57:05 (Europe/Madrid) <---- WRONG !!!
ProfileId: 01 Laboral for weekday
RateId: Reducida for 0-8h
Rate: 0.0100 / 60 s
Price: 24.0292
--
Span: 4
Duration: 229878 s <---- WRONG !!!
StartTime: 2008-02-16 15:57:05 (Europe/Madrid) <---- WRONG !!!
ProfileId: 01 Laboral for weekday
RateId: Normal for 8-22h
Rate: 0.0300 / 60 s
Price: 114.9390
--
Total: 163.0765
Hi, which would be the more ellegant way to allow users to call just a few
destinations (based on prefix)?
Of course I could do it simply by creating a custom
table: "allowed_destinations" with columns:
[int_prefix] [description]
34 Spain
44 England
...
and latter extract the international prefix from the E164 converted RURI and
do a SQL query. But I'd like to avoid using avp_db_query() function.
I've reading about PDT, LCR and CarrierRoute modules but they seems to be
supposed to other aims. The most similar could be PDT but it needs to strip
my prefix XD
What do you suggest? should I implement my custom method for this?
Thanks.
--
Iñaki Baz Castillo
ibc(a)in.ilimit.es