Hi,
I ve got JDS (java desktop system ) and I want to
intall ser. I ve already finished with the SIP tutorial
and also have downloaded the ser-0.8.12_linux_i386.tar.gz
file. This file appears in the temp folder and it appears
as ser-0.8.12_linux_i386.tar but without the gz at the
end.
Then i ve also tar the file by command
# tar xvf <file name>
But this command dosent seem to work . Please can you
assist me how to install this on my JDS.
I ll be really greatful to you.
Thanking you
Shahzad
Anyone help me with this one.
I am trying to group users so that some are allowed place SIP->SIP calls via
the proxy, and others are also allowed to access the PSTN.
An extract of the ser.cfg is below:
if (!is_user_in("credentials","int")) {
sl_send_reply("403", " no permission for external calls");
break;
}
When this is called, I receive this in /var/log/messages:
Mar 2 22:04:41 ns-nby-ser1 /usr/local/sbin/ser[6988]: is_user_in(): No
authorized credentials found (error in scripts)
And the user fails to connect.
Any ideas would be greatly appreciated.
Mike
Hello All,
I have been trying to get aliases to work without much luck. Could someone
point me in the right direction?
I am using
[doon@webdisk0:ser] ser -V
version: ser 0.8.13-dev-23-merged (i386/freebsd)
flags: STATS:Off, USE_TCP, DISABLE_NAGLE, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
[doon@webdisk0:ser] serctl alias add 4324327 sip:004327@sip.inoc.net
sip:004327@sip.inoc.net
200 Added to table
('4324327','sip:004327@sip.inoc.net') to 'aliases'
[doon@webdisk0:ser] serctl alias show 4324327(a)sip.inoc.net
<sip:004327@sip.inoc.net>;q=1.00;expires=-104
Using the basic ser.cfg file, with just the changes to get it to work with
mysql, and authentication.
Running with Debug 7. here is what I get.. Most of the extra cruft trimmed
out.
0(52806) lookup(): '4324327(a)sip.inoc.net' Not found in usrloc
0(52806) check_self - checking if host==us: 12==14 && [sip.inoc.net] ==
[64.246.134.130]
0(52806) check_self - checking if port 5060 matches port 5060
0(52806) check_self - checking if host==us: 12==14 && [sip.inoc.net] ==
[64.246.134.130]
0(52806) check_self - checking if port 5060 matches port 5060
0(52806) lookup(): '4324327(a)sip.inoc.net' Not found in usrloc
Right now this is basically an internal test. Trying to make it so we have our
internal extensions mapped, but if people dial our real PSTN Numbers they get
translated to our extentsions.
Any help would be greatly appreciated.
Thanks,
-Patrick
--
Patrick Muldoon
Network/Software Engineer
INOC (http://www.inoc.net)
PGPKEY (http://www.inoc.net/~doon)
Key ID: 0x370D752C
Calculating in binary code is as easy as 01,10,11.
has anyone successfully configured ser for access to US-based 8xx numbers? FWD service has this capability. If yes, please share information on how to achieve this.
---------------------------------
Do you Yahoo!?
Get better spam protection with Yahoo! Mail
Can anyone please tell me where the default text for the voicemail system is
held. It is not in either my ser.cfg or sems.cfg.
Example:
Received mail from voicemail.iptel.org
Hello <sip:89001@sip.netsquare.co.uk>,
"Mike Fallows" <sip:mike2@sip.netsquare.co.uk> left a voice message for you.
Thank you for using iptel.org's Voicemail.
Your voicemail system.
---------------------------------------------------------
This message was created by iptel.org's voicemail system.
Please review www.iptel.org for more information.
---------------------------------------------------------
Thanks
Mike
I rebuilt my server with fresh install and plain
configuration:
SERCTL: 1.62.4.1
SER: 0.8.12-tcp_nonb (i386/linux)
Through serweb's user interface, I subscribed for user
"8111". Confirmation went well. However, the system
auto added alias of 82000 for the user I created. What
could be wrong?
"serctl ul show" gives me:
===========================
...Record(0x422bb140)...
domain: 'aliases'
aor : '82000'
~~~Contact(0x422bb180)~~~
domain : 'aliases'
aor : '82000'
Contact: 'sip:8111@mydomain.com'
Expires: 567647871
q : 1.00
Call-ID:
'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything'
CSeq : 42
replic : 0
State : CS_SYNC
Flags : 0
next : (nil)
prev : (nil)
~~~/Contact~~~~
.../Record...
ser.cfg:
=========
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 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)
/* Uncomment these lines to enter debugging mode
debug=7
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_mode=0666
# ------------------ 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"
# 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_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
alias=sip01.mydomain.com
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 > max_len ) {
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
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
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("mydomain.com", "subscriber")) {
www_challenge("mydomain.com", "0");
break;
};
save("location");
break;
};
lookup("aliases");
# native SIP destinations are handled
using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not
Found");
break;
};
};
# forward to current uri now; use stateful
forwarding; that
# works reliably even if we forward from TCP
to UDP
if (!t_relay()) {
sl_reply_error();
};
}
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com
I did not have a problem with STUN and SER when I was
using the latest dev code checked out of CVS. I have
recently downgraded to the stable SER 0.8.12-tcp_nonb
checked out of CVS and started seeing issues for
X-lite clients behind NAT (non-symmetric) in SIP
registration where SER is saving the private IP of the
client rather than the "req_src_ip". X-lite log and
SER config provided below. Is this a known limitation
in 0.8.12 or is it a configuration issue?
Please provide guidance.
******ser.cfg***************
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 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)
/* Uncomment these lines to enter debugging mode
debug=7
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_mode=0666
# ------------------ 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"
# 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_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
alias=sip01.mydomain.net
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 > max_len ) {
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
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
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("mydomain.net", "subscriber")) {
www_challenge("mydomain.net", "0");
break;
};
save("location");
break;
};
lookup("aliases");
# native SIP destinations are handled
using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not
Found");
break;
};
};
# forward to current uri now; use stateful
forwarding; that
# works reliably even if we forward from TCP
to UDP
if (!t_relay()) {
sl_reply_error();
};
}
****************************
******X-lite log***************
(c)2003 Xten Networks Inc. All rights reserved.
Private build: 1101
License key: 3AF6626C2FDE4D299EF7D63AC35AAD70
Established SIP protocol listen on: 192.168.0.5:5060
Discovered Port Restricted Cone NAT Firewall
SIP: 192.168.0.5:5060
RTP: 192.168.0.5:8000
NAT: 2xx.9x.1x.2x
PROXY#0: 6x.1xx.2x.2xx:5060
OUTBOUND-PROXY#0: 6x.1xx.2x.2xx:5060
SEND >> 6x.1xx.2x.2xx:5060
REGISTER sip:sip01.mydomain.net SIP/2.0
Via: SIP/2.0/UDP
192.168.0.5:5060;rport;branch=z9hG4bK2471A18BED4E42C9BB13A280DD7DF278
From: User 1 <sip:8444@sip01.mydomain.net>
To: User 1 <sip:8444@sip01.mydomain.net>
Contact: "User 1" <sip:8444@192.168.0.5:5060>
Call-ID:
3876234D9BC344B28AF7F67942511C61(a)sip01.mydomain.net
CSeq: 36317 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite build 1101
Content-Length: 0
RECEIVE << 6x.1xx.2x.2xx:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
2xx.9x.1x.2x:42418;rport=5060;branch=z9hG4bK2471A18BED4E42C9BB13A280DD7DF278
From: User 1 <sip:8444@sip01.mydomain.net>
To: User 1
<sip:8444@sip01.mydomain.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.ceb7
Call-ID:
3876234D9BC344B28AF7F67942511C61(a)sip01.mydomain.net
CSeq: 36317 REGISTER
WWW-Authenticate: Digest realm="mydomain.net",
nonce="40444a547dbb3567146e616e74096f4d56465461"
Server: Sip EXpress router (0.8.12-tcp_nonb
(i386/linux))
Content-Length: 0
Warning: 392 6x.1xx.2x.2xx:5060 "Noisy feedback tells:
pid=30339 req_src_ip=2xx.9x.1x.2x req_src_port=5060
in_uri=
sip:sip01.mydomain.netout_uri=sip:sip01.mydomain.net
via_cnt==1"
SEND >> 6x.1xx.2x.2xx:5060
REGISTER sip:sip01.mydomain.net SIP/2.0
Via: SIP/2.0/UDP
192.168.0.5:5060;rport;branch=z9hG4bKB3D25AC35E8449E1A33A5210805F0BF2
From: User 1 <sip:8444@sip01.mydomain.net>
To: User 1 <sip:8444@sip01.mydomain.net>
Contact: "User 1" <sip:8444@192.168.0.5:5060>
Call-ID:
3876234D9BC344B28AF7F67942511C61(a)sip01.mydomain.net
CSeq: 36318 REGISTER
Expires: 1800
Authorization: Digest
username="8444",realm="mydomain.net",nonce="40444a547dbb3567146e616e74096f4d56465461",response
="d5314f1a24e2759a5e2efbb5a283c03a",uri="sip:sip01.mydomain.net"
Max-Forwards: 70
User-Agent: X-Lite build 1101
Content-Length: 0
RECEIVE << 6x.1xx.2x.2xx:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP
2xx.9x.1x.2x:42418;rport=5060;branch=z9hG4bKB3D25AC35E8449E1A33A5210805F0BF2
From: User 1 <sip:8444@sip01.mydomain.net>
To: User 1
<sip:8444@sip01.mydomain.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.79a6
Call-ID:
3876234D9BC344B28AF7F67942511C61(a)sip01.mydomain.net
CSeq: 36318 REGISTER
Contact:
<sip:8444@192.168.0.5:5060>;q=0.00;expires=1800
Server: Sip EXpress router (0.8.12-tcp_nonb
(i386/linux))
Content-Length: 0
Warning: 392 6x.1xx.2x.2xx:5060 "Noisy feedback tells:
pid=30321 req_src_ip=2xx.9x.1x.2x req_src_port=5060
in_uri=
sip:sip01.mydomain.netout_uri=sip:sip01.mydomain.net
via_cnt==1"
*************************
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com
Could someone PLEASE help me with this, it's driving me nuts!
Having a strange one since I put voicemail module in. For some unknown
reason it fails to connect to the MYSQL database. The original config works
fine.
Loading ser reports the following:
0(2369) DBT:dbt_cache_get_db:dbtext cache is not initialized!
0(2369) DBT:dbt_init: cannot get the link to database
0(2369) mod_init(): Error while connecting database
0(2369) init_mod(): Error while initializing module usrloc
ERROR: error while initializing modules
0(2369) DBT:destroy ...
0(2369) DEBUG: tm_shutdown : start
0(2369) DEBUG: tm_shutdown : empting DELETE list
0(2369) DEBUG: tm_shutdown : empting hash table
0(2369) DEBUG: tm_shutdown: releasing timers
0(2369) DEBUG: tm_shutdown : removing semaphores
0(2369) DEBUG: tm_shutdown : done
0(2369) shm_mem_destroy
The mod loads from the ser.cfg are as follows:
# ------------------ 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"
# 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"
loadmodule "/usr/local/lib/ser/modules/nathelper.so"
# Load accounting
loadmodule "/usr/local/lib/ser/modules/acc.so"
# load the voicemail module
#loadmodule "/usr/local/lib/ser/modules/vm.so"
# ----------------- setting module-specific parameters ---------------
# -- registrar parameter
# special NAT flag indicates that a registered client is behind NAT
modparam("registrar", "nat_flag", 6)
# -- usrloc params --
#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)
Many thanks.
Mike
Hi,
I am having problem from calling a UA from a Symmetric Network to another
network of the same. There is no audio but connected. I have checked the
ethereal but no audio can be heard. Can anyone help...? Thanks!!
Regards,
Shirley