Hi, I'm starting using OpenSer with Asterisk.
In calls passing through Asterisk the caller or callee get music on hold of
Asterisk when is put on hold. But of course, direct calls between OpenSer
users don't get this music.
I'm thinking in the posibility of detecting "on hold" reinvites (maybe reading
the "a=sendonly" of SDP body) and rewriting the SDP IP contact to a music on
hold server.
I have no idea if this is possible. The first issue is how to set up a RTP
music streamer for pointing there the SDP c header. Does "this" RTP music
streamer exist? of course Asterisk is not a solution since I don't want to
manage INVITE's, just rewrite the SDP.
Second issue is: could be rewriting the SDP always sucessfull? what about
cases with more than one RTP session as audio+video?
So, is there any solution for offering music on hold with OpenSer?
Thanks a lot.
--
Iñaki Baz Castillo
ibc(a)in.ilimit.es
Hi all,
I'm still trying to get a handle on using regular expression in
openser. I can't seem to find any documentation on openser wiki on
regular expression usage.
I have the following in my openser.cfg and a call to sip:
48911(a)ourdomain.com is logged as emergency call. What am I doing
wrong?
if (uri=~"^sip:(99)|(9911)|(45555)|((93)?911)@")
{
xlog ("L_INFO","Emergency call \n");
}
I am using this as a work around:
if ((uri=~"^sip:(99)|(9911)|(45555)|(93911)@") || (uri=~"^sip:
911@"))
Thanks in advance for your help.
--
Zahid
At 16:34 11/07/2007, JF wrote:
>Hi all,
>
>Is there any particular reason why sl module functions cannot be used
>in failure routes?
Yes. Failure_route is only invoked from within stateful processing.
If a request was processed statelessly, SER does not really know if
it failed.
-jiri
>I want to send a stateless reply in failure route.
>
>JF
>_______________________________________________
>Serusers mailing list
>Serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/
Just discovered an acc parameter which does the trick and suppresses ACK
accounting:modparam("acc", "report_ack", 0)Sorry for not reading
properly.Still I am confused why radius receives start records with ACK
before INVITE start records.CheersGerry----- Original Message -----
From: "G.Jacobsen" <g_jacobsen(a)yahoo.co.uk>
To: <users(a)openser.org>
Sent: Wednesday, July 11, 2007 8:06 PM
Subject: Radius - prevent start record for ACK ?
> I am using freeradius with openser 1.0.1.
>
> My problem is that openser is emitting TWO radius start records: One for
the
> INVITE with SIP method = 1 (INVITE) and also a second start record for SIP
> Method = 4 (ACK)
>
> Is is normal that a start record is also emitted for the ACK ?
>
> As long as the INVITE record is sent before the ACK record that is no
real
> problem.
>
> However every-now-and-then (no pattern observed) Openser sends the Radius
> start record with SIP Method = 4 (ACK) before the Record with SIP Method =
1
> for the INVITE.
>
> The problem is that the Radius record for the ACK does not contain the
> username from the credentials so that the username is not correctly set in
> the Radius record, instead of the correct username the callerid is used
as
> the username.
>
> How do I prevent that openser sends start records for the ACK ? Quite
> frankly I do not understand why a start record for ACK is emitted since I
> set the radius_flag only for INVITEs.
>
> the relevant parts from my configuration:
>
> modparam("acc", "radius_config",
> "/usr/local/etc/radiusclient-ng/radiusclient.conf")
> modparam("acc", "radius_flag", 1)
> modparam("acc", "log_flag", 1)
> modparam("acc", "service_type", 15)
>
> route{
>
> .....
> # If this is an INVITE and not RE-INVITE start accounting
> if(is_method("INVITE") && !has_totag()){
> # set the acc flags
> setflag(1);
> };
>
>
> if (is_method("ACK")) { #hop-by-hop ACKs are absorbed here
> t_newtran();
> # drop broken ACKs
> exit;
> };
>
>
> Any hints are welcome.
>
> TIA
>
> Gerry
>
___________________________________________________________
Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
I have just installed OSER v 1.2.1 and i can only add one entry
into my subscriber table after that i get the following error when i run
openserctl add ....
I can add directly into the db with phppgadmin either . I;m using pgsql.
ERROR: duplicate key violates unique constraint "phplib_id_key"
any ideas ?
--
TC
Hello all,
I have a setup with ser-0.9.6 on a x86-64 Debian Etch system with 8GB RAM.
We use SIPP in order to stress test the system. As a first test we try to register
about 150,000 users (the Registration requests arrival rate in not our concern at this time).
We manage indeed to register 150,000 users and SER can stop/start with this location DB size.
My setup concerning memory :
config.h :
#define PKG_MEM_POOL_SIZE 512*1024*1024
serctl file:
STARTOPTIONS='-m 128'
Although, at about 15,000-20,000 contacts at location DB, I get the following error,
every 30 seconds :
ERROR: nathelper::timer: out of memory
natelper module config :
modparam("nathelper", "rtpproxy_disable", 1)
modparam("nathelper", "natping_interval", 30)
modparam("nathelper", "ping_nated_only", 1)
Searching the mailing list I found the following :
http://lists.iptel.org/pipermail/serusers/2004-March/006828.html
We actually changed the PKG_MEM_POOL_SIZE to 512*1024*1024 and recompile
but we still get this error.
thanks for any help,
Kostas