Continuing on:
>> Basically what I am trying to achieve is to just have the server
>> listening on a specific (fixed) IP and just point multiple domain
>> names at it's public IP without having to edit the config or
>> restart openser. Do you know if this is possible?
I still think it is bad practice to list actual domain names
in a listen statement. You should list IP addresses.
I'ld like to see someone with more experience running openser
agree with me.
Also I think most of my queries from earlier in this thread
remain unanswered, even though Juha took a stab at it he said
he couldn't speak authoritatively about some of it.
This part here is still unclear to me:
== > For example, if you are using the "domain" module then would we
== > expect to never have to use "uri==myself" and not have to list aliases?
== > (using is_uri_host_local() instead)
==
== i need to use alias for checking pre-loaded route header containing the
== domain name of the proxy.
I think that answer translates to
"No. You need uri==myself in addition to is_uri_host_local().
The former gets messages directed AT you, the latter gets messages
directed at the DOMAINS you support."
If so, I'ld like to see an unambigous "Yes, that is correct" from Juha
or Bogdan or Klaus...
Thanks,
-mark
>> Basically what I am trying to achieve is to just have the server
>> listening on a specific (fixed) IP and just point multiple domain
>> names at it's public IP without having to edit the config or
>> restart openser. Do you know if this is possible?
I'ld like to see someone authoritative say Yes,
while waiting for that.... I'll say Yes, using the domain module.
I have one listen statement, listing one ip address and one port.
I have one alias statement listing the actual hostname of the machine.
I have a few domains listed in my db, and I use this code:
# checks if the URI either points at us or if it is from a trusted
# source. If it does point AT us, then we just return with a positive
# value and the caller should continue
#
route[37] {
if (is_uri_host_local()) {
return(1);
}
if (is_from_local()) {
# it wasn't destined *for* us, but it's from
# someone we trust, so relay it
log(1, "from local...\n");
route(21);
} else if (allow_trusted()) {
# it wasn't destined *for* us, but it's from
# someone we trust, so relay it
log(1, "from trusted...\n");
route(21);
} else {
sl_send_reply("403", "Forbidden. We don't relay everything...");
}
return(-1);
}
and I use that at near the top of route[0]
route {
xlog("L_ERR", "$rm $ru $si $fu\n");
# sanity checks
if (!route(39)) {
exit;
}
if (!is_method("REGISTER")) {
record_route();
}
# loose-route
if (!route(38)) {
exit;
}
# meant for us?
if (!route(37)) {
exit;
}
[snip: handle different methods]
}
I would like to see someone authoritative comment on the above.
I've got more to say, but I'll put it in another email
so it doesn't get lost.
-mark
please help in this
commmand : serctl start
[root@bishthost ser]# serctl start
Starting SER : PID file /var/run/ser.pid does not exist -- SER start failed
command : ser
[root@bishthost ser]# ser
0(3666) WARNING: fix_socket_list: could not rev. resolve 192.168.5.93
0(3666) WARNING: fix_socket_list: could not rev. resolve 192.168.5.93
Listening on
udp: 192.168.5.93 [192.168.5.93]:5060
tcp: 192.168.5.93 [192.168.5.93]:5060
Aliases:
stateless - initializing
[root@bishthost ser]# 0(0) Maxfwd module- initializing
0(0) INFO: udp_init: SO_RCVBUF is initially 110592
0(0) INFO: udp_init: SO_RCVBUF is finally 221184
0(0) ERROR: tcp_init: bind(5, 0x8117144, 16) on 192.168.5.93: Address already in use
thanks
vijay
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
Hi there,
Could someone please explain to me the actual difference between *Alias=*and
*Listen=*. I have read the documentation (
http://www.openser.org/dokuwiki/doku.php?id=openser_core_cookbook#alias and
http://www.openser.org/dokuwiki/doku.php?id=openser_core_cookbook#listen)
but still cannot distinguish between what the two functions are doing
differently.
Do I *need* to use both Alias and Listen at the same time in the config?
For example, if I have an openser server responsible for multiple domains *
sip1.foobar.com*, *sip2.foobar.com*, etc and also listening in on multiple
ports (*5060*, *5061*, *5062*), would I have to add the following to my
openser.cfg?
listen=udp:localhost:5060 /* Loopback */
listen=udp:localhost:5061
listen=udp:localhost:5062
listen=udp:192.168.1.101:5060 /* LAN IP of the server */
listen=udp:192.168.1.101:5061
listen=udp:192.168.1.101:5062
listen=udp:sip1.foobar.com:5060 /* Domain 1 */
listen=tcp:sip1.foobar.com:5060
listen=udp:sip1.foobar.com:5061
listen=tcp:sip1.foobar.com:5061
listen=udp:sip1.foobar.com:5062
listen=tcp:sip1.foobar.com:5062
listen=udp:sip2.foobar.com:5060 /* Domain 2 */
listen=tcp:sip2.foobar.com:5060
listen=udp:sip2.foobar.com:5061
listen=tcp:sip2.foobar.com:5061
listen=udp:sip2.foobar.com:5062
listen=tcp:sip2.foobar.com:5062
alias="sip1.foobar.com:5060" /* Aliases for Domain 1 */
alias="sip1.foobar.com:5061"
alias="sip1.foobar.com:5062"
alias="sip2.foobar.com:5060" /* Aliases for Domain 2 */
alias="sip2.foobar.com:5061"
alias="sip2.foobar.com:5062"
alias="111.222.333.444>" /* IP OF SERVER */
Now if I understand correctly then *if (uri==myself) { }* should now be true
for each of these domains.
Hello,
I plan to set up a dialplan where an invite is generated to an application
server when a user agent emits a given DTMF, sent to OpenSER as a SIP INFO
message. This way, I want to do 3rd party call control.
To begin, I have a rather simple question : how to generate an INVITE
message from OpenSER's dialplan? Is there a particular module? Should I use
a dedicated application server acting as a B2BUA receiving the INFO messages
and generating the INVITEs in return ?
Thank you in advance for your help,
Antoine
hi all
thanks
alex <kingofthemods(a)gmail.com> wrote: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Looks like mysql isent started. Simple error start it through init.d or restart I forget which
---------------------------------
From: serusers-bounces(a)lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of vijay tiwari
Sent: 20 October 2006 12:27
To: serusers(a)lists.iptel.org
Subject: [Serusers] problem in installing Mysql
hi all
i have change makefile and reinstall the binaries(make install)
and after this command
[root@bishthost ser-0.9.6]# make dbinstall
Initializing ser database
scripts/ser_mysql.sh create
MySql password for root:
# given the password
Domain (realm) for the default user 'admin': 192.168.5.93
# given the domain 192.168.5.93
creating database ser ...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
make: *** [dbinstall] Error 1
# after that getting this error
please help in this thanks
vijay
---------------------------------
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.
Vijay Tiwari
Network Admin
Sachitel Communications
Noida(U.P.)
M- 09871633711
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
OK, thanks, Nicolas. I just confirmed the ACKs can be detected the same way.
Now another question: is there anyway to generate an ACK locally as an answer
to a BYE?
I checked the SL module but it only does reply and error but it doesn't craft a
message.on its own like "ACK".
Ramin
On 10/19/06, Nicolas Palix <nicolas.palix(a)labri.fr> wrote:
> It should also work.
>
> Have you check with tcpdump or wireshark that the ACK pass through your
> OpenSER server ?
>
> PS: May you keep the discussion on the mailing list...
>
>
> Le jeudi 19 octobre 2006 16:28, vous avez écrit:
> > OK, I'm able to see the BYE's.
> > How can I intercept the ACK's? I tried the same way but I don't see them?
> >
> > On 10/19/06, Nicolas Palix <nicolas.palix(a)labri.fr> wrote:
> > > Hi,
> > >
> > > You may use the Record Route and then check the BYE method.
> > >
> > > Le mercredi 18 octobre 2006 22:21, Ramin Dousti a écrit:
> > > > Hi,
> > > >
> > > > Is there any way to detect a BYE while t_relay() has been called for
> > > > the corresponding INVITE? In what block?
> > > >
> > > > TIA,
> > > > Ramin
> > > >
> > > > _______________________________________________
> > > > Users mailing list
> > > > Users(a)openser.org
> > > > http://openser.org/cgi-bin/mailman/listinfo/users
> > >
> > > --
> > > Nicolas Palix
> > > http://phoenix.labri.fr/people/palix/
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users(a)openser.org
> > > http://openser.org/cgi-bin/mailman/listinfo/users
>
> --
> Nicolas Palix
> http://phoenix.labri.fr/people/palix/
>
--
Ramin
hi all
i have change makefile and reinstall the binaries(make install)
and after this command
[root@bishthost ser-0.9.6]# make dbinstall
Initializing ser database
scripts/ser_mysql.sh create
MySql password for root:
# given the password
Domain (realm) for the default user 'admin': 192.168.5.93
# given the domain 192.168.5.93
creating database ser ...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
make: *** [dbinstall] Error 1
# after that getting this error
please help in this thanks
vijay
---------------------------------
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.
Hi,
I would upgrade SER to 0.9.6 release. I follow all instructions also I make
install library like mysql, auth_radius and so.
After the installation I try to start with a new release there isn't error
message in /var/log/messages but the SER doesn't start.
Why? Can anyone say me anything?
Thanks.
Regards,
Paolo