I really need to sort out my nat situation with ser as soon as
possible....Im beginning to believe its not doable.
SER is behind nat and clients are behind nat (one on the same lan as
ser) and the other on a totally different nat. Both clients register
with a public address and port forwarding the nat router forwards the
sip traffic to ser. I know this situation is horrible but I cant do
anything about it. I have setup nathelper and rtpproxy on ser.
Now if a client behind nat (which is on the same lan as ser) rings
another client behind nat (on same lan as ser), then everything works
fine and the audio flows. However if a lcient behind (on the same lan
as ser) rings a client on behind on nat on DIFFERENT network to ser,
then no audio flows. I realise this is because of that fact that they
both have internal IP addresses and a middle man is needed. That is
why I set up rtpproxy. But will rtpproxy work when its also behind
nat??....
I've did an ethereal sniff of remote client and also of ser when
calling from my client on ser lan to the remote client and the
results are below.
My config was a jumble of various emails from the mailing list so Im
going to start from scratch and say my ser.cfg is just like the basic
one included in the below link.
http://www.informatik.uni-bremen.de/~prelle/terena/cookbook/Cookbook_D
2/ch04s07.html#d0e5091
Please, Please give me guidance. I know this is a horrible nat
situation but i just cant figure out how to solve it or if it can be
solved.
Thanks,
Aisling
ethereal sniff of remote client (not on same lan as ser, but behind
nat)xxx.xxx.xxx.xxx is my public address
SIP INVITE xxx.xxx.xxx.xxx. -> 10.0.1.21 (internal address of remote
client)
100 trying 10.0.1.21 -> xxx.xxx.xxx.xxx
180 ringing 10.0.1.21 -> xxx.xxx.xxx.xxx
200 ok 10.0.1.21 -> xxx.xxx.xxx.xxx
rtp 10.0..1.21 -> xxx.xxx.xxx.xxx
ethereal sniff of ser (with nathelper and rtpproxy) but behind nat
INVITE 172.16.3.28 (internal address of client on same lan as ser) ->
xxx.xxx.xxx.xxx
invite xxx.xxx.xxx.xxx.172.16.3.15(internal address of ser)
100 trying 172.16.3.15 -> xxx.xxx.xxx.xxx
invite 172.16.3.15 -> 157.190.70.231(public address of remote client)
100 xxx.xxx.xxx.xxx -> 172.16.3.28
100 trying 157.190.70.231 -> 172.16.3.15
icmp 172.16.3.15 -> 157.190.70.231 dest unreachable
same happens for 180 ringing and 200 ok.
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
My mysql database server is different computer than my ser server.
ser was not able to connect to database.
I put some debug code in authdb_mod.c
static int child_init(int rank)
{
db_handle = db_init(db_url);
LOG(L_ERR, "authdb_mod.c#child_init(): db_url: %s\n", db_url);
if (!db_handle) {
LOG(L_ERR, "auth_db:init_child(): Unable to connect
database\n");
return -1;
}
return 0;
}
I have found db_url is not getting the value from my ser.cft.
Its getting the default value from config.h that was defined before
compiled.
I compiled my ser after editing config.h with mysql param that match my
situation and my ser is up !!
Thanks,
--
Mohammad Khan
Hi Ricardo,
Use the "-P" SER command line option to make SER to generate a PID file
: ser -P /var/run/ser.pid
Best regards,
Marian
Ricardo Martinez wrote:
> Thanks Marian again for your help!.
> I was reading the documentation for the program and it seems to do what i'm
> looking for.
> I have two question :
> -Have you ever used this program with SER?.
> -If the answer is yes : Where can i find the PID file for SER?.. i
> can not find it in /var/run/. It seems that
> that all the "check procces" statemenst need the PID file.
>
> Thanks again.
>
> Ricardo Martinez.-
>
>
>>-----Mensaje original-----
>>De: Marian Dumitru [mailto:marian.dumitru@voice-sistem.ro]
>>Enviado el: Jueves, 03 de Febrero de 2005 16:50
>>Para: Ricardo Martinez
>>CC: 'serusers(a)lists.iptel.org'
>>Asunto: Re: [Serusers] SER Reliability
>>
>>
>>Hi Ricardo,
>>
>>You can use "monit" to keep trace of you SER and to restart
>>it if it's
>>down. Monit main application is to keep trace of the web servers, but
>>you can configure it for ser also.
>>You can read more about monit at "http://www.tildeslash.com/monit/".
>>
>>Best regards,
>>Marian
>>
>>
>>Ricardo Martinez wrote:
>>
>>>Hello list.
>>> I have a question about reliability in SER. Suppose that for
>>>certain reason, the process "ser" fails, and therefore the
>>
>>SIP Server is
>>
>>>down. Is there a way to keep trace of the "ser" process
>>
>>status?? and if the
>>
>>>process is not running start a script to restart the
>>
>>process. I know that
>>
>>>maybe the "crond" command could be useful for this purpose.
>>
>> Does someone
>>
>>>have any clue about this? Or maybe SER has his own "crond" module or
>>>something.?
>>> I really need and advice about this issue.
>>>Thanks in advance
>>>
>>>Regards,
>>>Ricardo Martinez Ogalde.-
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers(a)lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>
>>--
>>Voice System
>>http://www.voice-system.ro
>>
--
Voice System
http://www.voice-system.ro
Eric,
Please follow my other tread, Evan is helping me on that.
I guess, you and I having same issue.
Take a look at /var/log/message.. you might get a clue !
Mohammad
Eric Haskins <eric(a)rackspeed.net> wrote on 02/03/2005, 10:32:37 PM:
>
--
Mohammad Khan
Hello all,
I am having an issue with SER installation. When I build it, make clean - make modules - make install it seems to create /etc and other directories in /usr/local/ and it launches no problem but here is the issue
Then when I shutdown SER to change .cfg /usr/local/sbin/ser stop yields Stopping SER : No PID file found!. I can see all the processes stopped.
SER start yields
Listening on
127.0.0.1 [127.0.0.1]:5060
216.xxx.xxx.xxx [216.xxx.xxx.xxx ]:5060
Aliases: sip:5060 sip.domain.net:5060 e4e:5060 localhost:5060
But no processes are running. ser -c = config file ok
Eric
My mysql connection param:
host: 192.168.71.8
user: serro
passwd: 47serro11
database: ser
and I have put this line after loading the modules:
modparam("auth_db", "db_url", "sql://serro:47serro11@192.168.71.8/ser")
and still getting:
Feb 3 15:38:50 croaker ser[27079]: connect_db(): Can't connect to local
MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Feb 3 15:38:50 croaker ser[27079]: db_init(): Error while trying to
connect database
Feb 3 15:38:50 croaker ser[27079]: mod_init(): Error while connecting
database
Feb 3 15:38:50 croaker ser[27079]: init_mod(): Error while initializing
module usrloc
What I am doing wrong?
Mohammad
When you set up a trusted IP in SER, does it use the source IP address
of the INVITE UDP packet itself, or does it use the IP address contained
in the FROM: field within the SIP INVITE message?
Does anyone know how Cisco and other devices do it as well?
Thanks!
Tom
I'm having trouble in using STUN with some UserAgents, which are not nat
friendly at all.
So, I've been reading about nathelper, but I did not find how does it
work or how do I need to configure my ser.cfg to have this solution
implemented.
I'd like to know what it the function theory of nathelper (not about its
code, but yes how does it work) and how should I need to touch my
ser.cfg and also how to configure my UserAgent.
Will nathelper help me with ANY UserAgent behind a NAT, no matter what
kind of nat am I using and no matter whether my nat preserves or not the
udp ports for the rtp connection ??
Does NAThelper impacts in the quality of the communication (QoS) ?
Is NATHelper an outboundproxy ?
Is NATHelper a session-border-controller ?
The thing is I'm telling my UserAgent to use some XXX rtp port, but,
automagically (ufff) my linksys changes the port, and so I get one-way
audio. I need to solve this urgently. It gets worse if I have many
UserAgents behind this nat.
I've also noticed that when broadband router (d-link) does not preserve
ports, and assigns them randomly, whenever the link to internet goes
down and up again, my UserAgent needs to talk again with STUN to find
out its port. Just a mess !!!
Hope you can help me out in getting to know nathelper and configuring
it.
Thanx in advance
Regards,
Lucas
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 01/02/2005
Hey All,
Just wondering if anyone has had any involvement with deploying a SER
installation that properly supported E911 and PSAP. I've been reading
through a number of the documents on www.e911institute.org regarding
their VOIP information and deployment and was curious if anyone on the
list had real world experience with it, ie. rewriting dset based on DID
of the user dialing 911, or even better using a IP to Location database
lookup to retrieve a 911 center geographically close the user.
-Evan
P.S. for those curious this is a good document from the e911 site:
http://www.e911institute.org/Roundtable%20and%20Tours/June%2024,%202004/VoI…
aha.. I have found the problem !
Feb 3 13:56:02 croaker ser: WARNING: could not rev. resolve
192.168.71.3
-->> this shouldn'e be a big issue, as long as I am playing inside my
local network, right?
Feb 3 13:56:02 croaker ser[27023]: connect_db(): Can't connect to local
MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
-->> 'ser' database is in diffent server
Feb 3 13:56:02 croaker ser[27023]: db_init(): Error while trying to
connect database
-->> please tell me, how I will tell ser about my mysql server,
including username and password.
Please .. help ..
Evan, thanks a lot for forwarding me in proper direction.
MOhammad
Evan Borgstrom <evan.borgstrom(a)ca.mci.com> wrote on 02/03/2005, 07:38:22
PM:
> If you start ser (via command line) and do a 'ps' is it running? What
> does /var/log/messages say? Look in the current directory as well as /
> is there a core file?
>
> -Evan
>