I configured radius accounting and added the contents of
/etc/ser/dictionary.ser to /etc/radiusclient/dictionary and get the
following errors when starting radiusd:
rlm_acct_unique: Cannot find attribute 'Client-IP-Address' in dictionary
So I took the one out of:
/usr/src/ser/ser-0.9.7-pre1/modules/acc/etc/sip_dictionary
and appended it to the original dicitionary and received the same error.
Does anyone know what I may be doing wrong?
-John
Hello,
Everything works fine if I run Proxy without TLS disabled.
I tried both TCP/UDP, it works fine.
For TLS, Registration went fine however Proxy responds "513 Message
too big" .
I don't see any wrong headers in the message.
The length is almost same for TCP and TLS invite message, the only
change is sip and sips.
Any C file I need to modify?
Openser.conf
#
# $Id: openser.cfg,v 1.5 2005/10/28 19:45:33 bogdan_iancu Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=9 # debug level (cmd line: -dddddddddd)
#fork=yes
#log_stderror=no # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
fork=no
log_stderror=yes
*/
check_via=yes # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. lineset sip register_timeout: -R)
port=5061
children=4
fifo="/tmp/openser_fifo"
#
# uncomment the following lines for TLS support
disable_tls = 0
listen = tls:158.218.105.138:5061
tls_verify = on
tls_require_certificate = on
tls_method = TLSv1
tls_certificate = "/home/mreddy/tools/cert.pem"
tls_private_key = "/home/mreddy/tools/priv.pem"
tls_ca_list = "/home/mreddy/tools/root_cert_fluffyCA.pem"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
#loadmodule "/usr/local/lib/openser/modules/mysql.so"
loadmodule "/usr/local/lib/openser/modules/sl.so"
loadmodule "/usr/local/lib/openser/modules/tm.so"
loadmodule "/usr/local/lib/openser/modules/rr.so"
loadmodule "/usr/local/lib/openser/modules/maxfwd.so"
loadmodule "/usr/local/lib/openser/modules/usrloc.so"
loadmodule "/usr/local/lib/openser/modules/registrar.so"
loadmodule "/usr/local/lib/openser/modules/textops.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
#loadmodule "/usr/local/lib/openser/modules/auth.so"
#loadmodule "/usr/local/lib/openser/modules/auth_db.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 2)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
#modparam("usrloc", "db_mode", 2)
#modparam("usrloc|auth_db", "db_url", "dbtext:///tmp/openserdb")
# -- auth params --
# Uncomment if you are using auth module
#
#modparam("auth_db", "calculate_ha1", yes)
# If you set "calculate_ha1" parameter to yes (which true in this
config),
# uncomment also the following parameter)
#modparam("auth_db", "password_column", "password")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
};
#if 1
if (msg:len >= 4096 ) {
sl_send_reply("513", "Message too big");
exit;
};
#endif
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
if (!method=="REGISTER")
record_route();
# subsequent messages withing a dialog should take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
};
if (!uri==myself) {
# mark routing logic in request
append_hf("P-hint: outbound\r\n");
# if you have some interdomain connections via
TLS
#if(uri=~"@tls_domain1.net") {
#
t_relay_to_tls("IP_domain1","port_domain1");
# exit;
#} else if(uri=~"@tls_domain2.net") {
#
t_relay_to_tls("IP_domain2","port_domain2");
# exit;
#}
route(1);
};
# if the request is for other domain use UsrLoc
# (in case, it does not work, use the following command
# with proper names and addresses in it)
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use
digest authentication
#if (!www_authorize("openser.org",
"subscriber")) {
#
www_challenge("openser.org", "0");
# exit;
#};
save("location");
exit;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound
alias\r\n");
route(1);
};
# native SIP destinations are handled using our
USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
exit;
};
append_hf("P-hint: usrloc applied\r\n");
};
route(1);
}
route[1] {
# send it out now; use stateful forwarding as it works
reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
exit;
}
Thanks,
Murali Reddy
Texas Instruments
Hi,
I am planning to integrate SEMS (media server) with SER to develop some conferencing and IVR applications on top of that. While I was trying to checkout SEMS code from SVN repository using SVN: or HTTP: it is not getting downloaded. It was throwing some connection failure error.
The commands which I tried are:
svn checkout svn://svn.berlios.de/sems/trunk,
and
svn checkout http://svn.berlios.de/svnroot/repos/sems/trunk
So it will be great if somebody can provide me some pointer on:
1. How can I checkout SEMS source successfully?
2. Is there any SEMS source tarball readily available to download?
3. Is there any SEMS ready to install binary on debian platform is available?
4. Whether SEMS support Voice XML (VXML)?
Regards,
Benjamin.
-------- Original Message --------
Subject: Re: [Serusers] first posting, got a few problems..
Date: Fri, 23 Jun 2006 15:51:06 +0200
From: nick <nick(a)mobilia.it>
To: Atle Samuelsen <clona(a)cyberhouse.no>
References: <449BCB37.5030908(a)mobilia.it>
<20060623113401.GM86417(a)mystic.cyberhouse.no>
Atle Samuelsen wrote:
> Hi nick
>
> Try to do the following :
>
> ulimit -c unlimited
>
> that will make it coredump instead.
> then, next time you start it, it should make a core file ser.core or
> something like that.
>
> When that´s done, do :
>
> gdb �-c ser.core(orwhatthecorefileiscalled)ser
>
> this will open gdb, so you can run a backtrace.
>
> type :
> bt
>
> and you will get the backtrace. Past it here, and maybe somebody can see
> what´s wrong :-)
>
> Best regards,
>
> Atle
>
>
> * nick <nick(a)mobilia.it> [060623 12:29]:
>
>>To explain my situation, I've got a dual opteron 246 system with 1gig of ram and 2 80gig disks in raid1 (software raid), I'm running CentOS 4.3 x86_64 with kernel 2.6.9-34.ELsmp I'm running ser 0.9.6-6 (the
>>-6 may just be an artifact from the fedora core rpm.. I dunno) (compiled from ser-0.9.6_src.tar.gz)
>>
>>
>>Since no one seems to makes rpms for redhat or centOS (the same thing obviously) I went and made my own. I grabbed a fedora core 6 src rpm, and modified the specfile to my own liking (basically I took out
>>the stuff related to postgres), the compile went fine, as far as I can tell, no errors were big enough to stop the compilation at least, and the rpms installed just fine. All the modules are in the right
>>place, and my ser.cfg seems to be correct (I don't get any more errors during startup), however, I do get a segfault :(
>>
>>here's the attached output from /log/messages
>>
>>Jun 23 12:20:18 sipserver ser: Listening on
>>Jun 23 12:20:18 sipserver ser: udp: 192.168.1.93 [192.168.1.93]:5060
>>Jun 23 12:20:18 sipserver ser: tcp: 192.168.1.93 [192.168.1.93]:5060
>>Jun 23 12:20:18 sipserver ser: Aliases:
>>Jun 23 12:20:18 sipserver ser: tcp: pc-00093:5060
>>Jun 23 12:20:18 sipserver ser: udp: pc-00093:5060
>>Jun 23 12:20:18 sipserver ser:
>>Jun 23 12:20:18 sipserver kernel: ser[3682]: segfault at 0000000000000000 rip 0000002a9589ef92 rsp 0000007fbffff850 error 4
>>Jun 23 12:20:18 sipserver ser: ser startup succeeded
>>
>>Obviously ser isn't running, does anyone have any idea where I can start looking to find out what dies/died/went wrong with the compile?
>>
>>Thanks,
>>
>>Nick
>>_______________________________________________
>>Serusers mailing list
>>Serusers(a)lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
>>
>
>
Can you tell me where it should create this coredump?
I did the ulimit -c unlimited and restarted ser both manually and with
the init.d command, but neither command seems to have created a file for
me to parse...
Hi George
You can go here
http://ftp.iptel.org/pub/sems/
you will find every thing you need
Aimable
________________________________
From: serusers-bounces(a)lists.iptel.org
[mailto:serusers-bounces@lists.iptel.org] On Behalf Of
Benjamin.George(a)t-systems.com
Sent: Friday, June 23, 2006 2:37 PM
To: serusers(a)lists.iptel.org
Subject: [Serusers] Facing problems while downloading SEMS
Hi,
I am planning to integrate SEMS (media server) with SER to develop some
conferencing and IVR applications on top of that. While I was trying to
checkout SEMS code from SVN repository using SVN: or HTTP: it is not
getting downloaded. It was throwing some connection failure error.
The commands which I tried are:
svn checkout svn://svn.berlios.de/sems/trunk,
and
svn checkout http://svn.berlios.de/svnroot/repos/sems/trunk
So it will be great if somebody can provide me some pointer on:
1. How can I checkout SEMS source successfully?
2. Is there any SEMS source tarball readily available to download?
3. Is there any SEMS ready to install binary on debian platform is
available?
4. Whether SEMS support Voice XML (VXML)?
Regards,
Benjamin.
Hi I am getting "ERROR: bad config file (1 errors)" while truing to execute
the SER.
And I could not figure out whats wrong with this line
loadmodule "/usr/local/lib/ser/modules/mysql.so"
If I comment it then everything is file.
Following is my ser.cfg file
---------------------------------ser.cfg star------------------------------
#
# $Id: ser.cfg,v 1.25.2.1 2005/02/18 14:30:44 andrei Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no # (cmd line: -E)
listen=192.87.41.149 #this address has been changed
# hostname matching an alias will satisfy the condition uri==myself".
alias=sip.myserver.com
/* Uncomment these lines to enter debugging mode
fork=no
log_stderror=yes
*/
#check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
fifo_db_url="mysql://ser:heslo@localhost/ser"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/uri_db.so" #added by mukesh
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
modparam("usrloc", "db_url", "mysql://ser:heslo@localhost/ser") #added by
mukesh
modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 2)
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
modparam("auth_db", "password_column", "password")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
#modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
break;
};
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
if (!method=="REGISTER") record_route();
# subsequent messages withing a dialog should take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if (!uri==myself) {
# mark routing logic in request
append_hf("P-hint: outbound\r\n");
route(1);
break;
};
# if the request is for other domain use UsrLoc
# (in case, it does not work, use the following command
# with proper names and addresses in it)
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("sip.myserver.com",
"subscriber")) {
www_challenge("ser.hungama.com", "0");
break;
};
save("location");
break;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1]
{
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
}
---------------------------------ser.cfg ends------------------------------
Any help/suggestion is highly appreciated.
Regards
Mukesh
Hi!I've created openser.pid with openser -P /var/run/openser.pid but the
file is empty and if I start openserctl restart it says that doesn't exist
the openser.pid file.....
Which values have I to set enter the openser.pid?(I put them editing the
file....)
Yes ilker, MediaProxy relays IP packets at layer 3. It does not
interpret the content of the RTP packets (like used codecs) nor does
it do any conversion, it's a simple IP packet relay, which works for
any type of media session negotiated between the user agents.
Adrian
======
I think mediaproxy can't do transcoding. Can anyone confirm this ?
Thanks,
ilker
Daer All,
I am trying to configure my Sip server about a month now. Still I have
problem of connecting a UA to the Sip Server.
Folowing two activities I have done and activity two confirm that client is
trying to connect to the Sip server @ 192.248.48.38. But still user is not
registering.
In my sip server I have created one account for testing as follows.
serctl add sip1 sip1ppp sip1(a)sip.ruh.ac.l
I will also attach my ser.cfg file. Please somebody check the .cfg file and
let me know any changes I need or any other solution for my problem
Thanks
Aruna
1. serctl ul show
----------------
===Domain list===
---Domain---
name : 'aliases'
size : 512
table: 0xb6153ed8
d_ll {
n : 0
first: (nil)
last : (nil)
}
---/Domain---
---Domain---
name : 'location'
size : 512
table: 0xb6151e78
d_ll {
n : 0
first: (nil)
last : (nil)
}
---/Domain---
===/Domain list===
[root@SipServer ~]#
2. ngrep -W byline sip1 port 5060 -q
---------------------------------
U 192.248.48.25:5060 -> 192.248.48.38:5060
REGISTER sip:sip.ruh.ac.lk SIP/2.0.
Via: SIP/2.0/UDP
192.248.48.25:5060;rport;branch=z9hG4bKAFD579D50D4A4A9BB71882B15F53078D.
From: aruna <sip:sip1@sip.ruh.ac.lk>;tag=2467586724.
To: aruna <sip:sip1@sip.ruh.ac.lk>.
Contact: "aruna" <sip:sip1@192.248.48.25:5060>.
Call-ID: E1A26030F76346DDAF92D1E10E897349(a)sip.ruh.ac.lk.
CSeq: 65515 REGISTER.
Expires: 1800.
Max-Forwards: 70.
User-Agent: X-Lite release 1103m.
Content-Length: 0.
.
----------------------------------------------------------
S. A. S. Lorensuhewa
Head, Department of Computer Science
University of Ruhuna, Matara, Sri Lanka
Telephone: 0094 (0)41 2227019
Fax: 0094 (0)41 2222683
Email: lorensuhewa(a)cc.ruh.ac.lk, aruna(a)cc.ruh.ac.lk
Hi,
Yes I have the python mysql package installed. My radacct table is like below:
mysql> describe radacct;
+-------------------------+----------------------+------+-----+---------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------------+----------------------+------+-----+---------------------+----------------+
| RadAcctId | bigint(21) | NO | PRI | NULL | auto_increment |
| AcctSessionId | varchar(255) | NO | MUL | | |
| AcctUniqueId | varchar(255) | NO | MUL | | |
| UserName | varchar(64) | NO | MUL | | |
| Realm | varchar(64) | YES | MUL | | |
| NASIPAddress | varchar(15) | NO | MUL | | |
| NASPortId | varchar(50) | NO | | | |
| NASPortType | varchar(255) | NO | | | |
| AcctStartTime | datetime | NO | MUL | 0000-00-00 00:00:00 | |
| AcctStopTime | datetime | NO | MUL | 0000-00-00 00:00:00 | |
| AcctSessionTime | int(12) | YES | | NULL | |
| AcctAuthentic | varchar(32) | YES | | NULL | |
| ConnectInfo_start | varchar(32) | YES | | NULL | |
| ConnectInfo_stop | varchar(32) | YES | | NULL | |
| AcctInputOctets | bigint(12) | YES | | NULL | |
| AcctOutputOctets | bigint(12) | YES | | NULL | |
| CalledStationId | varchar(50) | NO | MUL | | |
| CallingStationId | varchar(50) | NO | MUL | | |
| AcctTerminateCause | varchar(32) | NO | | | |
| ServiceType | varchar(32) | YES | | NULL | |
| FramedProtocol | varchar(32) | YES | | NULL | |
| FramedIPAddress | varchar(15) | NO | | | |
| AcctStartDelay | int(12) | YES | | NULL | |
| AcctStopDelay | int(12) | YES | | NULL | |
| SipMethod | varchar(50) | NO | | | |
| SipResponseCode | smallint(5) unsigned | NO | | 0 | |
| SipToTag | varchar(128) | NO | | | |
| SipFromTag | varchar(128) | NO | | | |
| SipTranslatedRequestURI | varchar(255) | NO | MUL | | |
| SipUserAgents | varchar(255) | NO | | | |
| SipApplicationType | varchar(255) | NO | | | |
| SipCodecs | varchar(255) | NO | | | |
| SipRPID | varchar(255) | NO | | | |
| SipRPIDHeader | varchar(255) | NO | | | |
| SourceIP | varchar(255) | NO | MUL | | |
| SourcePort | varchar(255) | NO | | | |
| CanonicalURI | varchar(255) | NO | MUL | | |
| DelayTime | varchar(5) | NO | | | |
| Timestamp | bigint(20) | NO | | 0 | |
| DestinationId | varchar(15) | NO | MUL | | |
| Rate | text | NO | | | |
| Price | double(20,4) | YES | | NULL | |
| Normalized | enum('0','1') | YES | MUL | 0 | |
| BillingId | varchar(255) | NO | MUL | | |
| MediaInfo | varchar(32) | YES | MUL | NULL | |
| RTPStatistics | text | NO | | | |
| FromHeader | varchar(128) | NO | | | |
| UserAgent | varchar(128) | NO | | | |
| Contact | varchar(128) | NO | | | |
+-------------------------+----------------------+------+-----+---------------------+----------------+
49 rows in set (0.04 sec)
Any idea where the problem is ?
Thanks,
ilker
-----Original Message-----
From: serusers-bounces(a)lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Adrian Georgescu
Sent: Friday, June 23, 2006 11:22 AM
To: serusers(a)lists.iptel.org
Subject: [Serusers] Mediaproxy problem - accounting
hi Ilker,
Pl check if you have the mysql python package installed. On Debian the name of the packet is python-mysqldb
ii python-mysqldb 1.2.1c3-4 A Python interface to
MySQL
also make sure you have the extra fields in the radacct table.
Adrian
=============
Hi,
I am trying to use dbaccounting with mediaproxy. Undfortunately it doesn't seem to send anything to mysql db.
How can I trace where the problem is ?
My mediaproxy accounting config is :
[Accounting]
dbaccounting = on
[Database]
user = ser
password = heslo
host = 127.0.0.1
database = radius
table = radacct
Thanks,
ilker
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
<http://387555.sigclick.mailinfo.com/sigclick/02010304/06044C09/000F054D/018…>
_____________________________________________________________________________________________________________________________________________
Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez.
This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
_____________________________________________________________________________________________________________________________________________