Hello
I've been installed last version of SER and rtpproxy on the same
machine. I can register IPv4 and IPv6 users and SDP are rewritten OK.
But I would like to test a different scenario and I don't know whether
it could be possible. The idea is
IPv6 only SIP proxy IPv4 only
SIP Proxy with nathelper SIP Proxy
and registrar ---------- and rtpproxy -------------and registrar
ipv6mydomain.comipv4mydomain.com
I want to separate functions and make config files easier. And I want
that all the calls between the two domains are through the rtpproxy.
But it presents several problems, at least, I don't find solution
- When ipv6-SER DNS lookups ipv4mydomain, it will find an A entry with
IPv4 address. How can I specify to forward messages to intermediate
proxy in this case? In other words, if DNS domain==ipv4 then forward to
intermediate proxy
- Proxy with nathelper does not register users. So it just have to:
- if message is ipv6 --> if (af == inet6)
if (force_rtp_proxy("FAEI"))
t_on_reply("1");
- if message is ipv4 --> if (af == inet)
if (force_rtp_proxy("FAIE"))
t_on_reply("1");
Is it correct?.
Well, maybe could be another questions that I no see. I would thank if
you could give me your opinion. Is there any problem to do this
scenario? What things should I take into account? Could you give me
some clues to write config files?
Thank you very much.
Curro
I am trying to understand the logging with the accounting module. I
don't understand the concept used with the flags. I'm trying to use the
MySQL for logging completed and failed calls. I can get entries like
log(1,"register request for domain"); to log something to syslog but I
can't get a successfull call logged into the MySQL tables. So far I've been
doing trial and error and haven't had any success.
Can someone send me a simple config demostrating the concept of the
flags or explain it to me please? I'm using ser 0.8.12 with MySQL 4.0
Bill Dunn
Dear Sir,
I am new to SER.
Can I modify the code and run it as per my need?
I am working on a SIP application and need to test it with a server
which will understand my modified SIP Message. This SIP message will
have some specific Parameters. So can I modify registrar code to work as
per my need?
Rgds-
Vanita Jain
Hi all,
I am trying ser + rtpproxy like this
Internet UA3
| |
------------------------------------
| NAT + ser + rtpproxy |
------------------------------------
| | Intranet
UA1 UA2
Now UA3 <-> UA1 , UA1 <-> UA2 can make call successfuly via rtpproxy in bridge mode
but now when UA1 <-> UA2 , i want the call can be made not via rtpproxy ,
I think it should do some modification in ser.cfg to make this,
I have try some modification, but it doesn't works
could anyone give me any suggestion?
this is my ser.cfg
#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=1
fifo="/tmp/ser_fifo"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
#loadmodule "/lib/ser/modules/mysql.so"
loadmodule "/lib/ser/modules/sl.so"
loadmodule "/lib/ser/modules/tm.so"
loadmodule "/lib/ser/modules/rr.so"
loadmodule "/lib/ser/modules/maxfwd.so"
loadmodule "/lib/ser/modules/usrloc.so"
loadmodule "/lib/ser/modules/registrar.so"
loadmodule "/lib/ser/modules/textops.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
#loadmodule "/lib/ser/modules/auth.so"
#loadmodule "/lib/ser/modules/auth_db.so"
# !! Nathelper
loadmodule "/lib/ser/modules/nathelper.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)
# !! Nathelper
modparam("registrar", "nat_flag", 6)
modparam("nathelper", "natping_interval", 5) # Ping interval 30 s
modparam("nathelper", "ping_nated_only", 1) # Ping only clients behind NAT
# ------------------------- 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;
};
# !! Nathelper
# Special handling for NATed clients; first, NAT test is
# executed: it looks for via!=received and RFC1918 addresses
# in Contact (may fail if line-folding is used); also,
# the received test should, if completed, should check all
# vias for rpesence of received
if (nat_uac_test("3")) {
# Allow RR-ed requests, as these may indicate that
# a NAT-enabled proxy takes care of it; unless it is
# a REGISTER
if (method == "REGISTER" || ! search("^Record-Route:")) {
log("LOG: Someone trying to register from private IP, rewriting\n");
# This will work only for user agents that support symmetric
# communication. We tested quite many of them and majority is
# smart enough to be symmetric. In some phones it takes a configuration
# option. With Cisco 7960, it is called NAT_Enable=Yes, with kphone it is
# called "symmetric media" and "symmetric signalling".
fix_nated_contact(); # Rewrite contact with source IP of signalling
if (method == "INVITE")
{
# jimmy added for test ++++++++++++++++++++++++++++++++
if(src_ip=~"192.168.5.*")
{
;
}else{
# -----------------------------------------------------
fix_nated_sdp("1"); # Add direction=active to SDP
}
};
force_rport(); # Add rport parameter to topmost Via
setflag(6); # Mark as NATed
};
};
# 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("iptel.org", "subscriber")) {
# www_challenge("iptel.org", "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]
{
# !! Nathelper
# if client or server know to be behind a NAT, enable relay
if (isflagset(6)) {
# jimmy added for test ++++++++++++++++++++++++++++++++++++++++++++++
if(search("^(Contact|m): .*(a)(192\.168\.)"))
#if(src_ip=~"192.168.5.*")
{
;
}else{
# -------------------------------------------------------------------
force_rtp_proxy();
}
};
# NAT processing of replies; apply to all transactions (for example,
# re-INVITEs from public to private UA are hard to identify as
# NATed at the moment of request processing); look at replies
t_on_reply("1");
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
}
# !! Nathelper
onreply_route[1] {
# NATed transaction ?
if (isflagset(6) && status =~ "(183)|2[0-9][0-9]") {
# jimmy added for test ++++++++++++++++++++++++++++++++++++++++++++++
if(src_ip=~"192.168.5.*")
{
;
}else
{
fix_nated_contact();
}
force_rtp_proxy();
# -------------------------------------------------------------------
# otherwise, is it a transaction behind a NAT and we did not
# know at time of request processing ? (RFC1918 contacts)
} else if (nat_uac_test("1")) {
fix_nated_contact();
};
}
Thanks in advance
Jimmy
Hello
I have a problem when two clients (one using UDP and one using TCP) connect
to SER (version 0.8.13-dev-23). My scenario is more or less like this:
TCP Client <----> SER <----> UDP Client
There are no NATs or Firewalls in scene.
I want to reuse the TCP connection of the TCP Client for the whole SIP
signalling, so I have added the command force_tcp_alias(); to ser.cfg and
changed tcp_conn.h as advised in
http://lists.iptel.org/pipermail/serusers/2004-May/008262.html.
The TCP Client starts the call with an INVITE and everything works
correctly. However, when the UDP Client tries to send a MESSAGE, SER doesn't
route the MESSAGE through the TCP connection (it sends it over UDP with the
TCP port included in TCP Clients Contact!).
Can anyone tell me what is misconfigured?
Lots of thanks to everyone.
DANIEL
I have attach the install doc for serweb I have problem in understanding
step 3 to 7. so you ppl can have a look at these steps which are at the
end of the mail
In step [3] where is config_data_layer.php file and what values should I
hv for db_type, db_host, db_name, db_user and db_pass
Step [4] is ok
Step [5] do I have to install this stuff named PEAR package LOG
I thick if I can get this info all other steps should be easy
I hv mysql linked up with ser but I have no ideas how to use mysql....
So help me in that fashion
So pls help me I hv to get this serweb running
------------------------------------------------------------------------
----
Steps
------------------------------------------------------------------------
----
[3] Open the file config_data_layer.php in your favorite editor and
change the values for db_type, db_host, db_name, db_user and db_pass
[4] Open the file config_paths.php and change value for root_path to fit
directory in html tree where serweb is installed. Also change other
values to fit your environment.
[5] Open the file config.php and see if you wish to change some setting.
If you want enable loging, make sure that you have installed PEAR
package LOG
[6] In subdirectory /your/serweb/dir/html/domains create directories
named as domains you are hosting a copy to them content of subdir
/your/serweb/dir/html/domains/_default. In this directories is files for
domain depended configuration and layout of pages for each domain. If
some file isn't found in directory
/your/serweb/dir/html/domains/<domain> is used the one from
/your/serweb/dir/html/domains/_default
[7] Open config.php for each domain
(/your/serweb/dir/html/domains/*/config.php) and change setting to fit
your environment. Don't forget change email address (mail_header_from,
infomail, regmail) and contact address of instant messages (web_contact)
Dipen K Gala
Fidelity Investments System Company - Telecom
Phone: (617) 563-2729
Email: Dipen.Gala(a)FMR.com
Hi all,
I am getting the following error when i try to call a nated ATA186 from a public ip ,
I am using mediaproxy.sock in my ser.conf and running the python mediproxy daemon.
any Idea about this problem
thanks
jeeth
------------
mediaproxy[10756]: error: uncaptured python exception, closing channel <rtphandler.CommandHandler connected '' at 0x40514eec> (exceptions.IndexError:list index out of range [/usr/local/lib/python2.3/asyncore.py|readwrite|86] [/usr/local/lib/python2.3/asyncore.py|handle_read_event|390] [/usr/local/etc/ser/mediaproxy/modules/rtphandler.py|handle_read|337] [/usr/local/etc/ser/mediaproxy/modules/rtphandler.py|handleCommand|420] [/usr/local/etc/ser/mediaproxy/modules/rtphandler.py|fillInCalledParty|817])
Jun 22 09:34:03 qorcom mediaproxy[10756]: session f71959b18872476b933d1e63ed329c05(a)172.189.81.131: called signed in from 202.65.xxx.xxx:16384 (RTP) (will return to 202.65.xxx.xxx:16384)
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
When ever I use the serctl add command it asks me for the password for
mysql and after typing the right password
I get an error 1045 access dined for user : 'ser@local host'
Introducing new user to the database failed
I have mysql running and I can see database ser when I type
Mysql> show databases ------------ I get
Mysql
Ser
Ser_bak
Test
I don't understand what is the prob now
Can any one help me out
thanks
Dipen K Gala
Fidelity Investments System Company - Telecom
Phone: (617) 563-2729
Email: Dipen.Gala(a)FMR.com
hello friends,
I think its free for nono commercial activties
and there is a problem for me whenever i login for
second time while i pass through the login
to terms and conditions it gives a error as
Database error: Invalid SQL: insert into
active_sessions ( sid, name, val, changed ) values
('8e7ba11ec79c800b574d72846a8aec41', 'CDRc',
'Q0RSYzokdGhpcy0+aW4gPSAnMSc7ICR0aGlzLT5wdCA9IGFycmF5KCk7ICR0aGlzLT5wdFsnYXV0aCddID0gJzEnOyAkdGhpcy0+cHRbJ2NoYWxsZW5nZSddID0gJzEnOyAkdGhpcy0+cHRbJ0NEUlRPT0wnXSA9ICcxJzsgJEdMT0JBTFNbJ2F1dGgnXSA9IG5ldyBDRFJUb29sX0F1dGg7ICRHTE9CQUxTWydhdXRoJ10tPmF1dGggPSBhcnJheSgpOyAkR0xPQkFMU1snYXV0aCddLT5hdXRoWyd1aWQnXSA9ICdjMTRjYmYxNDFhYjFiN2NkMDA5MzU2ZjU1NWI2MDdkYyc7ICRHTE9CQUxTWydhdXRoJ10tPmF1dGhbJ3Blcm0nXSA9ICdhZG1pbixjYWxsc2VhcmNoLHN0YXRpc3RpY3Msc3FscXVlcnknOyAkR0xPQkFMU1snYXV0aCddLT5hdXRoWydzb3VyY2UnXSA9ICcnOyAkR0xPQkFMU1snYXV0aCddLT5hdXRoWydleHAnXSA9ICcxMDg3OTMzOTE2JzsgJEdMT0JBTFNbJ2F1dGgnXS0+YXV0aFsncmVmcmVzaCddID0gJzEwODc5MTk1MTYnOyAkR0xPQkFMU1snYXV0aCddLT5hdXRoWyd1bmFtZSddID0gJ2FkbWluJzsgJEdMT0JBTFNbJ2NoYWxsZW5nZSddID0gJyc7ICRHTE9CQUxTWydDRFJUT09MJ10gPSBhcnJheSgpOyAkR0xPQkFMU1snQ0RSVE9PTCddWydsb2dpbk5hbWUnXSA9ICdBZG1pbiB1c2VyJzsgJEdMT0JBTFNbJ0NEUlRPT0wnXVsnbG9naW5Pcmdhbml6YXRpb24nXSA9ICdBbWluIHVzZXInOyAkR0xPQkFMU1snQ0RSVE9PTCddWydkYXRhU291cmNlc0FsbG93ZWQnXSA9IGFycmF5KCk7ICRHTE9CQUxTWydDRFJUT
09MJ11bJ2RhdGFTb3VyY2VzQWxsb3dlZCddWycwJ10gPSAnc2VyX3JhZGl1cyc7ICRHTE9CQUxTWydDRFJUT09MJ11bJ2RhdGFTb3VyY2VzQWxsb3dlZCddWycxJ10gPSAnc2VyX2FjYyc7ICRHTE9CQUxTWydDRFJUT09MJ11bJ3VzZXJfaWQnXSA9ICdjMTRjYmYxNDFhYjFiN2NkMDA5MzU2ZjU1NWI2MDdkYyc7ICRHTE9CQUxTWydDRFJUT09MJ11bJ2RfY2xpJ10gPSAnMSc7ICRHTE9CQUxTWydDRFJUT09MJ11bJ2RfY2FyZCddID0gJzEnOyAkR0xPQkFMU1snQ0RSVE9PTCddWydjb2RlRmlsdGVyJ10gPSAnJzsgJEdMT0JBTFNbJ0NEUlRPT0wnXVsnYU51bWJlckZpbHRlciddID0gJyc7ICRHTE9CQUxTWydDRFJUT09MJ11bJ2RvbWFpbkZpbHRlciddID0gJyc7ICRHTE9CQUxTWydDRFJUT09MJ11bJ2dhdGV3YXlGaWx0ZXInXSA9ICcnOyAkR0xPQkFMU1snQ0RSVE9PTCddWydvbmx5X2NhcmRjbGFzcyddID0gJyc7ICRHTE9CQUxTWydDRFJUT09MJ11bJ29ubHlfY2FyZHNlcnZpY2UnXSA9ICcnOyA=',
'20040622212156')
MySQL Error: 1062 (Duplicate entry
'CDRc-8e7ba11ec79c800b574d72846a8aec41' for key 1)
Session halted.
is it a problem with my database or some problem with
configuration
so kindly help me
with regards
rama kanth
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
Hello everybody!
Does someone know about the SIP-H323 translator ? it s name is KOMProxyd
I would be very grateful if someone can help me
Thank you in advance
---------------------------------
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail
Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !