does anyone have example files to track cdrs in flat file and mysql
database? im also wondering what happens iof i restart ser while 100
concurrent calls are occuring, and they are still going through rtpproxy,
will the acc module keep tracking those cdrs?
I am needing to use the source IP for a few routines in my proxy server,
but the problem is that it is being forwarded to me by a dispatcher. I
am definitely needing the IP address.
My first inclination was to append a header field with the IP address.
This is quite easy. However, the hard part is using that passed in IP
address. I'm not sure what the best way would be to get that value into
the hands of several module functions like permissions =>
allow_trusted(), etc..
Any ideas?
thanks,
Rick
Hi Don,
For what I see from the system monitoring screen, the sems thread was removed when a caller hang up but the main sems threads are still running and growing in size. When the size reach 2GB, I can see pthread_create error 11. Size will only shrink when I restart sems but all my calls would have to be terminated abruptly.
I'm not familiar with ethereal in linux, is there an easier way to solve this, like sample codes that I can use in the script?
I have increased the RAM size to 1GB but it didn't help much. Sems just couldn't take more than 10 calls together running for more than 2hrs.
Any advice is greatly appreciated. Thanks.
Regards,
Nicky
----- Original Message -----
From: Nicky
To: don.fletcher(a)att.net ; serusers(a)lists.iptel.org ; sems(a)lists.iptel.org
Sent: Wednesday, February 22, 2006 9:37 AM
Subject: Re: [Sems] Sems Thread Memory
Hi Don,
Thank you for your reply. How can I check using commands that the thread is still in session? What are
the commands in the scripts that close the rtp session? Please advice. Thanks
Regards,
Nicky
----- Original Message -----
From: don.fletcher(a)att.net
To: Nicky
Sent: Tuesday, February 21, 2006 2:47 AM
Subject: Re: [Sems] Sems Thread Memory
Nicky,
Probably the RTP streams are not being closed down properly at the end of a call so that the threads remain in existence. Look at the media streams with ethereal. Look closely at call disconnect. Be sure all threads are closed.
don
-------------- Original message from "Nicky" <nicky(a)caliber.com.sg>: --------------
Dear All,
I am having a serious problem, my thread memory size is growing to up to 2GB which applies to SEMS, SER and Mysqld thread.
Please help. I am testing with about 10 people calling in at the same time. What shall I do? :(
Nicky
----- Original Message -----
From: Nicky
To: serusers(a)lists.iptel.org ; sems(a)lists.iptel.org
Sent: Saturday, October 29, 2005 11:44 AM
Subject: pthread create failed with code 11
Hi Support,
I have experienced this error, please advice what can be the caused. Thanks.
ERROR: start (AmThread.cpp:85): pthread create failed with code 11
Regards,
Nicky
Hi All,
I'm curious if anyone knows if CDRTool can properly
handle call transfers made with SIP REFER and bill the
referrer accordingly?
On a related question, can CDRTool handle "302 Moved
Temporarily" call forwarding?
Any info would be greatly appreciated. Thanks!
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hi guys, I'm going to be writing a script to make modifications to SER (Eg:
add/modify/delete users/aliases, etc). I'm wondering whether it's "better"
to
1) use /usr/sbin/serctl
or
2) directly modify the MySQL SER database
What advantages/disadvantages are there for each method? Are there any
reasons why it's not advisable to directly modify the MySQL SER database
to accomplish tasks such as adding a user?
Thanks for your input!
-- Nick
e: nick.hoffman(a)altcall.com
p: +61 7 5591 3588
f: +61 7 5591 6588
If you receive this email by mistake, please notify us and do not make any
use of the email. We do not waive any privilege, confidentiality or
copyright associated with it.
i have set ser up on suse and it all seems to be working fine itsthe newest
version of ser with mysql all tables went in fine i edited the config file
and there were no errors i was abel to add users useing the serctl command
e.g.
serctl add username pass email
and it went in fine i checked it with phpmyadmin
but when i try and ceonect to my server with the corect username and pass it
conects but it dosent register here is the log from express talk
15:27:43 Restarting the SIP Engine so settings take effect.
15:27:50 SIP Private IP is: 192.168.1.3:5060
15:27:50 Unable to auto-detect public IP. Using private IP
15:27:50 SIP Public IP is: 192.168.1.3:5060
15:27:50 SIP Number: admin@192.168.1.3:5060
15:28:30 Server 192.168.1.5 did not respond to register (user admin)
15:28:30 Check server details for that line
useing ethereal on the server it shows the request comeing in but the server
dosent respond.
i dont know if ser keeps any logs andf if they do i have no idea were they
are.
im sure this is a comman error so it should hopefully be easy to fix. :)
thanks
Hi!
I managed to update the FreeBSD SER port during some longish friday
afternoon phone conference.
- rm -r /usr/ports/net/ser
- extract http://dump.wormulon.net/patches/ser-freebsd.tar.gz
to /usr/ports/net (will create ser directory)
I've added a bunch of OPTIONS. If you need any more drop me a mail.
The init script part is still untouched and as of now you need to
copy the init script to /usr/local/etc/rc.d et al.
The port is based on the CVS freebsd/ directory rather than the
FreeBSD port itself wich is cluttered with small patches and
appeared hard to update/maintain.
Enjoy,
Hendrik
--
Hendrik Scholz - <hscholz(a)raisdorf.net> - http://www.wormulon.net/
Hello,
avpops module has a new function which allow to execute raw SQL queries
and store the result in AVPs.
avp_db_query(query, dest);
The query given as parameter can contain pseudo-variables. Using this
function you can benefit of full database system features, being able to
do joins, unions, etc. Old db-related functions are in place since they
are faster for their usage case.
The documentation of the of avpops module was updated and posted at:
http://openser.org/docs/modules/1.1.x/avpops.html
A small example of usage: limit the number of calls done in the last day:
if(is_method("INVITE") && !has_totag())
{
if(avp_db_query("select count(*) from acc where username='$fU' and
domain='$fd' and method='INVITE' and timestamp>=$Ts-24*3600",
"$avp(i:234)"))
{
if(avp_chech("$avp(i:234)", "ge/i:10"))
{
sl_send_reply("403", "too many calls in the last day");
exit();
}
}
}
Cheers,
Daniel
On 03/03/06 07:46, vikram sarathy wrote:
>
> hi daniel,
> thanks for this mail, i created a table in database and stored
> ip's of all servers and by using avp_db_query() function, and trying
> to store all this ip's of server into default varables
> "$avp(i:1);$avp(i:2);...".
> in my openser.conf file i am trying to do,
> rewritehost("$avp(i:1)");
>
rewritehost() has no support for pseudo-variables. You have to use
avp_pushto("$ruri/domain","$avp(i:1)").
Cheers,
Daniel
> append_branch();
> rewritehost("$avp(i:2)");
> append_branch();
> for parrallel forking. here i have used 2 ip's hard coded. this has to
> happen in generic, mean to say for the number of servers in database
> list,rewritehost() and append_branch() has to called. is there any
> function to do this.
>
> with regrads
> vicky
>
>
> On Thu, 02 Mar 2006 Daniel-Constantin Mierla wrote :
> >Hello,
> >
> >On 03/02/06 10:23, vikram sarathy wrote:
> >>
> >> hi,
> >> i have 3 servers in my setup, in which each server has a user
> registered. i need to route a call from one server to other. in first
> case i kept all servers in same domine and later i need to check with
> all servers in different domains.
> >>
> >>can any one tell me is there any way to achive this.
> >>
> >one possible way, very simple, is to store for each user the address
> of the server which keeps the location information. You can load the
> address via avpops module and then set the dst_uri to it and forward.
> >
> >Other way is to split the users based on some rules (e.g, prefix) to
> learn easily to which server the user belongs. As an alternative, you
> can try serial/parallel forking to all servers.
> >
> >Daniel
> >
> >>
> >>with regards
> >>vicky
> >>
> >>vicky
> >>
> >>
> >><http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signa…>
>
> >>------------------------------------------------------------------------
> >>
> >>_______________________________________________
> >>Users mailing list
> >>Users(a)openser.org
> >>http://openser.org/cgi-bin/mailman/listinfo/users
> >>
>
>
>
> <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signa…>