Hi,
I'm sorry this is maybe a FAQ, but I can't configure SER in order to
statefully forward all method for "PSTN uris" to a backup gateway only when
the primary is not reachable or down; I have two gateways:
- primary gateway (installed into a remote site, connected to 2 PRIs, IP
connected via VPN)
- backup gateway (installed locally, connected to a few BRIs)
Is there a way to handle "gateway failover" directly into ser? If not
possible, I could use DNS round robin, but I'd prefer to handle failover
into SER.
I've tried with t_on_failure but I can't insert any t_relay logic into
onreply_route blocks:
....
} else if ((uri=~"sip:0.*")||(uri=~"sip:3.*")) {
route(2);
}
....
route[2]
{
t_on_failure("2");
prefix("99");
rewritehost("MY.PRIMARY.GW.IP");
t_relay_to_udp("MY.PRIMARY.GW.IP","5060");
}
onreply_route[2] {
xlog("L_ERR", "Can't connect to primary gateway, redirecting to
backup one, uri was %ru");
revert_uri();
xlog("L_ERR", "Uri reverted back to %ru, forwarding to Cisco gw");
t_relay_to_udp("MY.BACKUP.GW.IP","5060"); # <----------- CAN'T DO
THIS HERE!!!
}
Any ideas?
Thanks!
Pietro
--
Ing. Pietro Ravasio - pietro.ravasio(a)abbeynet.it
Enterprise Market Manager
Abbeynet S.p.A. - http://www.abbeynet.it
TEL: +390702109044
GSM: +393282172055
FAX: +390702109055
Hello! I install asterisk and ser in same host, They are working well alone , I want to integrated them together,I used the pstn-gw.cfg from onsip.org .I used the asterisk as a pstn gateway and voicemail.my asterisk's account is 200 201 ,when I dial the number 011201 forward the PSTN gateway ,UA show me error"407 Proxy Authentication Required" How can I solve it? BTW I want to know how does I plan the ser and asterisk dialplan. Ser and asterisk have differ users authentication,How we know them are differ?
thanks advance!
Zhaomin
/tmp/ser_fifo/ is wrong since it'll be looking for a folder...
Marc
-----Original Message-----
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org] On
Behalf Of Marc Khayat
Sent: Friday, August 19, 2005 11:03 AM
To: Karel Kozlik
Cc: serusers(a)lists.iptel.org
Subject: RE: [Serusers] Serweb
Hi Karel,
Thx for bearing with me :)
In config_paths.php, I changed it from "/tmp/ser_fifo" to
"tmp/ser_fifo/"
The errors at the top disappeared but I'm still getting the "FIFO not
running or bad path to it" message.
Is it wrong to put "tmp/ser_fifo/"? knowing that in ser.cfg, it's
/tmp/ser_fifo
Thanks again,
Marc
-----Original Message-----
From: Karel Kozlik [mailto:karel@iptel.org]
Sent: Friday, August 19, 2005 9:28 AM
To: Marc Khayat
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Serweb
sorry Marc, haven't idea what may be wrong. Please check again setting
of fifo in serweb. Check variable $config->fifo_server in
config_paths.php. It's value must be '/tmp/ser_fifo'.
Try enable logging in serweb ($config->enable_loging = true in
config.php), set log level to debug ($config->log_level =
"PEAR_LOG_DEBUG") and examine the log file if there are some messages
refered fifo.
Also try search for string 'fifo_server' throught log files (or whole
serweb) and check if it's value isn't changed somewhere. You should find
this string only in file config_paths.php (one times) and in file
functions.php (four times).
Karel
Marc Khayat napsal(a):
> Hi Karel,
> I already tried this one by manually changing the permissions on
> ser_fifo to 666; I just tried adding fifo_mode=0666 to ser.cfg, but
> still the same problem.
>
> Marc
> -----Original Message-----
> From: Karel Kozlik [mailto:karel@iptel.org]
> Sent: Friday, August 19, 2005 8:21 AM
> To: Marc Khayat
> Cc: serusers(a)lists.iptel.org
> Subject: Re: [Serusers] Serweb
>
> Hi,
> try add:
> fifo_mode=0666
>
> to your ser.cfg
>
> Karel
>
> Marc Khayat napsal(a):
>
>>/tmp/ser_fifo exists, and is pipe type
>>User running Apache is "apache". Owner of ser_fifo is User: "root",
>>Group: "root".
>>I joined user "apache" to group "root", same.
>>
>>I created group "ser" and joined "root" "apache" to that group, and
>>added fifo_group=ser to the ser.cfg, but still same problem:
>>
>>Warning: filetype(): Lstat failed for (null) (errno=13 - Permission
>>denied) in /var/www/html/serweb/html/functions.php on line 306
>>
>>Warning: Cannot modify header information - headers already sent by
>>(output started at /var/www/html/serweb/html/functions.php:306) in
>>/var/www/html/serweb/html/page.php on line 35
>>
>>
>>Thanks,
>>
>>Marc
>>
>>-----Original Message-----
>>From: Karel Kozlik [mailto:karel@iptel.org]
>>Sent: Thursday, August 18, 2005 1:38 PM
>>To: Marc Khayat
>>Cc: serusers(a)lists.iptel.org
>>Subject: Re: [Serusers] Serweb
>>
>>Hello,
>>please check if file /tmp/ser_fifo exists and if it's type is pipe.
>
> Also
>
>>check rights - if user under which apache is running have access to
>
> read
>
>>and write to this file.
>>
>>Karel
>>
>>Marc Khayat napsal(a):
>>
>>
>>>The domain thing is working, but problem 2 is still bugging me.
>>>Help anyone?
>>>
>>>Marc
>>>
>>>-----Original Message-----
>>>From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]
>>
>>On
>>
>>
>>>Behalf Of Marc Khayat
>>>Sent: Thursday, August 18, 2005 11:15 AM
>>>To: serusers(a)lists.iptel.org
>>>Subject: RE: [Serusers] Serweb
>>>
>>>Never mind guys... it's working!
>>>
>>>Marc
>>>-----Original Message-----
>>>From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]
>>
>>On
>>
>>
>>>Behalf Of Marc Khayat
>>>Sent: Thursday, August 18, 2005 10:53 AM
>>>To: serusers(a)lists.iptel.org
>>>Subject: [Serusers] Serweb
>>>
>>>Hi all,
>>>I'm using SER-0.9.3 and its serweb version.
>>>I have 2 problems with it:
>>>1- On the login page, when I enter the username, it automatically
>>>completes it with the FQDN, while I need only the domain name; i.e. I
>>>login to http://ser.xyz.com, I enter the username aloha, it's
>>
>>completed
>>
>>
>>>as aloha(a)ser.xyz.com while I need it as aloha(a)xyz.com. Currently, I'm
>>>writing in manually
>>>
>>>2- When I login, I'm getting an error on the first page only as "FIFO
>>>not running or bad path to it". The path to it (in config_paths.php
>>
>>file
>>
>>
>>>is /tmp/ser_fifo, which is correct), and when I enter the command
>>
>>serctl
>>
>>
>>>monitor, the counter isn't constant, and same path.
>>>
>>>Can anyone help me plz,
>>>
>>>Thanks,
>>>
>>>Marc
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers(a)lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers(a)lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers(a)lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>
>>
>>
>
>
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Hi Karel,
Thx for bearing with me :)
In config_paths.php, I changed it from "/tmp/ser_fifo" to
"tmp/ser_fifo/"
The errors at the top disappeared but I'm still getting the "FIFO not
running or bad path to it" message.
Is it wrong to put "tmp/ser_fifo/"? knowing that in ser.cfg, it's
/tmp/ser_fifo
Thanks again,
Marc
-----Original Message-----
From: Karel Kozlik [mailto:karel@iptel.org]
Sent: Friday, August 19, 2005 9:28 AM
To: Marc Khayat
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Serweb
sorry Marc, haven't idea what may be wrong. Please check again setting
of fifo in serweb. Check variable $config->fifo_server in
config_paths.php. It's value must be '/tmp/ser_fifo'.
Try enable logging in serweb ($config->enable_loging = true in
config.php), set log level to debug ($config->log_level =
"PEAR_LOG_DEBUG") and examine the log file if there are some messages
refered fifo.
Also try search for string 'fifo_server' throught log files (or whole
serweb) and check if it's value isn't changed somewhere. You should find
this string only in file config_paths.php (one times) and in file
functions.php (four times).
Karel
Marc Khayat napsal(a):
> Hi Karel,
> I already tried this one by manually changing the permissions on
> ser_fifo to 666; I just tried adding fifo_mode=0666 to ser.cfg, but
> still the same problem.
>
> Marc
> -----Original Message-----
> From: Karel Kozlik [mailto:karel@iptel.org]
> Sent: Friday, August 19, 2005 8:21 AM
> To: Marc Khayat
> Cc: serusers(a)lists.iptel.org
> Subject: Re: [Serusers] Serweb
>
> Hi,
> try add:
> fifo_mode=0666
>
> to your ser.cfg
>
> Karel
>
> Marc Khayat napsal(a):
>
>>/tmp/ser_fifo exists, and is pipe type
>>User running Apache is "apache". Owner of ser_fifo is User: "root",
>>Group: "root".
>>I joined user "apache" to group "root", same.
>>
>>I created group "ser" and joined "root" "apache" to that group, and
>>added fifo_group=ser to the ser.cfg, but still same problem:
>>
>>Warning: filetype(): Lstat failed for (null) (errno=13 - Permission
>>denied) in /var/www/html/serweb/html/functions.php on line 306
>>
>>Warning: Cannot modify header information - headers already sent by
>>(output started at /var/www/html/serweb/html/functions.php:306) in
>>/var/www/html/serweb/html/page.php on line 35
>>
>>
>>Thanks,
>>
>>Marc
>>
>>-----Original Message-----
>>From: Karel Kozlik [mailto:karel@iptel.org]
>>Sent: Thursday, August 18, 2005 1:38 PM
>>To: Marc Khayat
>>Cc: serusers(a)lists.iptel.org
>>Subject: Re: [Serusers] Serweb
>>
>>Hello,
>>please check if file /tmp/ser_fifo exists and if it's type is pipe.
>
> Also
>
>>check rights - if user under which apache is running have access to
>
> read
>
>>and write to this file.
>>
>>Karel
>>
>>Marc Khayat napsal(a):
>>
>>
>>>The domain thing is working, but problem 2 is still bugging me.
>>>Help anyone?
>>>
>>>Marc
>>>
>>>-----Original Message-----
>>>From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]
>>
>>On
>>
>>
>>>Behalf Of Marc Khayat
>>>Sent: Thursday, August 18, 2005 11:15 AM
>>>To: serusers(a)lists.iptel.org
>>>Subject: RE: [Serusers] Serweb
>>>
>>>Never mind guys... it's working!
>>>
>>>Marc
>>>-----Original Message-----
>>>From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]
>>
>>On
>>
>>
>>>Behalf Of Marc Khayat
>>>Sent: Thursday, August 18, 2005 10:53 AM
>>>To: serusers(a)lists.iptel.org
>>>Subject: [Serusers] Serweb
>>>
>>>Hi all,
>>>I'm using SER-0.9.3 and its serweb version.
>>>I have 2 problems with it:
>>>1- On the login page, when I enter the username, it automatically
>>>completes it with the FQDN, while I need only the domain name; i.e. I
>>>login to http://ser.xyz.com, I enter the username aloha, it's
>>
>>completed
>>
>>
>>>as aloha(a)ser.xyz.com while I need it as aloha(a)xyz.com. Currently, I'm
>>>writing in manually
>>>
>>>2- When I login, I'm getting an error on the first page only as "FIFO
>>>not running or bad path to it". The path to it (in config_paths.php
>>
>>file
>>
>>
>>>is /tmp/ser_fifo, which is correct), and when I enter the command
>>
>>serctl
>>
>>
>>>monitor, the counter isn't constant, and same path.
>>>
>>>Can anyone help me plz,
>>>
>>>Thanks,
>>>
>>>Marc
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers(a)lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers(a)lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers(a)lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>
>>
>>
>
>
Hello,
Sorry I post the same mail I 've posted a few days ago
!
Anybody could explain me how nathelper module/rtpproxy
will support music on hold ?
Regards
Harry
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
Hi all,
we use DNSSRV balancing and forward_tcp() to replicate registrations
from one SER to the other SERs in the system.
Now when one machine completely crashes, all other SER processes on all
other machines hang when processing a REGISTER until tcp-connect times
out, leading to a system load of ~16 per machine assuming 16 child
processes per SER, and no other messages can be processed.
I understand that replicating using UDP would solve this issue, but then
replicated registrations get lost every now and then because of
unreliable transmission, and as far as I found out t_replicate() can
only be used for replicating to *one* other SER.
This really gets me thinking about patching out the internal location
cache and lookup every location from memory, because this additional
lookup really doesn't hurt because of ~10 other DB queries per call.
IMHO in systems with more than two SERs this cache is just a big pain.
Andy
Hi Karel,
I already tried this one by manually changing the permissions on
ser_fifo to 666; I just tried adding fifo_mode=0666 to ser.cfg, but
still the same problem.
Marc
-----Original Message-----
From: Karel Kozlik [mailto:karel@iptel.org]
Sent: Friday, August 19, 2005 8:21 AM
To: Marc Khayat
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Serweb
Hi,
try add:
fifo_mode=0666
to your ser.cfg
Karel
Marc Khayat napsal(a):
> /tmp/ser_fifo exists, and is pipe type
> User running Apache is "apache". Owner of ser_fifo is User: "root",
> Group: "root".
> I joined user "apache" to group "root", same.
>
> I created group "ser" and joined "root" "apache" to that group, and
> added fifo_group=ser to the ser.cfg, but still same problem:
>
> Warning: filetype(): Lstat failed for (null) (errno=13 - Permission
> denied) in /var/www/html/serweb/html/functions.php on line 306
>
> Warning: Cannot modify header information - headers already sent by
> (output started at /var/www/html/serweb/html/functions.php:306) in
> /var/www/html/serweb/html/page.php on line 35
>
>
> Thanks,
>
> Marc
>
> -----Original Message-----
> From: Karel Kozlik [mailto:karel@iptel.org]
> Sent: Thursday, August 18, 2005 1:38 PM
> To: Marc Khayat
> Cc: serusers(a)lists.iptel.org
> Subject: Re: [Serusers] Serweb
>
> Hello,
> please check if file /tmp/ser_fifo exists and if it's type is pipe.
Also
>
> check rights - if user under which apache is running have access to
read
>
> and write to this file.
>
> Karel
>
> Marc Khayat napsal(a):
>
>>The domain thing is working, but problem 2 is still bugging me.
>>Help anyone?
>>
>>Marc
>>
>>-----Original Message-----
>>From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]
>
> On
>
>>Behalf Of Marc Khayat
>>Sent: Thursday, August 18, 2005 11:15 AM
>>To: serusers(a)lists.iptel.org
>>Subject: RE: [Serusers] Serweb
>>
>>Never mind guys... it's working!
>>
>>Marc
>>-----Original Message-----
>>From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]
>
> On
>
>>Behalf Of Marc Khayat
>>Sent: Thursday, August 18, 2005 10:53 AM
>>To: serusers(a)lists.iptel.org
>>Subject: [Serusers] Serweb
>>
>>Hi all,
>>I'm using SER-0.9.3 and its serweb version.
>>I have 2 problems with it:
>>1- On the login page, when I enter the username, it automatically
>>completes it with the FQDN, while I need only the domain name; i.e. I
>>login to http://ser.xyz.com, I enter the username aloha, it's
>
> completed
>
>>as aloha(a)ser.xyz.com while I need it as aloha(a)xyz.com. Currently, I'm
>>writing in manually
>>
>>2- When I login, I'm getting an error on the first page only as "FIFO
>>not running or bad path to it". The path to it (in config_paths.php
>
> file
>
>>is /tmp/ser_fifo, which is correct), and when I enter the command
>
> serctl
>
>>monitor, the counter isn't constant, and same path.
>>
>>Can anyone help me plz,
>>
>>Thanks,
>>
>>Marc
>>
>>_______________________________________________
>>Serusers mailing list
>>serusers(a)lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
>>
>>
>>_______________________________________________
>>Serusers mailing list
>>serusers(a)lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
>>
>>
>>_______________________________________________
>>Serusers mailing list
>>serusers(a)lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
>
>
>