Hello,
First of all thaks to Kraus for his quick reply on my last question. However I can't do openser work fine.
I'm trying to use failure_route as follows, can anybody tell me which could be the problem??
(...)
modparam("tm", "fr_inv_timer" , 10)
# timer for response to a request
modparam("tm","fr_timer", 4)
# ------------------------- request routing logic -------------------
# main routing logic
route{
(...)
if (uri==myself) {
(...)
# Redirecciono cap a l'asterisk si marquen una extensió que comença per 3
if(uri=~"sip:2[0-9]+@" && method=="INVITE") {
t_on_failure("1");
}
(...)
route(1);
}
route[1] {
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
exit;
}
failure_route[1]{
rewritehostport("172.16.51.160"); #asterisk
rewriteuser("2002");
append_branch();
t_relay();
exit;
}
With this openser.cfg the call is cancelled after fr_inv_timer and failure_route[1] doesn't work but, however, if I do this:
route{
(...)
if (uri==myself) {
(...)
# Redirecciono cap a l'asterisk si marquen una extensió que comença per 3
if(uri=~"sip:2[0-9]+@" && method=="INVITE") {
à rewritehostport("172.16.51.160"); #asterisk
à rewriteuser("2002");
t_relay();
exit;
}
(...)
route(1);
}
If I use this the call is redirected to my asterisk but using the failure_route as my first openser.cfg it does't work.
Which is my problem??
Thanks....
On Donnerstag, 24. Mai 2007, you wrote:
> Hi Henning,
>
> Thanks for youe response, but can you please tell me how to load the mysql
> database engine ?
Hi,
add ' loadmodule "mysql.so" ' to your config file.
Then you must also add a db_url to the module that should use the database,
look for example to the usrloc module documentation. A sample setup is
described at in the installation notes at:
http://www.openser.org/mos/view/-OpenSER-Installation-Notes/
Henning
Hi Henning,
Perfect. Thanks again.
- Jeremy
>-----Original Message-----
>From: Henning Westerholt [mailto:henning.westerholt@1und1.de]
>Sent: Thursday, May 24, 2007 04:39 AM
>To: users(a)openser.org, 'Jeremy George'
>Subject: Re: [Users] active_watchers table
>
>On Mittwoch, 23. Mai 2007, Jeremy George wrote:
>> Hello All,
>>
>> I'm getting this error message:
>>
>> 0(0) PRESENCE:mod_init: Wrong version v1 for table <active_watchers>, need
>> v4
>> 0(0) init_mod(): Error while initializing module presence
>> ERROR: error while initializing modules
>>
>> I downloaded and compiled the current svn head (2276), and created the
>> mysql active_watchers table defined in the README (see below).
>> [..]
>> Can anyone tell me where to find the right table? Thanks much.
>
>Hello Jeremy,
>
>the table that is defined by the README is to old. You can extract at the
>moment all tables from the mysqldb.sh script.
>
>In the next weeks the db stuff will be updated, then all db schemas would be
>up to date in a central place.
>
>I've attached the current table too.
>
>#################
>INSERT INTO version (table_name, table_version) values
>('active_watchers','4');
>CREATE TABLE active_watchers (
> id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
> pres_user VARCHAR(64) NOT NULL,
> pres_domain VARCHAR(128) NOT NULL,
> to_user VARCHAR(64) NOT NULL,
> to_domain VARCHAR(128) NOT NULL,
> from_user VARCHAR(64) NOT NULL,
> from_domain VARCHAR(128) NOT NULL,
> event VARCHAR(64) NOT NULL DEFAULT 'presence',
> event_id VARCHAR(64),
> to_tag VARCHAR(128) NOT NULL,
> from_tag VARCHAR(128) NOT NULL,
> callid VARCHAR(128) NOT NULL,
> local_cseq INT(11) NOT NULL,
> remove_cseq INT(11) NOT NULL,
> contact VARCHAR(128) NOT NULL,
> record_route TEXT,
> expires INT(11) NOT NULL,
> status VARCHAR(32) NOT NULL DEFAULT 'pending',
> version INT(11) NOT NULL DEFAULT '0',
> socket_info VARCHAR(128) NOT NULL,
> local_contact VARCHAR(255) NOT NULL,
> UNIQUE KEY tt_watchers (to_tag),
> KEY due_activewatchers (to_domain, to_user, event),
> PRIMARY KEY (id)
>) Type=MyISAM;
>########
>
>
>Best regards,
>
>Henning
>
Hello,
I'm trying to redirect a call from openser to an Asterisk extension when a call is no answer. I think that this wouldn't be so difficult but I can't do it. I know that I have to use the failure_route(); with a fr_inv_timer parameter and then do a rewritehostport and a rewriteuser. My problem is that when the fr_inv_timer pass the call is cancelled and nothing else happens. In addition, I don't know where I can find the logs that I put in my openser.cfg, I have read the xlog module but I can't understand how to do it.
On other hand, I have seen that there are a lot of functions that are often used but I don't know what they do internally, for example t_relay(), t_onreply(), revert_uri(),t_was_cancelled() etc etc etc and I don't know how to use it. ¿Is there any document that explain all it WELL??
Also, I've checked that if I do a call and I put the lines t_relay() and exit that call works fine but if I erase one of the two lines it don't work. Why???
Please help, I want to do a lot of things with openser but there is nothing that explain the basic functionality to do interessant things...
Thanks in advance,
"It will arrive the day that we will control telephony"
SIP wrote:
> Your biggest issue, bar none, is using the loopback address for
> anything externally-facing. 127.0.0.1 is called a loopback address for
> a reason -- it never leaves the host itself. Just how do you expect
> the SIP phones to be able to contact a 127.0.0.1 address when that
> address is, in essence, themselves?
>
> There's something inherently flawed in your design.
>
> Let's back up and explain, in detail, what it is exactly you're trying
> to do, and why you feel the 127.0.0.1 address should be part of this
> equation? Perhaps we can suggest something if we know what you're
> trying to do.
>
There's a very simple reason. Asterisk and SER are on the same
machine. So the traffic from SER to asterisk doesn't need to leave the
box. This is why I'm using the loopback interface - there's no need to
use the real world one.
--
Regards,
John Breen
HGA IT&T Solutions
Tel: 08 63113000
Fax: 08 63113144
http://www.hgait.net.au
Level 9, 256 Adelaide Terrace, Perth, WA 6000
Postal PO Box 3133 Perth, Adelaide Tce WA 6832
The information in this E-mail is confidential. If you are not the named
& intended recipient, you must not read, use, copy, disclose or disseminate
this E-mail, any attachments or the information contained in this E-mail and
must immediately notify the sender & delete this E-mail immediately. Although
HGA IT&T Solutions believes that this E-mail and any attachments are free of
any virus or other defect which may affect a computer, it is the
responsibility of the recipient to ensure that it is virus free. HGA IT&T
Solutions does not accept any responsibility for any loss or damage arising in
any way from the use of this E-mail or any attachments.
IMPORTANT INFORMATION
This is not a SPAM. The SPAM Act 2003 commenced on the 10th April 2004 and
requires consent to the sending of most commercial electronic messages. If
you wish to continue receiving electronic communications from HGA IT&T
Solutions, you do not need to take any action.
If you DO NOT wish to continue receiving electronic communications from HGA
IT&T Solutions please advise us at admin(a)hgait.net.au and we will update our
records accordingly.
Hi all,
I am new user to openser, and I am trying to install openser to work as a presence server with the openims.
Firstly is it possible to use the openser as a presence server.
Secondly, I am getting the below error when I try to run the openserctl.
[root@mkd149633 scripts]# openserctl moni
ERROR: Error opening OpenSER's FIFO /tmp/openser_fifo
ERROR: Make sure you have line 'fifo=/tmp/openser_fifo' in your config
Also I am not able to add users ,
[root@mkd149633 scripts]# openserctl add wipro1 wipro1 wipro1(a)presence.mkd149633.wipro.com
This command requires a database engine - none was loaded
[root@mkd149633 scripts]#
Looking forward to your support.
Thanks and Regards,
Kiran.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
Hello All,
I'm getting this error message:
0(0) PRESENCE:mod_init: Wrong version v1 for table <active_watchers>, need
v4
0(0) init_mod(): Error while initializing module presence
ERROR: error while initializing modules
I downloaded and compiled the current svn head (2276), and created the
mysql active_watchers table defined in the README (see below). I'm
attempting
to run it against the sample bla config found at:
http://www.openser.org/dokuwiki/doku.php/presence:pua_bla
(with some changes for appropriate environment).
Can anyone tell me where to find the right table? Thanks much.
- Jeremy
CREATE TABLE `active_watchers` (
`id` int(10) NOT NULL auto_increment,
`pres_user` varchar(64) NOT NULL,
`pres_domain` varchar(128) NOT NULL,
`to_user` varchar(64) NOT NULL,
`to_domain` varchar(128) NOT NULL,
`from_user` varchar(64) NOT NULL,
`from_domain` varchar(128) NOT NULL,
`event` varchar(64) NOT NULL default 'presence',
`event_id` varchar(64),
`to_tag` varchar(128) NOT NULL,
`from_tag` varchar(128) NOT NULL,
`callid` varchar(128) NOT NULL,
`local_cseq` int(11) NOT NULL,
`remote_cseq` int(11) NOT NULL,
`contact` varchar(128) NOT NULL,
`record_route` text,
`expires` int(11) NOT NULL,
`status` varchar(32) NOT NULL default 'pending',
`version` int(11) default '0',
`socket_info` varchar(128) NOT NULL,
`local_contact` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `tt_watchers` (`to_tag`),
KEY `due_activewatchers` (`to_domain`,`to_user`,`event`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
Hi All,
This ser installation was working fine and I can't figure out why its not working now.
I'm getting an error (see last log line) every time I attempt a call to local users. Calling out to PSTN works great. ngrep reveals that SER is not sending any messages to the callee location.
There are 2 registered local users, one registered twice.
I have no idea what is going on. I'm using an unmodified version 1.4 ser.cfg file on CentOS 5.
I suspect some server configuration error? ? ? ?
Thanks,
M
Here are the logs.
May 23 16:03:38 vx1 ser: init_tcp: using epoll_lt as the io watch method (auto detected)
May 23 16:03:38 vx1 /usr/local/sbin/ser[1692]: Maxfwd module- initializing
May 23 16:03:38 vx1 /usr/local/sbin/ser[1692]: WARNING: xl_mod_init: more IP 10.10.10.41 not used
May 23 16:03:38 vx1 last message repeated 8 times
May 23 16:03:38 vx1 /usr/local/sbin/ser[1692]: AVPops - initializing
May 23 16:03:38 vx1 /usr/local/sbin/ser[1692]: DEB: IP address of RTPPROXY is /var/run/rtpproxy.sock
May 23 16:03:38 vx1 /usr/local/sbin/ser[1692]: INFO: xlog null is "<null>"
May 23 16:03:38 vx1 /usr/local/sbin/ser[1692]: INFO: udp_init: SO_RCVBUF is initially 109568
May 23 16:03:38 vx1 /usr/local/sbin/ser[1692]: INFO: udp_init: SO_RCVBUF is finally 262142
May 23 16:03:38 vx1 /usr/local/sbin/ser[1692]: INFO: udp_init: SO_RCVBUF is initially 109568
May 23 16:03:38 vx1 /usr/local/sbin/ser[1692]: INFO: udp_init: SO_RCVBUF is finally 262142
.
.
.
.
May 23 16:09:15 vx1 /usr/local/sbin/ser[1781]: rtpp_test: RTP proxy <unix:/var/run/rtpproxy.sock> found, support for it re-enabled
May 23 16:09:15 vx1 /usr/local/sbin/ser[1781]: ERROR: udp_send: sendto(sock,0xb62048f4,1773,0,10.10.100.103:5060,16): Invalid argument(22)
May 23 16:09:15 vx1 /usr/local/sbin/ser[1781]: CRITICAL: invalid sendtoparameters one possible reason is the server is bound to localhost
and attempts to send to the net
May 23 16:09:15 vx1 /usr/local/sbin/ser[1781]: msg_send: ERROR: udp_send failed
May 23 16:09:15 vx1 /usr/local/sbin/ser[1781]: ERROR: t_send_branch: sending request on branch 0 failed
May 23 16:09:15 vx1 /usr/local/sbin/ser[1781]: ERROR: sl_reply_error used: Unfortunately error on sending to next hop occurred (477/SL)
When I start SER I get this response:
[root@vx1 ~]# service ser restart
Stopping ser: [ OK ]
Starting ser: Listening on
udp: 127.0.0.1 [127.0.0.1]:5060
udp: 10.10.10.41 [10.10.10.41]:5060
tcp: 127.0.0.1 [127.0.0.1]:5060
tcp: 10.10.10.41 [10.10.10.41]:5060
Aliases:
tcp: vx1:5060
tcp: vx1.velocity11.com:5060
tcp: localhost:5060
tcp: localhost.localdomain:5060
udp: vx1:5060
udp: vx1.velocity11.com:5060
udp: localhost:5060
udp: localhost.localdomain:5060
[ OK ]
[root@vx1 ~]#
____________________________________________________________________________________Ready for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/
Ok, let me see if I've got this right.
I'm running SER and Asterisk on the same box. SER listens on the
external IP of the box on port 5060, Asterisk on localhost (127.0.0.1)
on port 5061. My starting point to get calls from SER able to use the
real world is the SER PSTN gateway in the Getting Started document, with
route[5] changed to:
route[5] {
rewritehostport("127.0.0.1:5061");
avp_write("i:45", "inv_timeout");
route(1);
}
I start SER and add accounts 306, 307 and 499. So far so good, and when
I get it all up and running, SIP phones can call other SIP phones via
SER. Now, if I read right, I then need to tell SER that 127.0.0.1 is a
trusted account by doing
INSERT INTO trusted VALUES('127.0.0.1', 'any', '^sip:.*$');
in mysql, and restarting SER. I can still dial between internal phones
and that is all OK, but I cannot dial via asterisk. I don't even see
calls getting there.
If I then add into the trusted table the IP addresses of SIP clients, I
can dial from them via asterisk. But I have to do this for every
client. This is fine if there are only a limited number of IP addresses
that can use the asterisk gateway, but I have users with laptops in the
real world whose IP addresses change so it's obviously not an ideal
solution.
What am I missing? Is the Call Forwarding setup the answer? I need to
use SER as a front end to asterisk because of NAT issues, but I don't
want to have to add EVERY user to the trusted table individually.
Regards
John Breen
--
Regards,
John Breen
HGA IT&T Solutions
Tel: 08 63113000
Fax: 08 63113144
http://www.hgait.net.au
Level 9, 256 Adelaide Terrace, Perth, WA 6000
Postal PO Box 3133 Perth, Adelaide Tce WA 6832
The information in this E-mail is confidential. If you are not the named
& intended recipient, you must not read, use, copy, disclose or disseminate
this E-mail, any attachments or the information contained in this E-mail and
must immediately notify the sender & delete this E-mail immediately. Although
HGA IT&T Solutions believes that this E-mail and any attachments are free of
any virus or other defect which may affect a computer, it is the
responsibility of the recipient to ensure that it is virus free. HGA IT&T
Solutions does not accept any responsibility for any loss or damage arising in
any way from the use of this E-mail or any attachments.
IMPORTANT INFORMATION
This is not a SPAM. The SPAM Act 2003 commenced on the 10th April 2004 and
requires consent to the sending of most commercial electronic messages. If
you wish to continue receiving electronic communications from HGA IT&T
Solutions, you do not need to take any action.
If you DO NOT wish to continue receiving electronic communications from HGA
IT&T Solutions please advise us at admin(a)hgait.net.au and we will update our
records accordingly.
Forgive me if this question is a little open-ended... I am new to openser
and sip, and trying to learn all I can...
I am looking for information regarding:
ERROR: append_branch: max nr of branches exceeded
I understand that this error can be avoided by increasing the value of
MAX_BRANCHES and recompiling openser, but, I am curious as to what happens
when this error has been reached.
Here's our situation... We use openser, and have a separate openser presence
server. We had a situation recently where it seemed our presence server was
bombarding our proxy to the point where the load on the proxy jumped and
phones became unusable. Taking down the presence server seemed to alleviate
the troubles.
Also, we have an intermittent issue with phone reboots and lost calls,
particularly on extensions that are on more than 12 phones (MAX_BRANCHES is
currently set to 12).
So, my question is, is this failure (max nr of branches exceeded) an
innocuous one? or could it lead to futher failures (and maybe sip message
recents... thus the bombardment)... Are there known side affects of this
failure?
Any info would be appreciated.
Thanks Much!
Best,
Dan Mechanic