Could this:
Apr 8 17:14:58 sip2 ser[17542]: BUG:t_check_status: t_pick_branch
failed to get a final response in MODE_ONFAILURE
explain why this:
if (t_check_status("408") | t_check_status("404") |
t_check_status("486")) { route(8); }
fails? Pertinant config follows.
--------------------------
Route logic:
--------------------------
# Translate local address according to aliases table
if(lookup("aliases")) {
xlog("L_NOTICE", "%ci: alias lookup changed uri to %ru\n");
};
# Handle offline or non-existent users
if (!lookup("location")) {
xlog("L_NOTICE", "%ci: no location for %ru\n");
};
route(4); # relay with hunt on failure
--------------------------
route[4] {
# If an invitation, we want to hunt on failure
if(method == "INVITE") {
t_on_failure("1"); # first hunt
};
if (!t_relay()) {
sl_reply_error();
break;
};
}
###
# Hunt (8), but only on 404/408/487
route[7] {
if (t_check_status("408") | # Timeout
t_check_status("404") | # Not found
t_check_status("486")) # Busy
{
route(8);
} else {
xlog("L_NOTICE",
"%ci: r7: hunt but not 404/408/486\n");
};
}
For example now i have 14 simultaneus calls.
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
11760 root 15 0 601M 518M 2396 R 7.2 51.4
69:10 0 mediaproxy.py
When the active calls are 0 again the CPU % reach 0.2%, but the %MEM is
greater than 51.4%, and always increasing..
A couple of questions.
How you launch mediaproxy?. And in your last mail what are the pyhton
proccess running.. i don't see the mediaproxy process running.
Thanks again.
Ricardo.-
> -----Mensaje original-----
> De: Lucas Aimaretto [mailto:lucas@cyneric.com]
> Enviado el: Viernes, 08 de Abril de 2005 17:20
> Para: 'Ricardo Martinez'; serusers(a)lists.iptel.org
> Asunto: RE: [Serusers] Mediaproxy still consuming a lot of
> RAM resources.
>
>
> > But when you check the use of RAM memory in your machine...
> > (maybe with the command "top" or the command "free") don't
> > you notice a increasing amount of RAM used without being
> > released? As i mentioned i have this problem.. this is a
> > snippet of the output of the "top" command in my machine:
> >
> > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME
> > CPU COMMAND
> > 11760 root 15 0 590M 516M 2396 S 0.9
> 51.2
> > 68:15 0 mediaproxy.py
> >
> > 51.2% of memory used? What version of pyhton are you using?,
> > what OS are you using?. Thanks!
>
> Hey!, how many calls where you proxying when you had that usage of
> memmory ?
>
> Regards,
>
> Lucas
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 07/04/2005
>
>
> But when you check the use of RAM memory in your machine...
> (maybe with the command "top" or the command "free") don't
> you notice a increasing amount of RAM used without being
> released? As i mentioned i have this problem.. this is a
> snippet of the output of the "top" command in my machine:
>
> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME
> CPU COMMAND
> 11760 root 15 0 590M 516M 2396 S 0.9 51.2
> 68:15 0 mediaproxy.py
>
> 51.2% of memory used? What version of pyhton are you using?,
> what OS are you using?. Thanks!
Hey!, how many calls where you proxying when you had that usage of
memmory ?
Regards,
Lucas
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 07/04/2005
.
> But when you check the use of RAM memory in your machine...
> (maybe with the command "top" or the command "free") don't
> you notice a increasing amount of RAM used without being
> released?
To be honest, no ... I noticed, yes, some increasing in cpu usage, but
mem stays the same.
> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME
> CPU COMMAND
> 11760 root 15 0 590M 516M 2396 S 0.9 51.2
> 68:15 0 mediaproxy.py
>
> 51.2% of memory used? What version of pyhton are you using?,
> what OS are you using?. Thanks!
OS = Linux Red Hat 7.3
Python = Python 2.4
mediaproxy = mediaproxy.py 1.0
ser = 0.9.0
Snippet of top ( ordered by mem usage )
Mem: 191208K av, 176540K used, 14668K free, 0K shrd, 35588K
buff
Swap: 612352K av, 31852K used, 580500K free 37468K
cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
23023 root 15 0 4276 4276 3940 S 0.0 2.2 0:17 ser
27947 root 15 0 4256 4256 2188 S 0.0 2.2 0:01 python
27948 root 15 0 4256 4256 2188 S 0.0 2.2 0:00 python
27944 root 15 0 4240 4240 2080 S 0.0 2.2 22:39 python
23024 root 15 0 3852 3852 3752 S 0.0 2.0 0:00 ser
23025 root 17 0 3724 3724 3636 S 0.0 1.9 0:00 ser
Regards,
Lucas
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 07/04/2005
Thanks Lucas.
But when you check the use of RAM memory in your machine... (maybe with the
command "top" or the command "free") don't you notice a increasing amount of
RAM used without being released?
As i mentioned i have this problem.. this is a snippet of the output of the
"top" command in my machine:
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
11760 root 15 0 590M 516M 2396 S 0.9 51.2
68:15 0 mediaproxy.py
51.2% of memory used? What version of pyhton are you using?, what OS are
you using?.
Thanks!
Regards,
Ricardo.-
> -----Mensaje original-----
> De: Lucas Aimaretto [mailto:lucas@cyneric.com]
> Enviado el: Viernes, 08 de Abril de 2005 16:48
> Para: 'Ricardo Martinez'; serusers(a)lists.iptel.org
> Asunto: RE: [Serusers] Mediaproxy still consuming a lot of
> RAM resources.
>
>
> > Anyone else use mediaproxy here?. At least i want to
> > know if this happend to someone else.
>
> Well, I'm using mediaproxy. Not all the traffic traverses de
> proxy, but
> I had no problems at all. It is a PII@400MHz with 192MBytes of RAM.
>
> Regards,
>
> Lucas
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 07/04/2005
>
>
Hello again.
Anyone else use mediaproxy here?. At least i want to know if this
happend to someone else.
Thanks!
Ricardo.-
> -----Mensaje original-----
> De: Ricardo Martinez [mailto:rmartinez@redvoiss.net]
> Enviado el: Viernes, 08 de Abril de 2005 10:06
> Para: 'serusers(a)lists.iptel.org'
> Asunto: RE: [Serusers] Mediaproxy still consuming a lot of RAM
> resources.
>
>
> Hello List.
> Any comments here?
>
> Thanks!
>
> Ricardo Martinez.-
>
>
> > -----Mensaje original-----
> > De: Ricardo Martinez [mailto:rmartinez@redvoiss.net]
> > Enviado el: Jueves, 07 de Abril de 2005 13:07
> > Para: 'serusers(a)lists.iptel.org'
> > Asunto: [Serusers] Mediaproxy still consuming a lot of RAM
> resources.
> >
> >
> > Hello Again.
> > A few weeks ago i posted about my mediaproxy consuming
> > RAM resources
> > without releasing it. I upgraded to mediaproxy version 1.2.1
> > and even i
> > modified my mediaproxy configuration (in ser.cfg) with some
> > recommendation
> > from Paul (Java Rockx). All these efforts were useless, my
> > mediaproxy is
> > still consuming RAM and not releasing it. I made a simple
> > test.. Without
> > SER running i used the rtpgenerator (in the utils directory
> > of mediaproxy)
> > to load the mediaproxy, and this is what i found.
> > At the beggining of my test the "free" command show me this ::
> >
> > Every 1s: free
> > Thu Apr 7 13:50:05 2005
> >
> > total used free shared
> > buffers cached
> > Mem: 514196 429208 84988 0
> > 73672 217444
> > -/+ buffers/cache: 138092 376104
> > Swap: 1044216 0 1044216
> >
> > 84 M free.
> >
> > I run the rtp proxy for about 80 simmultaneus calls.
> >
> > When i finish the rtp sessions i see the output of free command:
> > Every 1s: free
> > Thu Apr 7 13:53:43 2005
> >
> > total used free shared
> > buffers cached
> > Mem: 514196 437868 76328 0
> > 74952 216288
> > -/+ buffers/cache: 146628 367568
> > Swap: 1044216 0 1044216
> >
> > 76 M free.
> >
> > As you can see it seems that the mediaproxy is not releasing
> > the RAM memory.
> > I see the command "top" and this is what i get :
> >
> > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM
> TIME COMMAND
> > 26972 root 15 0 12320 12M 2004 S 0.0 2.3 1:02
> > mediaproxy.py
> >
> > The 2.3% is always increasing.
> >
> > Can someone help me here?
> > Thanks!
> >
> > Ricardo Martinez.-
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers(a)lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> >
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
Hello,
When I removed the ser.pid file from /var/run and ran
/opt/ser/sbin/serctl start, it said SER had started. Then when I look
at pstree, I see 2 * [ser]. However usually when SER is working
properly it says 27 * [ser]. When I check netstat -tunap, I dont see
SER working.
Any other ideas?
---- Original Message ----
From: llanosserna(a)hotmail.com
To: ashling.odriscoll(a)cit.ie
Subject: RE: [Serusers] Starting SER : PID file exists
(/var/run/ser.pid)already running?
Date: Fri, 08 Apr 2005 13:53:25 +0200
><html><div style='background-color:'><DIV class=RTE></DIV>
><P>Make sure ser is not running with a </P>
><P>>ps -ef</P>
><P>I fit's not there, just remove the pid file</P>
><P>>rm /var/run/ser.pid</P>
><P>And then you should be able to start ser</P>
><P> </P>
><P> </P>
><P> </P>
><DIV class=RTE>>Hi, </DIV>
><DIV></DIV>>
><DIV></DIV>>I am wondering if anyone has ever come across this
>error before?:
><DIV></DIV>>
><DIV></DIV>>Starting SER : PID file exists! (/var/run/ser.pid)
>already running?
><DIV></DIV>>
><DIV></DIV>>I am using ser 0.9.0 and it worked like a charm the
>first few times
><DIV></DIV>>that I stopped and started SER. There are no errors in
><DIV></DIV>>/var/log/messages. I also started SER as
>/opt/ser/sbin/ser -c and it
><DIV></DIV>>showed that the config was ok and exited. However when
>I check
><DIV></DIV>>pstree, I dont see SER listening.
><DIV></DIV>>
><DIV></DIV>>Could it perhaps be something got to do with the
>database?. Example:
><DIV></DIV>>Should the version table in the SER database contain
>"version" or
><DIV></DIV>>"table_version"? I have tried dropping and restarting
>the database
><DIV></DIV>>i.e. /opt/ser/sbin/ser_mysql.sh drop, then
><DIV></DIV>>./opt/ser/sbin/ser_mysql.sh create.
><DIV></DIV>>
><DIV></DIV>>Any ideas would be appreciated.
><DIV></DIV>>Thanks,
><DIV></DIV>>Aisling.
><DIV></DIV>>
><DIV></DIV>>
><DIV></DIV>>-------------------Legal Disclaimer--------
>-------------------------------
><DIV></DIV>>
><DIV></DIV>>The above electronic mail transmission is confidential
>and intended only for the person to whom it is addressed. Its
>contents may be protected by legal and/or professional privilege.
>Should it be received by you in error please contact the sender at
>the above quoted email address. Any unauthorised form of reproduction
>of this message is strictly prohibited. The Institute does not
>guarantee the security of any information electronically transmitted
>and is not liable if the information contained in this communication
>is not a proper and complete record of the message as transmitted by
>the sender nor for any delay in its receipt.
><DIV></DIV>>
><DIV></DIV>>_______________________________________________
><DIV></DIV>>Serusers mailing list
><DIV></DIV>>Serusers(a)iptel.org
><DIV></DIV>>http://mail.iptel.org/mailman/listinfo/serusers
><DIV></DIV></div></html>
>
>
>-------------------Legal
>Disclaimer---------------------------------------
>
>The above electronic mail transmission is confidential and intended
>only for the person to whom it is addressed. Its contents may be
>protected by legal and/or professional privilege. Should it be
>received by you in error please contact the sender at the above
>quoted email address. Any unauthorised form of reproduction of this
>message is strictly prohibited. The Institute does not guarantee the
>security of any information electronically transmitted and is not
>liable if the information contained in this communication is not a
>proper and complete record of the message as transmitted by the
>sender nor for any delay in its receipt.
>
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
Hello,
I have problem about NAT , Sould I install the Rtpproxy with SER? ( I
only put the Nathelper in the SER)
I installed the SER in the a publib ip, other endpoints in private ip
. I want to let the endpoints transfers voice . But I failed when I step the
Nathelper's readme . Can it transfer voice when only use Nathelper ?The
config following :
# debugging mode
debug=3
fork=no
log_stderror=yes
# ------------------ module loading ----------------------------------
loadmodule "modules/nathelper/nathelper.so"
loadmodule "modules/textops/textops.so"
loadmodule "modules/tm/tm.so"
loadmodule "modules/rr/rr.so"
loadmodule "modules/registrar/registrar.so"
loadmodule "modules/usrloc/usrloc.so"
loadmodule "modules/sl/sl.so"
# ------------------ request-routing script --------------------------
# main routing logic
route{
# compulsory processing of Route header fields and adding RR
loose_route();
# ATA's are symmetric but don't advertise it -- force use of rport
if (search("User-Agent: Cisco ATA.*")) {
setflag(1); # remember this is ATA
force_rport();
fix_nated_contact();
};
/* registration (uses rewritten contacts) */
if (method=="REGISTER") {
save("foo.bar.com");
break;
};
if (method=="INVITE") {
record_route();
if (isflagset(1)) { # ATA ?
force_rtp_proxy();
};
/* set up reply processing */
t_on_reply("1");
};
/* set up reply processing and forward statefuly */
t_relay();
}
# all incoming replies for t_onrepli-ed transactions enter here
onreply_route[1] {
if (status=~"2[0-9][0-9]" && search("Server: Cisco ATA.*"))
fix_nated_contact();
force_rtp_proxy();
}
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
Ok, here's a little more info. It seems that the procs are getting
knocked off one by one at different places in the script. Sometimes it's
a register, sometimes it's a reply (ack), random stuff. I have break; at
each ending point, any suggestions?
-----Original Message-----
From: Greger V. Teigre [mailto:greger@teigre.com]
Sent: Thursday, April 07, 2005 1:30 PM
To: Matt Schulte; serusers(a)lists.iptel.org
Subject: Re: [Serusers] Child procs
Matt,
Why do you believe that you have been running out of processes? At any
given time you may have processes without CPU load, but over time the
processes should have some CPU time.
Have you run serctl ps? AFAIK, the standard number of processes for
each
protocol (udp/tcp) is 8 unless you specify children=x.
If a ser process blocks due to problems with mysql or a radius failover
situation, you may get a problem where all processes blocks.
g-)
Matt Schulte wrote:
> bueller? someone must have some clue
>
> -----Original Message-----
> From: Matt Schulte
> Sent: Tuesday, April 05, 2005 7:26 AM
> To: Matt Schulte; serusers(a)lists.iptel.org
> Subject: RE: [Serusers] Child procs
>
>
> Does anyone have any opinions on this? What I'm worried about is of
> course running out of procs and thus hanging SER, I believed this to
> have happened several times..
>
> Thanks..
>
> -----Original Message-----
> From: Matt Schulte
> Sent: Monday, April 04, 2005 8:45 AM
> To: serusers(a)lists.iptel.org
> Subject: [Serusers] Child procs
>
>
> Do increasing child procs actually do anything? When I do a 'ps axu' I
> only show 4 of the procs having CPU time, the rest having no cpu time
> at all. Any thoughts on this? Thanks, Matt
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hello List:
Have you guys experimented with any Dialup SIP Phones?
Whould you please share your experience with me, please.
Thanks,
Mohammad
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .