I was having a problem compiling SER in FreeBSD. Some of the
libraries are not referenced correctly.
Here are the notes from the install.
Compiled against Sems 2.0-rc1 and FreeBSD 6.2 all applications
installed from ports.
command used to compile
gmake group_include="standard standard-dep" all
To get some modules to compile properly, I did the following.
For XMLPRC
ln -s /usr/local/lib/libxml2.a /usr/lib/libxml2.a
ln -s /usr/local/lib/libxml2.la /usr/lib/libxml2.la
ln -s /usr/local/lib/libxml2.so /usr/lib/libxml2.so
ln -s /usr/local/include/libxml2 /usr/include/libxml2
For Modules Depending on XCAP (xcap presence pa rls)
ln -s /usr/local/include/iconv.h /usr/include/iconv.h
Still can't get EVAL module to compile
tried the following.
mkdir /usr/includes/uuid
ln -s /usr/local/sys/uuid.h /usr/include/uuid/uuid.h
Got Error
gmake[1]: Entering directory `/usr/local/ser/src/ser-2.0.0-rc1/
modules/eval'
gcc -shared -Wl,-O2 -Wl,-E eval.o -luuid -o eval.so
/usr/bin/ld: cannot find -luuid
gmake[1]: *** [eval.so] Error 1
gmake[1]: Leaving directory `/usr/local/ser/src/ser-2.0.0-rc1/modules/
eval'
Hi...
First I try MediaProxy, but it has problems with multipart SDP packets... It
LOGs:
error: mediaproxy/checkContentType(): invalid Content-Type for SDP message
error: mediaproxy/getSDPMessage(): content type is not `application/sdp'
error: use_media_proxy(): failed to get the SDP message
Then I try RTPProxy... but it also didn't work. It gaves me:
ERROR:check_content_type: invalid type for a message
ERROR: extract_body: content type mismatching
ERROR: force_rtp_proxy2: can't extract body from the message
We are using a Cisco 2600 for IPIPGW (our PSTN GWs are on the H323 side).
This messages appears for any call destinated to PSTN.
Can anybody point me how to solve this problem? The solution based on
MediaProxy had worked until last month...
Edson.
Dear all,
There is one question for OpenSer Presence module i don't understand.
I see that the Presence server takes action base on the received SIP message
SUBSCRIBE/PUBLISH, I want to know which stack SIP are u using in Openser?
Because i look around the SIP Servlet API standard, it doesn't contain the
method like doPublish(), doUpdate(). How do u do to realise the Presence
module with Openser?
Thanks,
li
_________________________________________________________________
Ten : Messenger en illimité sur votre mobile !
http://mobile.live.fr/messenger/ten/
Hi, guys...
As the subject suggest, I'm facing a problem with Multipart SDP packets
comming from a Cisco IPIPGW.
I'm using MediaProxy, but reading an old e-mail on the list, it pointed that
this was do a kind-of RFC race condition. RFC say that GW should respect
multipart requirements according to Proxies request, but also say that
Proxies should handle Multipart messages...
Any way, my question is if RTPProxy lacks from the same 'problem' as
MediaProxy? Can RTPProxy handle multipart SDP packets?
Edson.
Hello all,
I am running Openser 1.2 for several days and whithin a period of three
minutes I got a lot of these messages:
Jun 8 10:27:41 ser1 openser[23287]: ERROR: new_t: out of mem:
Jun 8 10:27:41 ser1 openser[23287]: ERROR: t_newtran: new_t failed
Jun 8 10:27:41 ser1 openser[23287]: ERROR: new_t: out of mem:
Jun 8 10:27:41 ser1 openser[23287]: ERROR: t_newtran: new_t failed
Jun 8 10:27:42 ser1 openser[23279]: ERROR: sip_msg_cloner: cannot
allocate memory
Jun 8 10:27:42 ser1 openser[23279]: ERROR: new_t: out of mem:
Jun 8 10:27:42 ser1 openser[23279]: ERROR: t_newtran: new_t failed
Jun 8 10:27:42 ser1 openser[23279]: ERROR: sip_msg_cloner: cannot
allocate memory
Jun 8 10:27:42 ser1 openser[23279]: ERROR: new_t: out of mem:
Jun 8 10:27:42 ser1 openser[23279]: ERROR: t_newtran: new_t failed
Jun 8 10:27:42 ser1 openser[23279]: ERROR:tm:relay_reply: cannot alloc
reply shmem
Jun 8 10:27:42 ser1 openser[23287]: ERROR:tm:relay_reply: cannot alloc
reply shmem
Jun 8 10:27:42 ser1 openser[23287]: ERROR:tm:_reply_light: cannot
allocate shmem buffer
Jun 8 10:27:42 ser1 openser[23279]: ERROR:tm:_reply_light: cannot
allocate shmem buffer
They only appeared in the log for a few minutes and then they stopped.
After this happened I got the following statistics and ps info.
[root@ser1 sbin]# ./openserctl fifo get_statistics all
core:rcv_requests = 34449564
core:rcv_replies = 14967742
core:fwd_requests = 78714
core:fwd_replies = 15461
core:drop_requests = 49337
core:drop_replies = 0
core:err_requests = 0
core:err_replies = 250
core:bad_URIs_rcvd = 457
core:unsupported_methods = 471
core:bad_msg_hdr = 389075
shmem:total_size = 33554432
shmem:used_size = 4467768
shmem:real_used_size = 4731144
shmem:max_used_size = 33052304
shmem:free_size = 28823288
shmem:fragments = 9383
sl:1xx_replies = 0
sl:2xx_replies = 16962574
sl:3xx_replies = 2306
sl:4xx_replies = 4501596
sl:5xx_replies = 12366570
sl:6xx_replies = 0
sl:sent_replies = 33833046
sl:sent_err_replies = 275
sl:received_ACKs = 49337
tm:received_replies = 14952031
tm:relayed_replies = 14702762
tm:local_replies = 69373
tm:UAS_transactions = 14671506
tm:UAC_transactions = 0
tm:2xx_transactions = 14551357
tm:3xx_transactions = 0
tm:4xx_transactions = 113514
tm:5xx_transactions = 9327
tm:6xx_transactions = 1
tm:inuse_transactions = 248
usrloc:registered_users = 2668
usrloc:location-users = 2668
usrloc:location-contacts = 2844
usrloc:location-expires = 53356
registrar:max_expires = 600
registrar:max_contacts = 10
registrar:default_expire = 600
registrar:accepted_regs = 14722245
registrar:rejected_regs = 43947
[root@ser1 sbin]# ./openserctl ps
Process:: ID=0 PID=23265 Type=attendant
Process:: ID=1 PID=23279 Type=receiver child=0 sock=
xxx.xxx.xxx.xxx:5060
Process:: ID=2 PID=23284 Type=receiver child=1 sock=
xxx.xxx.xxx.xxx:5060
Process:: ID=3 PID=23287 Type=receiver child=2 sock=
xxx.xxx.xxx.xxx:5060
Process:: ID=4 PID=23290 Type=receiver child=0 sock=
yyy.yyy.yyy.yyy:5060
Process:: ID=5 PID=23292 Type=receiver child=1 sock=
yyy.yyy.yyy.yyy:5060
Process:: ID=6 PID=23293 Type=receiver child=2 sock=
yyy.yyy.yyy.yyy:5060
Process:: ID=7 PID=23297 Type=receiver child=0 sock=
zzz.zzz.zzz.zzz:5060
Process:: ID=8 PID=23300 Type=receiver child=1 sock=
zzz.zzz.zzz.zzz:5060
Process:: ID=9 PID=23303 Type=receiver child=2 sock=
zzz.zzz.zzz.zzz:5060
Process:: ID=10 PID=23306 Type=receiver child=0 sock=
qqq.qqq.qqq.qqq:5060
Process:: ID=11 PID=23309 Type=receiver child=1 sock=
qqq.qqq.qqq.qqq:5060
Process:: ID=12 PID=23310 Type=receiver child=2 sock=
qqq.qqq.qqq.qqq:5060
Process:: ID=13 PID=23311 Type=receiver child=0 sock=
vvv.vvv.vvv.vvv:5060
Process:: ID=14 PID=23318 Type=receiver child=1 sock=
vvv.vvv.vvv.vvv:5060
Process:: ID=15 PID=23321 Type=receiver child=2 sock=
vvv.vvv.vvv.vvv:5060
Process:: ID=16 PID=23324 Type=timer
Does anyone know what might be causing these errors?
Thank you
George
Disclaimer
The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
Hi Bogdan,
Yes I know, that's where I got stuck too... Anyway, probably I can get
rid of avp_subst(), but not immediately. I will let you know as soon as
possible.
subst_user() is heavily used in the script, so it has to stay...
Is subst() also a suspect or not?
thanks
George
> -----Original Message-----
> From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
> Sent: Thursday, June 21, 2007 3:41 PM
> To: Papadopoulos Georgios
> Cc: users(a)openser.org
> Subject: Re: [Users] out of memory - please help
>
> George,
>
> I was trying to reduce the investigation options focusing
> only on the functions you are using....but useless :) you are
> using all of them :)....
>
> is there any way to remove couple of them and test again?
>
> regards,
> bogdan
>
> Papadopoulos Georgios wrote:
> > Hi Bogdan,
> >
> > I am using all of the functions that you mentioned. I am also using
> > subst(). Please, let me know if you need more info.
> >
> > best regards
> >
> > George
> >
> >
> >
> >> -----Original Message-----
> >> From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
> >> Sent: Thursday, June 21, 2007 1:46 PM
> >> To: Papadopoulos Georgios
> >> Cc: users(a)openser.org
> >> Subject: Re: [Users] out of memory - please help
> >>
> >> Hi George,
> >>
> >> looking over the log, it might be something wrong with
> >> subst_str() function - I see a lot of memory allocated by this
> >> function (3267 mem chunks).
> >>
> >> now, I have to trace the function using the subst_str() function
> >> :)..So, are you using from script one of the following functions:
> >> subst_uri()
> >> subst_user()
> >> avp_subst()
> >>
> >> regards,
> >> bogdan
> >>
> >> Papadopoulos Georgios wrote:
> >>
> >>> Hello all,
> >>>
> >>> We have an ongoing issue with Openser running out of
> memory after a
> >>> few hours. It is very consistent which makes me believe it
> >>>
> >> is a memory
> >>
> >>> leak. Can someone look at the log file? I have done a mem dump on
> >>> process 8573 which is the one that ran out of memory. Here
> >>>
> >> is the log:
> >>
> >>> _http://www.real.gr/files/openser.20070620.log.gz_
> >>> It always happens on the first receiver child. Our current
> >>>
> >> solution is
> >>
> >>> to restart Openser every few hours. I would like to solve
> >>>
> >> this at its
> >>
> >>> root, so please let me know if you need more info.
> >>> My Openser is 1.2.x from svn, revision 2333.
> >>>
> >>> thank you for any help
> >>>
> >>> George
> >>>
> >>>
> >>>
> >>>
> >>> Disclaimer
> >>>
> >>> The information in this e-mail and any attachments is
> >>>
> >> confidential. It
> >>
> >>> is intended solely for the attention and use of the named
> >>> addressee(s). If you are not the intended recipient, or person
> >>> responsible for delivering this information to the intended
> >>>
> >> recipient,
> >>
> >>> please notify the sender immediately. Unless you are the intended
> >>> recipient or his/her representative you are not
> authorized to, and
> >>> must not, read, copy, distribute, use or retain this
> message or any
> >>> part of it. E-mail transmission cannot be guaranteed to be
> >>>
> >> secure or
> >>
> >>> error-free as information could be intercepted, corrupted, lost,
> >>> destroyed, arrive late or incomplete, or contain viruses.
> >>>
> >>>
> >>>
> >>
> ---------------------------------------------------------------------
> >> -
> >>
> >>> --
> >>>
> >>> _______________________________________________
> >>> Users mailing list
> >>> Users(a)openser.org
> >>> http://openser.org/cgi-bin/mailman/listinfo/users
> >>>
> >>>
> >>
> >
> >
>
>
Hi Bogdan,
I am using all of the functions that you mentioned. I am also using
subst(). Please, let me know if you need more info.
best regards
George
> -----Original Message-----
> From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
> Sent: Thursday, June 21, 2007 1:46 PM
> To: Papadopoulos Georgios
> Cc: users(a)openser.org
> Subject: Re: [Users] out of memory - please help
>
> Hi George,
>
> looking over the log, it might be something wrong with
> subst_str() function - I see a lot of memory allocated by
> this function (3267 mem chunks).
>
> now, I have to trace the function using the subst_str()
> function :)..So, are you using from script one of the
> following functions:
> subst_uri()
> subst_user()
> avp_subst()
>
> regards,
> bogdan
>
> Papadopoulos Georgios wrote:
> > Hello all,
> >
> > We have an ongoing issue with Openser running out of memory after a
> > few hours. It is very consistent which makes me believe it
> is a memory
> > leak. Can someone look at the log file? I have done a mem dump on
> > process 8573 which is the one that ran out of memory. Here
> is the log:
> > _http://www.real.gr/files/openser.20070620.log.gz_
> > It always happens on the first receiver child. Our current
> solution is
> > to restart Openser every few hours. I would like to solve
> this at its
> > root, so please let me know if you need more info.
> > My Openser is 1.2.x from svn, revision 2333.
> >
> > thank you for any help
> >
> > George
> >
> >
> >
> >
> > Disclaimer
> >
> > The information in this e-mail and any attachments is
> confidential. It
> > is intended solely for the attention and use of the named
> > addressee(s). If you are not the intended recipient, or person
> > responsible for delivering this information to the intended
> recipient,
> > please notify the sender immediately. Unless you are the intended
> > recipient or his/her representative you are not authorized to, and
> > must not, read, copy, distribute, use or retain this message or any
> > part of it. E-mail transmission cannot be guaranteed to be
> secure or
> > error-free as information could be intercepted, corrupted, lost,
> > destroyed, arrive late or incomplete, or contain viruses.
> >
> >
> ----------------------------------------------------------------------
> > --
> >
> > _______________________________________________
> > Users mailing list
> > Users(a)openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/users
> >
>
>
Hey Everyone,
Firstly, thanks for Dan and everyone else who had replied on my problem with
getting
freeradius working with openser. Much appreciate that.
Now after I have my openser+freeradius+mysql working fine I'd like to tinker
a bit
with openser's abilities.
The dictionary.ser or dictionary.sip specifies several attributes for
example the Digest-User-Name
which the dictionary specifies as:
ATTRIBUTE
Digest-User-Name 1072 string
Which is the digest username that the sip client set when it's prompt for a
proxy/www authorization
and I'd like to set that attribute it in the radius start/stop record when
it's written to the database.
I have gone over some info at
http://www.openser.org/docs/modules/1.1.x/acc.html
and http://www.openser.org/docs/modules/1.1.x/avpops.html but I'm still
quite unsure how to
put this thing into place.
If someone could provide an example, that would be great.
Thanks,
Sincerely,
Liran Tal.
Hi Liran,
the problem u are facing it is a well known issue of FreeRADIUS. SQL
module is missing the Accounting-Type=15, so nothing related to
OpenSER, therefore nothing to be fixed here.
A sollution would be using the patch provided with the distribution of
CDRTool, or directly get it from their site:
http://www.ag-projects.com/index.php?option=com_weblinks&catid=66&Itemid=126
(link name "Freeradius patch for OpenSER accounting").
Hope it helps,
DanB