Hi,
I add the /ser_file/modules/mediaproxy/config/ser.cfg to the current ser.cfg and do correction for the path of modules ( .so) and try run ./ser start but there is a bad config errors.
Anybody can help me?
---------------------------------
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.
kphone work with ser.can NOT disconnect.kphone is no respond
show KCallWidget: Starting force disconnect...
then kphone is no respond .
why? help me
# kphone
....
SipClient: Receiving message...
SipClient: Received: 15:26:25.776
---------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.139.58;rport=15073;received=222.33.36.198
CSeq: 6935 BYE
To: "24800027" <sip:t1@t1.com>;tag=e2tQMqJQRd42Gx0hev
From: "wxt" <sip:t2@51t1.com>;tag=7A3E61A4
Call-ID: cc8TxjEcMBWRed(a)192.168.139.157
Server: VizufonSIP/0.2 (beta.EP.CNSTEC.Sep 15 2004)
Content-Length: 0
SipCall: Incoming response
SipCall: Checking for Contact and Record-Route
SipTransaction: Incoming Response
SipCallMember: localStatusUpdated: 200
KCallWidget: Starting force disconnect...
Hi,
I know that this problem has been discussed before, but being new to SER
I am having difficulty making CISCO ATA 186 behind a CISCO 501 NAT work
with my SER setup. Here is how I have it set up.
+---------+ +----------------+
|cisco ata|----| cisco pix (NAT)|----+
+---------- +----------------+ |
+---+ +-----------+
|SER|--+--|asterisk vm|
+---+ | +-----------+
+--------------------------+ | | +-------------+
|cisco 7960 and xten phones|---------+ +--|cisco pstn gw|
+--------------------------+ +-------------+
All the calls between 7960, xten, voice mail and pstn work great. When I
initiate a call from ata I get audio only one way I can hear ata user
but he cant hear anthing from 7960 phones or voicemail, and I am unable
to initiate calls from any device to ATA. Ok its quite obvious that NAT
is preventing this fom working. I tired setting up rtp proxy but that
doesn't even let me register the ATA phone correctly. Can anybody help
me make this work. I am including my ser.cfg file.
Thanks
fil
ser.cfg
------------ Initial global variables
debug=4 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes # (cmd line: -E)
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"
listen=a.b.c.d
mhomed=yes
memlog=3
sip_warning=yes
server_signature=yes
#syn_branch=yes
#reply_to_via=no
# ------------------ module loading ----------------------------------
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/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"
loadmodule "/usr/local/lib/ser/modules/exec.so"
loadmodule "/usr/local/lib/ser/modules/group.so"
loadmodule "/usr/local/lib/ser/modules/print.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/uri.so"
loadmodule "/usr/local/lib/ser/modules/uri_db.so"
##loadmodule "/usr/local/lib/ser/modules/nathelper.so"
# ----------------- setting module-specific parameters ---------------
modparam("tm", "fr_timer", 12)
modparam("tm", "fr_inv_timer", 24)
modparam("rr", "enable_full_lr", 1)
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "log_missed_flag", 3)
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "timer_interval", 10)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
##modparam("registrar", "nat_flag", 6)
##modparam("nathelper", "natping_interval", 10)
##modparam("nathelper", "ping_nated_only", 1) # Ping only clients
behind NAT
# ------------------------- request routing logic -------------------
route{
# messed up setup
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
# someonw is doing something bad
if (msg:len >= max_len ) {
sl_send_reply("513", "Message too big");
break;
};
# record all routes
if (!method=="REGISTER")
record_route();
# separate the destination r-uri from the set of proxies that
must be traversed
loose_route();
# if the host portion of the request uri is not local, send it
directly
# to route processing.
if (!(uri==myself)) {
route(2);
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") {
## setflag(1); # remember this is ATA
## force_rport();
## fix_nated_contact();
## log("LOG: In NAT clause\n");
## fix_nated_sdp("3");
## };
# All REGISTER attempts are processed and must always be
authenticated
if (method=="REGISTER")
{
# make sure that users don't register infinite loops
if (search("^(Contact|m):
.*(a)(a\.b\.c\.d\|xxxxx\.xxxxx\.com)"))
{
log(1, "**************** LOG: alert: someone
trying to set aor==contact\n");
sl_send_reply("476", "No Server Address in
Contacts Allowed" );
break;
};
# digest authentcation
if (!www_authorize("xxxxx", "subscriber")) {
www_challenge("xxxxx", "0");
break;
};
# it is an authenticated request, update Contact
database now
if (!save("location"))
{
sl_reply_error();
};
break;
};
# find canonical names
lookup("aliases");
#if not local domain after alias lookup forward it away
if
(!(uri=~"^sip:(.+@)?(a\.b\.c\.d|xxxxx\.)?xxxxx\.com)([:;\?].*)?$"))
{
log(1, "**************** LOG: route(5)\n");
route(5);
break;
};
#pstn 911, 9911, all number between 7 and 20 digits
if ( (uri=~"^sip:911@.*") | (uri=~"^sip:9911@.*") |
(uri=~"sip:[0-9]{7,20}@.*") )
{
log(1, "**************** LOG: route(3)\n");
route(3);
break;
};
#voice mail
if (is_user_in("Request-URI", "voicemail"))
{
log(1, "**************** LOG: voicemail\n");
t_on_failure("4");
setflag(4);
};
if (!lookup("location")) {
log(1, "**************** LOG: route(4)\n");
route(4);
break;
};
# check whether some inventive user has uploaded gateway
# contacts to usrloc to bypass authorization logic
if (uri=~"@192\.168\.0\.1|209\.208\.224\.4([;:].*)*" )
{
log(1, "**************** LOG: Gateway address in
UsrLoc\n");
route(3);
break;
};
# this flag is used with the acc module to report missed calls
# to syslog.
setflag(3);
# do it (words to live by)
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
# ------------- process all local traffic
route[1]
{
if (!t_relay()) {
sl_reply_error();
break;
};
}
# ------------- process traffic leaving fikus for Internet
route[2]
{
# outbound requests are allowed only for registered BigU users
if (!(src_ip==a.b.c.d) & !(src_ip==192.168.0.15) &
!(proxy_authorize("fikus", "subscriber")))
{
# ACK and CANCEL have no security mechanisms so they
are just
# noted
if (method=="ACK" | method=="BYE")
{
log("**************** LOG: failed outbound
authentication for ACK granted\n");
} else if (method=="CANCEL") {
log("**************** LOG: failed outbound
authentication for CANCEL granted\n");
} else {
proxy_challenge("fikus", "0");
break;
};
};
# to maintain credibility of our proxy, we check From in INVITEs
if (!src_ip==a.b.c.d & !src_ip==192.168.0.15 & method=="INVITE"
& !check_from()) {
log(1, "**************** LOG: Spoofed from attempt\n");
sl_send_reply("403", "Use From=id next time");
break;
};
append_hf("P-hint: OUTBOUND ON INTERNET\r\n");
if (!t_relay()) {
sl_reply_error();
break;
};
}
# ------------- process traffic leaving Internet for PSTN
route[3]
{
# all calls through the gateway must be record routed to assure
# acl acceptance on the gateway
record_route();
# send out emergency calls to pstn gateway immediately
if ((uri=~"^sip:911@.*") | (uri=~"^sip:9911@.*"))
{
rewritehostport("a.b.c.e:5060");
forward(uri:host, uri:port);
break;
};
# seven digit numeric addresses are internal freebies sent to
the pbx
# without authentication
if
(uri=~"^sip:[0-9]{7}@(a.b.c.d|192.168.0.15|xxxxx|(xxxx\,)?\.xxxx\.com)")
{
rewritehostport("a.b.c.d.f:5060");
forward(uri:host, uri:port);
break;
};
# all numeric addresses beginning with 9 go to the pbx on the way
# to the PSTN
# first the caller needs to be authenticated
if (uri=~"^sip:9[0-9]*@(a\.b\.c\.d|xxxxx|192\.168\.0\.15)")
{
if (!(src_ip==209.208.224.15 | src_ip==192.168.0.15 |
method==ACK | method=="CANCEL" | method=="BYE"))
{
if (!proxy_authorize("xxxxx", "subscriber"))
{
proxy_challenge("xxxxxx","0");
break;
} else if (method=="INVITE" & !check_from()) {
log(1, "**************** LOG: Spoofed
from attempt\n");
sl_send_reply("403", "Use From=id next
time");
break;
};
};
if (method=="INVITE")
{
# if the r-uri begins 91, does the
authenticated user have
# permission for long distance
if (uri=~"sip:91[0-9]*@.*")
{
if (!is_user_in("credentials", "ld"))
{
sl_send_reply("403", "Local
calls only");
break;
};
};
};
# authenticated and authorized, now accounting is set
setflag(1);
};
rewritehostport("a.b.c.f:5060");
append_hf("P-hint: GATEWAY\r\n");
if (!t_relay())
{
sl_reply_error();
break;
};
}
# ------------- process calls for users offline
route[4]
{
log (1, "**************** INSIDE ROUTE[4]\n");
if (!t_newtran())
{
sl_reply_error();
};
if (!t_reply("404", "Not Found"))
{
sl_reply_error();
};
break;
}
# ------------- process aliased outbound traffic
# inbound requests that have been aliased to a non-fikus domain
# are not authenticated by fikus
route[5]
{
append_hf("P-hint: ALIASED-OUTBOUND\r\n");
if (!t_relay())
{
sl_reply_error();
break;
};
}
# ------------- CC-Diversion to voicemail
failure_route[4]
{
log (1, "**************** FAILURE_ROUTE CALLING VOICEMAIL\n");
# forward to voicemail now
append_branch("sip:2000@a.b.c.d.e");
append_urihf("CC-Diversion: ", "\r\n");
append_hf("P-hint: OFFLINE-VOICEMAIL\r\n");
t_relay();
}
hello everyone:
I have some problems when I configure the SIP server.I hope you can
help me to solve them.
The first problem: when a user login in the SIP system with X-lite or
Windows Messenger 5.0,the data of field "domain"( database "ser",table
"location") is NULL.It should be "voipv6.edu.cn".So I cannot find the
online users through SERWEB.What should I do to solve the problem?
The second problem:when two users communicate with Windows Messenger
5.0(SIP),they cannot send Instant Messaging each other.How should I
configurate the SIP server to surport it?
Thanks a lot!
These are some informations related to my setting and problem:
1、operating system:Linux 7.0
2、SER distribution: ser-0.8.14_linux_i386.tar.gz
3、SER build: version: 0.8.14 (i386/linux)
flags: STATS:Off, USE_IPV6, 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
@(#) $Id: main.c,v 1.168.4.3 2004/06/28 15:41:21 andrei Exp $
main.c compiled on 12:28:01 Jul 27 2004 with gcc 2.95
4、SER configuration file :
#
# $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=yes
log_stderror=no
*/
check_via=yes # (cmd. line: -v)
dns=yes # (cmd. line: -r)
rev_dns=yes # (cmd. line: -R)
port=5060
#children=4
fifo="/tmp/ser_fifo"
alias="voipv6.edu.cn" "210.25.130.252" "localhost"
# ------------------ 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"
loadmodule "/usr/local/lib/ser/modules/acc.so"
loadmodule "/usr/local/lib/ser/modules/exec.so"
loadmodule "/usr/local/lib/ser/modules/group.so"
loadmodule "/usr/local/lib/ser/modules/msilo.so"
loadmodule "/usr/local/lib/ser/modules/print.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
#loadmodule "/usr/local/lib/ser/modules/jabber.so"
loadmodule "/usr/local/lib/ser/modules/uri.so"
loadmodule "/usr/local/lib/ser/modules/vm.so"
# ----------------- setting module-specific parameters ---------------
modparam("usrloc","db_url","sql://ser:heslo@localhost/ser")
# -- 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
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("voipv6.edu.cn", "subscriber")) {
www_challenge("voipv6.edu.cn", "0");
break;
};
save("location");
break;
};
# 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();
};
}
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
I'm running Redhat ES on my computer and have been trying to setup SER for the last two week with very little success. The SER package that I have be using is rpm 0.8.12 for redhat 9 which I downlowad on the following locationftp://ftp.berlios.de/pub/ser/0.8.12/packages/redhat/9/
I'm just wondering if installing a rpm package for redhat 9 on redhat ES is part of the problems am having..
SER is work fine if I don't enable Digest Authentication.
Please advice which package is good to install on Redhat ES.
Please help...
---------------------------------
Post your free ad now! Yahoo! Canada Personals
Hello.
I been there. :) . It takes some time to figure it out how the
mediaproxy works. Anyway, i'm using
- SER v 0.8.14
- Mediaproxy 1.2.0
- Python 2.3
- The ser.cfg included in /ser_directory/modules/mediaproxy/config/
is very helpfull.
It's working fine to me.
Good Luck
Ricardo Martinez.-
> -----Mensaje original-----
> De: Kiko Vives [SMTP:kiko.vives@ua.es]
> Enviado el: Lunes, 18 de Octubre de 2004 04:45 a.m.
> Para: serusers(a)lists.iptel.org
> Asunto: Re: [Serusers] Ser0.8.14 + Mediaproxy
>
> Hello again.
>
> It happens to me too.
>
> Can someone gives some guidelines to make it work ? I mean, version
> numbers for "mediaproxy.so" and mediaproxy server, and a ser.cfg sample.
>
> My problem is that it compiles OK and ser run without problem but it hangs
> when I try to establish a session between two UAs using the media proxy.
>
> Thanks !
>
> Kiko
>
> ----- Original Message -----
> From: md esa kamsan <mailto:mesak77@yahoo.com>
> To: serusers(a)lists.iptel.org <mailto:serusers@lists.iptel.org>
> Sent: Monday, October 18, 2004 5:54 AM
> Subject: [Serusers] Ser0.8.14 + Mediaproxy
>
> Hi ,
>
> Can someone help me... where is the best guide to make it run ....
> I try several times but still failed
>
>
>
> Thx
>
> Esa
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> <http://mail.yahoo.com>
>
>
> _____
>
>
>
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
> <<Archivo: ATT23899.txt>>
Hi guys,
I would appreciate if someone may help me on the subject. While still requiring users to be authenticated against user credentials (username, password, realm), on the other hand I want to avoid storing passwords in clear text in mysql "subscriber" table. Any ideas?
Thank you in advanced.
Best regards,
Karl
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
I have already been visiting this link but all I found is commercial.
I am looking for a gnu/gpl software.
Thanks Mohamed.
On Mon, 18 Oct 2004 17:10:59 -0400 (EDT), Mohamed Omar
<amatek2004(a)yahoo.ca> wrote:
>
> I came across this last week, maybe it's what you want...
> http://www.voip-info.org/wiki-Asterisk+Prepaid+Applications
>
>
>
>
>
>
> Nahuel Alejandro Ramos <nahuelon(a)gmail.com> wrote:
> Hi,
> I looking for a prepaid biiling solution for my SER. I have already
> read that I have to use B2BUA or Asterisk with some billing app. I
> have a Cisco 2610 with 2 FXO so the Asterisk would not talk with the
> PSTN directly.
> 1- First I ask you what is better and scalable to use?
> 2- How I loads or add credits to its DB? (I know that B2BUA use a
> Radius, so I would use FreeRadius+MySQL)
> 3- How B2BUA or Asterisk control not a user pass his credits? How
> they calc the credit-time-price_perminute, and make the user hang up a
> call?
> 4- Do you know a free billing app, make it in PHP/MySQL for an easy
> personalization?
> 5- THANK YOU VERY MUCH!!!
>
> Nahuel Ramos.
>
> P.D.: I post it again by third time because the maillist was not
> working right and I have not received it.
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>
> ________________________________
> Post your free ad now! Yahoo! Canada Personals
>
>
>