Gentlemen,
If I was using SER as a proxy server to deal with clients behind NATs, I can
understand the concept - the sip proxy rewrites the header information to
correct for the NATed client.
Where I have a large "hole" in my understanding is concerning inbound calls from
PSTN. Currently, these arrive at our Asterisk box which has no knowledge of
the clever things SER should be doing to deal with the NATed clients.
Can anyone please fill in the gaps in my understanding ?
Better still.....can anyone let me have a look at their Asterisk and SER config
files on a system that works ???
Jim
--
---
www.yakara.com
SER does not handle RTP messages, only SIP messages.
Jose Simoes
On 1/16/06, samuel <samu60(a)gmail.com> wrote:
>
> www.onsip.org
>
> 2006/1/16, mohd suhaimi <see2belief(a)yahoo.com>:
> > Hi,
> >
> > Any help on below is appreciated.
> >
> > Thanks
> >
> > --- mohd suhaimi <see2belief(a)yahoo.com> wrote:
> >
> > > Date: Thu, 12 Jan 2006 02:17:15 -0800 (PST)
> > > From: mohd suhaimi <see2belief(a)yahoo.com>
> > > Subject: No RTP
> > > To: seruser <serusers(a)lists.iptel.org>
> > >
> > > Hi,
> > >
> > > when i make SIP to SIP calls thru my ser, no rtp
> > > packets is processed. Especially when in a NATed
> > > environment.
> > >
> > > Any idea?
> > >
> > > Thanks
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam
> > > protection around
> > > http://mail.yahoo.com
> > >
> >
> >
> > __________________________________________________
> > 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
> >
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
Hi,
when starting openserctl i get this message:
root@sip:~ # /usr/local/sbin/openserctl
/usr/local/sbin/openserctl: syntax error at line 1024: `GW_IP=$'
unexpected
OS is Solaris
OpenSER Version: 1.0.0 CVS
Bye
I want to use Openser to register all phones.
If the phone is allowed (paid) than it should be able to reach a certain
gateway (flat rate to certain numbers)
Distinguished via mysql database.
If the destination number is not in the flat rate, than the call should
be forwarded to Astersik to handle the call (prepaid card)
If features are requested, than should be also Asterisk handle it.
Is there a starting point for this set-up?
How does openser connect to mysql which is not in the same machine
(say openser is in 10.0.0.1 and mysql is in 10.0.0.2)? I have
configured all mysql statement in the configuration file as
"mysql://openser:openserrw@10.0.0.2/openser" but openser failed to
start. Below is the error message from the log.
Jan 21 14:25:51 owthkems01 /usr/local/sbin/openser[12298]:
new_connection: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)
Jan 21 14:25:51 owthkems01 /usr/local/sbin/openser[12298]:
ERROR:domain_db_init: cannot initialize database connection
Jan 21 14:25:51 owthkems01 /usr/local/sbin/openser[12298]: ERROR:
domain:child_init(): Unable to connect to the database
Jan 21 14:25:51 owthkems01 /usr/local/sbin/openser[12298]:
ERROR:init_mod_child: Error while initializing module domain, rank 1
Say I have a record in the table usr_preferences with username,
attribute=function, value=voicemail. I use
avp_db_load("$from/username", "s:function") to get the value. I can
print out the value in xlog function by using $avp(s:function). How
can I put that value in the header by using append_hf? As I found
that it doens't work if I use
append_hf("P-hint: $avp(s:function)\r\n"). In other words, how can I
get back the value of the variable stored in avp for other functions
processing?
Hello!
I'm again :-).
If I use the next config in my ser.cfg, then the
authentication works fine, but the presence does not.
if (!www_authorize("domain.hu", "subscriber")) {
forward( csps.domain.hu, 5060);
break;
};
But if I insert the save("location") line in my config file,
then the presence info will be good, but the authentication
will be wrong.
if (!www_authorize("domain.hu", "subscriber")) {
forward( csps.domain.hu, 5060);
save("location");
break;
};
Can I mix these two features?
Thanks,
Jani
-----Original Message-----
From: serusers-bounces(a)lists.iptel.org
[mailto:serusers-bounces@lists.iptel.org] On Behalf Of Barta János
Sent: Friday, January 20, 2006 4:45 PM
To: serusers(a)lists.iptel.org
Subject: [Serusers] SER frontend
Hello!
I would like to make a frontend SIP perver.
For this server will be only one task, to provide the
presence information.
The architecture:
SIP client -> SER ->CSPS.
I have a problem with the registration method. I'm using
http digest auth.
If I forward the authentication messages (to the CSPS), then
the SIP client logs in automatically, and in this case I
don't have the possibility to type the username/pwd. What is
wrong?
And I have a second question:
Can I use W$ Messenger 5.1 presence under SER? (The 5.0
works fine, but the 5.1 does not.)
This is my config file:
sip:/etc/ser# cat ./ser.cfg
#
# $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=yes # (cmd line: -E)
/* Uncomment these lines to enter debugging mode fork=no
log_stderror=yes */ alias=domain.hu alias=100.22.2.180
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/lib/ser/modules/mysql.so"
loadmodule "/usr/lib/ser/modules/sl.so"
loadmodule "/usr/lib/ser/modules/tm.so"
loadmodule "/usr/lib/ser/modules/pa.so"
loadmodule "/usr/lib/ser/modules/rr.so"
loadmodule "/usr/lib/ser/modules/maxfwd.so"
loadmodule "/usr/lib/ser/modules/usrloc.so"
loadmodule "/usr/lib/ser/modules/registrar.so"
loadmodule "/usr/lib/ser/modules/textops.so"
loadmodule "/usr/lib/ser/modules/exec.so"
# Uncomment this if you want digest authentication #
mysql.so must be loaded !
loadmodule "/usr/lib/ser/modules/auth.so"
loadmodule "/usr/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters
---------------
#######################
# -- usrloc params -- #
#######################
/* 0 -- dont use mysql, 1 -- write_through, 2--write_back */
modparam("usrloc","db_mode",0)
#modparam("usrloc","db_url","mysql://xxxxxxx:xxxx@localhost/ser")
#modparam("usrloc", "use_domain", 1)
#modparam("usrloc", "timer_interval", 10)
#####################
# -- auth params -- #
#####################
#modparam("auth_db","calculate_ha1", yes)
#modparam("auth_db","db_url","mysql://xxxxx:xxxxx@localhost/ser")
#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)
#########################
# -- presence params -- #
#########################
#modparam("pa", "db_url",
"mysql://xxxxxxxx:xxxxxxxx@localhost/ser")
modparam("pa", "default_expires",50)
modparam("pa", "pa_domain", "domain.hu")
# ------------------------- 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
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");
if (!t_relay()) {
sl_reply_error();
};
break;
};
if (uri==myself) {
if (method=="REGISTER") {
# if (!www_authorize("domain.hu", "subscriber")) {
# forward( csps.domain.hu, 5060);
# www_challenge("domain.hu", "0");
# break;
# };
save("location");
break;
};
lookup("aliases");
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
forward( csps.domain.hu, 5060);
break;
};
sl_send_reply("404", "Not Found");
# append_hf("P-hint: usrloc applied\r\n");
}
sip:/etc/ser#
Thanks,
Jani
________________________________________________________________
Harry Potter és a Félvér Herceg! Garantált szállítás a megjelenés napján! (február 10. )
Jegyezze elő most! http://www.bookline.hu/control/news?newsid=322&affiliate=frehp6kar1482
>Gentlemen,
>I tried running media proxy using the scripts given in the getting started document (putting the scripts into /etc/init.d/ as >shown in the document).
>However, when I try to run it, I get the following error -
>[root@itrhost2 init.d]# ./mediaproxy start
>Starting SER MediaProxy server: mediaproxyTraceback (most recent call last):
> File "/usr/local/mediaproxy/mediaproxy.py", line 21, in ?
> from optparse import OptionParser
>ImportError: No module named optparse
>Traceback (most recent call last):
> File "/usr/local/mediaproxy/proxydispatcher.py", line 35, in ?
> from optparse import OptionParser
>ImportError: No module named optparse
>Any ideas what's wrong here ?
Have you checked Python yet. Which version of Python do you use?
Run 'python' from command line and type 'import optparse' to see what happens.
If there is an error, you do not have the Python module 'optparse'. Upgrade to a newer
version of Python or install the module by hand.
Regards,
Reinhold
Does openser provide any substring function to get a substring within
a string? For example, I have a string "1234abc5678" in avp s:gw, and
I want to get "abc" from s:gw.
I am using uac_replace_from function as below.
# replace only display and do not touch uri
uac_replace_from("35418474","");
After running uac_replace_from function, I get the following message.
U 203.193.4.242:5060 -> 203.193.4.226:5060
SIP/2.0 183 Session Progress.
Via: SIP/2.0/UDP
203.193.4.226;branch=z9hG4bKaed7.46cc4101.0,SIP/2.0/UDP
10.0.0.52:5060;rport=5060;received=210.184.4.31;branch=z9hG4bKHNHpldVsKca6IYUS.
From: "35418474"<sip:882754853589@ow01.owtel.com>;tag=sBl2gLH6O1myyqL5.
To: "92588819" <sip:92588819@ow01.owtel.com>;tag=47C61DF4-26CD.
Date: Fri, 06 Jan 2006 10:41:17 GMT.
Call-ID: yTCQvS56ZCZXCHgt(a)10.0.0.52.
Server: Cisco-SIPGateway/IOS-12.x.
In the normal message, sip message, there is a space between display
name and uri.
ie. From: "35418474" <sip:882754853589@ow01.owtel.com>
However, after I apply uac_replace_from function, there is a space
there. How can I add a space such that it looks like a normal sip
message? Does the space will affect the caller display?