May 24 17:02:17 dns ser: parse error (328,9-11): parse error May 24 17:02:17 dns ser: parse error (328,9-11): May 24 17:02:17 dns ser: WARNING:fm_free: free(0) called May 24 17:02:17 dns ser: ERROR: bad config file (2 errors) May 24 17:02:17 dns ser: ser startup failed
Giuseppe
----- Original Message ----- From: "Giuseppe Parlato" gparlato@tnet.it To: "Vince Hoffman" <> Cc: <> Sent: Wednesday, May 24, 2006 5:06 PM Subject: Re: [Serusers] backup route
Yes, I have
debug=3 # debug level (cmd line: -dddddddddd) fork=yes log_stderror=no # (cmd line: -E)
----- Original Message ----- From: "Vince Hoffman" vhoffman@mnet.co.uk To: "Giuseppe Parlato" gparlato@tnet.it; "Tobias Lindgren" tobias.lindgren@ip-only.se Cc: serusers@iptel.org Sent: Wednesday, May 24, 2006 4:38 PM Subject: RE: [Serusers] backup route
Do you have debug=8 # debug level (cmd line: -dddddddddd) fork=no log_stderror=yes # (cmd line: -E)
in your ser.cfg ? if not then have a look in syslog and see if its logged the details there.
Vince
mnet Internet Limited Support Services
Helpdesk: 0870 3335577 Fax: +44 (0)20 7324 3900 Email: support@mnet.co.uk Web: www.mnet.co.uk
132-140 Goswell Road London EC1V 7DY
-----Original Message----- From: Giuseppe Parlato [mailto:gparlato@tnet.it] Sent: 24 May 2006 15:30 To: Tobias Lindgren Cc: serusers@iptel.org Subject: Re: [Serusers] backup route
Starting ser: ERROR: bad config file (2 errors)
ser -c ..... config file ok, exiting... !!!really going crazy
Giuseppe
----- Original Message ----- From: "Tobias Lindgren" tobias.lindgren@ip-only.se To: "Giuseppe Parlato" gparlato@tnet.it Cc: <> Sent: Wednesday, May 24, 2006 4:19 PM Subject: Re: [Serusers] backup route
Hi,
"ser -c" will tell you exactly which row that's not correct, also it will in many cases tell you what you have done wrong.
Br, Tobias
Giuseppe Parlato said the following on 2006-05-24 16:11:
help please, I'm going crazy. I still get 2 errors... where? the new configuration:
if (lookup("location")) { rewritehost("mydomain.com"); } else { if ((uri=~"^sip:6200[0-9]+@") && (!uri=~"^sip:6200200@") && (!uri=~"^sip:6200100@") ) { rewritehost("routerA"); forward(uri:host, uri:port); break; } else { if ((uri=~"^sip:80[0-9]+@") | (uri=~"^sip:1[0-9][0-9]@")
|
(uri=~"^sip:1515@")) { route(3); break; } }; };
route[3] { rewritehost("routerB"); forward(uri:host, uri:port); t_on_failure("3"); t_relay(); }
failure_route[3] { rewritehost("routerC"); forward(uri:host, uri:port); append_branch(); t_relay(); }
how do I have to use } or }; ??
Giuseppe
----- Original Message ----- From: "Giuseppe Parlato" gparlato@tnet.it To: serusers@iptel.org Cc: "Tobias Lindgren" tobias.lindgren@ip-only.se Sent: Tuesday, May 23, 2006 1:20 PM Subject: Re: [Serusers] backup route
yes.. t_on_failure is "4" .. but when I restart ser I get 8 errors
in
config file, is there any way to check where these errors are?
route[3] {
if ((uri=~"^sip:80[0-9]+@") | (uri=~"^sip:1[0-9][0-9]@") |
(uri=~"^sip:1515@")) { route(4); }
route[4] { rewritehost("routerA cisco IP"); forward(uri:host, uri:port); t_on_failure("4"); t_relay(); }
failure_route[4] { rewritehost("routerB cisco IP"); forward(uri:host, uri:port); append_branch(); t_relay(); }
Giuseppe
----- Original Message ----- From: "Tobias Lindgren" tobias.lindgren@ip-only.se To: "Giuseppe Parlato" gparlato@tnet.it Cc: serusers@iptel.org Sent: Tuesday, May 23, 2006 12:39 PM Subject: Re: [Serusers] backup route
Yep, that works fine.
But t_on_failuer("X") == failure_route[X], so t_on_failure should
be 4,
if you use failure_route[4].
/T
Giuseppe Parlato said the following on 2006-05-23 12:25:
actually this is a subroute..
route[3] { if ((uri=~"^sip:80[0-9]+@") | (uri=~"^sip:1[0-9][0-9]@") | (uri=~"^sip:1515@")) { rewritehost("ip"); forward(uri:host, uri:port); break; };
.. called by he main route
if ((uri=~"^sip:1200[0-9]+@") && (!uri=~"^sip:1200200@") && (!uri=~"^sip:1200100@") ) { rewritehost("ip"); forward(uri:host, uri:port); break;
} else { route(3); break;
..can I do like this?? call a subroute [4] from e subroute [3]?
if ((uri=~"^sip:80[0-9]+@") | (uri=~"^sip:1[0-9][0-9]@") | (uri=~"^sip:1515@")) { route(4); } route[4] { rewritehostport("192.168.0.1:5060"); t_on_failure("1"); t_relay(); }
failure_route[4] { rewritehostport("192.168.0.2:5060"); append_branch(); t_relay(); }
Giuseppe
----- Original Message ----- From: "Tobias Lindgren" tobias.lindgren@ip-only.se To: "Giuseppe Parlato" gparlato@tnet.it Cc: serusers@iptel.org Sent: Tuesday, May 23, 2006 9:56 AM Subject: Re: [Serusers] backup route
> Hello, > > You can use the "route[]" and "failure_route[]" functions in
ser.cfg.
> > A short example: > if ((uri=~"^sip:80[0-9]+@") | (uri=~"^sip:1[0-9][0-9]@") | > (uri=~"^sip:1515@")) { > route(1); > } > route[1] { > rewritehostport("192.168.0.1:5060"); > t_on_failure("1"); > t_relay(); > } > > failure_route[1] { > rewritehostport("192.168.0.2:5060"); > append_branch(); > t_relay(); > } > > This above would relay on that you have the "tm.so" module
loaded.
> Also, > the tm-module has some parameters for timeouts and stuff (such as > fr_timer) which you should laborate with. > > Good luck! > > Br, > Tobias > > Giuseppe Parlato said the following on 2006-05-22 18:04: >> When calling some numbers I have to forward calls to a router >> cisco (then it wil forward calls out through isdn) or to a
backup
>> router >> cisco if the first one is busy. The route to primary cisco
router
>> works >> but I don't know how to implement the backup route in ser.cfg ?
how
>> can >> I configure a backup route in sip server? >> I hope someone can answer me soon, I'm in trouble :| >> >> >> if ((uri=~"^sip:80[0-9]+@") | (uri=~"^sip:1[0-9][0-9]@") | >> (uri=~"^sip:1515@")) { >> rewritehost("router IP"); >> forward(uri:host, uri:port); >> break; >> }; >> >> Thanks >> >> Giuseppe >> >> >>
>> >> _______________________________________________ >> Serusers mailing list >> Serusers@iptel.org >> http://mail.iptel.org/mailman/listinfo/serusers > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.392 / Virus Database: 268.6.1/344 - Release Date: > 19/05/2006 > >
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 22/05/2006
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date:
23/05/2006
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
This message has been scanned for viruses by 3Labs - www.mnet.net.uk
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date: 23/05/2006
Its telling you problem is at line 328, characters 9-11.
Giuseppe Parlato wrote:
May 24 17:02:17 dns ser: parse error (328,9-11): parse error May 24 17:02:17 dns ser: parse error (328,9-11): May 24 17:02:17 dns ser: WARNING:fm_free: free(0) called May 24 17:02:17 dns ser: ERROR: bad config file (2 errors) May 24 17:02:17 dns ser: ser startup failed
Giuseppe
----- Origin
Andres
after some little changes:
May 24 17:40:28 dns ser: parse error (326,9-11): parse error May 24 17:40:28 dns ser: parse error (326,9-11): May 24 17:40:28 dns ser: WARNING:fm_free: free(0) called May 24 17:40:28 dns ser: ERROR: bad config file (2 errors) May 24 17:40:28 dns ser: ser startup failed
line 326:
if ((method=="INVITE") | (method=="ACK") | (method=="CANCEL") | (method=="BYE")) {
I don't think that is really the problem ???
Giuseppe
----- Original Message ----- From: "Andres" andres@telesip.net To: "Giuseppe Parlato" gparlato@tnet.it Cc: <> Sent: Wednesday, May 24, 2006 5:25 PM Subject: Re: [Serusers] backup route
Its telling you problem is at line 328, characters 9-11.
Giuseppe Parlato wrote:
May 24 17:02:17 dns ser: parse error (328,9-11): parse error May 24 17:02:17 dns ser: parse error (328,9-11): May 24 17:02:17 dns ser: WARNING:fm_free: free(0) called May 24 17:02:17 dns ser: ERROR: bad config file (2 errors) May 24 17:02:17 dns ser: ser startup failed
Giuseppe
----- Origin
Andres
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date: 23/05/2006
can you try to use double | instead of just one?
if ((method=="INVITE") || (method=="ACK") || (method=="CANCEL") || (method=="BYE")) {
It might work....
Samuel. 2006/5/24, Giuseppe Parlato gparlato@tnet.it:
after some little changes:
May 24 17:40:28 dns ser: parse error (326,9-11): parse error May 24 17:40:28 dns ser: parse error (326,9-11): May 24 17:40:28 dns ser: WARNING:fm_free: free(0) called May 24 17:40:28 dns ser: ERROR: bad config file (2 errors) May 24 17:40:28 dns ser: ser startup failed
line 326:
if ((method=="INVITE") | (method=="ACK") | (method=="CANCEL") | (method=="BYE")) {
I don't think that is really the problem ???
Giuseppe
----- Original Message ----- From: "Andres" andres@telesip.net To: "Giuseppe Parlato" gparlato@tnet.it Cc: <> Sent: Wednesday, May 24, 2006 5:25 PM Subject: Re: [Serusers] backup route
Its telling you problem is at line 328, characters 9-11.
Giuseppe Parlato wrote:
May 24 17:02:17 dns ser: parse error (328,9-11): parse error May 24 17:02:17 dns ser: parse error (328,9-11): May 24 17:02:17 dns ser: WARNING:fm_free: free(0) called May 24 17:02:17 dns ser: ERROR: bad config file (2 errors) May 24 17:02:17 dns ser: ser startup failed
Giuseppe
----- Origin
Andres
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date: 23/05/2006
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
No way, now the error is on a different line. Maybe there is not a } somewhere, but I checked I haven't seen any problem
ps: }; and } are the same?
Giuseppe
----- Original Message ----- From: "samuel" samu60@gmail.com To: "Giuseppe Parlato" gparlato@tnet.it Cc: <> Sent: Wednesday, May 24, 2006 5:50 PM Subject: Re: [Serusers] backup route
can you try to use double | instead of just one?
if ((method=="INVITE") || (method=="ACK") || (method=="CANCEL") || (method=="BYE")) {
It might work....
Samuel. 2006/5/24, Giuseppe Parlato gparlato@tnet.it:
after some little changes:
May 24 17:40:28 dns ser: parse error (326,9-11): parse error May 24 17:40:28 dns ser: parse error (326,9-11): May 24 17:40:28 dns ser: WARNING:fm_free: free(0) called May 24 17:40:28 dns ser: ERROR: bad config file (2 errors) May 24 17:40:28 dns ser: ser startup failed
line 326:
if ((method=="INVITE") | (method=="ACK") | (method=="CANCEL") | (method=="BYE")) {
I don't think that is really the problem ???
Giuseppe
----- Original Message ----- From: "Andres" andres@telesip.net To: "Giuseppe Parlato" gparlato@tnet.it Cc: <> Sent: Wednesday, May 24, 2006 5:25 PM Subject: Re: [Serusers] backup route
Its telling you problem is at line 328, characters 9-11.
Giuseppe Parlato wrote:
May 24 17:02:17 dns ser: parse error (328,9-11): parse error May 24 17:02:17 dns ser: parse error (328,9-11): May 24 17:02:17 dns ser: WARNING:fm_free: free(0) called May 24 17:02:17 dns ser: ERROR: bad config file (2 errors) May 24 17:02:17 dns ser: ser startup failed
Giuseppe
----- Origin
Andres
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date: 23/05/2006
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
2006/5/24, Giuseppe Parlato gparlato@tnet.it:
No way, now the error is on a different line. Maybe there is not a } somewhere, but I checked I haven't seen any problem
ps: }; and } are the same?
unfortunately not.....depends on where they are placed you have to finish with ; (end of and if block) or just } if later an else continues...
Maybe you've got another error on another line...which lines appear to be wrong in your logs? Samuel,
Giuseppe
----- Original Message ----- From: "samuel" samu60@gmail.com To: "Giuseppe Parlato" gparlato@tnet.it Cc: <> Sent: Wednesday, May 24, 2006 5:50 PM Subject: Re: [Serusers] backup route
can you try to use double | instead of just one?
if ((method=="INVITE") || (method=="ACK") || (method=="CANCEL") || (method=="BYE")) {
It might work....
Samuel. 2006/5/24, Giuseppe Parlato gparlato@tnet.it:
after some little changes:
May 24 17:40:28 dns ser: parse error (326,9-11): parse error May 24 17:40:28 dns ser: parse error (326,9-11): May 24 17:40:28 dns ser: WARNING:fm_free: free(0) called May 24 17:40:28 dns ser: ERROR: bad config file (2 errors) May 24 17:40:28 dns ser: ser startup failed
line 326:
if ((method=="INVITE") | (method=="ACK") | (method=="CANCEL") | (method=="BYE")) {
I don't think that is really the problem ???
Giuseppe
----- Original Message ----- From: "Andres" andres@telesip.net To: "Giuseppe Parlato" gparlato@tnet.it Cc: <> Sent: Wednesday, May 24, 2006 5:25 PM Subject: Re: [Serusers] backup route
Its telling you problem is at line 328, characters 9-11.
Giuseppe Parlato wrote:
May 24 17:02:17 dns ser: parse error (328,9-11): parse error May 24 17:02:17 dns ser: parse error (328,9-11): May 24 17:02:17 dns ser: WARNING:fm_free: free(0) called May 24 17:02:17 dns ser: ERROR: bad config file (2 errors) May 24 17:02:17 dns ser: ser startup failed
Giuseppe
----- Origin
Andres
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date: 23/05/2006
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date: 23/05/2006
Finally it works! However between the the time call is switched from cisco routerA (to make the call) and the backup routerB I get: After second invite RouterA informs ser it detected (for testing purpose RouterA cannot forward calls for now, only routerB) a loop and ser answer with an ack.. then ser send an invite to routerB and inform my ip phone.. then mi phone answer ser with an ack and send another invite to ser and ser send invite to routerA.. and so on.. then finally routerB forward the call. However in beetwen I get a 500 server error and that is not something fine to hear. Maybe is it not clear however if you have any advice I'll be pleased.
Giuseppe
----- Original Message ----- From: "samuel" samu60@gmail.com To: "Giuseppe Parlato" gparlato@tnet.it Cc: <> Sent: Wednesday, May 24, 2006 6:24 PM Subject: Re: [Serusers] backup route
2006/5/24, Giuseppe Parlato gparlato@tnet.it:
No way, now the error is on a different line. Maybe there is not a } somewhere, but I checked I haven't seen any problem
ps: }; and } are the same?
unfortunately not.....depends on where they are placed you have to finish with ; (end of and if block) or just } if later an else continues...
Maybe you've got another error on another line...which lines appear to be wrong in your logs? Samuel,
Giuseppe
----- Original Message ----- From: "samuel" samu60@gmail.com To: "Giuseppe Parlato" gparlato@tnet.it Cc: <> Sent: Wednesday, May 24, 2006 5:50 PM Subject: Re: [Serusers] backup route
can you try to use double | instead of just one?
if ((method=="INVITE") || (method=="ACK") || (method=="CANCEL") || (method=="BYE")) {
It might work....
Samuel. 2006/5/24, Giuseppe Parlato gparlato@tnet.it:
after some little changes:
May 24 17:40:28 dns ser: parse error (326,9-11): parse error May 24 17:40:28 dns ser: parse error (326,9-11): May 24 17:40:28 dns ser: WARNING:fm_free: free(0) called May 24 17:40:28 dns ser: ERROR: bad config file (2 errors) May 24 17:40:28 dns ser: ser startup failed
line 326:
if ((method=="INVITE") | (method=="ACK") | (method=="CANCEL") | (method=="BYE")) {
I don't think that is really the problem ???
Giuseppe
----- Original Message ----- From: "Andres" andres@telesip.net To: "Giuseppe Parlato" gparlato@tnet.it Cc: <> Sent: Wednesday, May 24, 2006 5:25 PM Subject: Re: [Serusers] backup route
Its telling you problem is at line 328, characters 9-11.
Giuseppe Parlato wrote:
May 24 17:02:17 dns ser: parse error (328,9-11): parse error May 24 17:02:17 dns ser: parse error (328,9-11): May 24 17:02:17 dns ser: WARNING:fm_free: free(0) called May 24 17:02:17 dns ser: ERROR: bad config file (2 errors) May 24 17:02:17 dns ser: ser startup failed
Giuseppe
----- Origin
Andres
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date: 23/05/2006
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date: 23/05/2006