Hello,
The latest development version of SER has support for branch_route
sections and tm module contains new function called t_on_branch.
The branch_route section is a section that can be defined in the
configuration file, just like failure_route or onreply_route sections:
branch_route[1]
{
if (uri == "sip:a@iptel.org") {
append_hf("P-RURI: sip:a@iptel.org\r\n");
};
}
branch_route sections can be activated using t_on_branch, for example:
t_on_branch("1");
t_relay();
break;
branch_route sections are executed for each downstream branch. In other
words, if SER forks a message to 3 destinations then the branch_route
section will be executed 3 times:
a
+-*----->
| b
----> SER ---+-*----->
| c
+-*----->
* - branch_route will be executed here.
It is not possible to stop the processing or generate a reply in
branch_route sections at the moment, you can only do last-minute
modifications to the SIP message and it will be forwarded automatically
once branch_route section finishes.
branch_route sections can be used to perform actions that are branch
specific, for examply you can add a header field to a message only in a
particular branch and leave other branches unmodified, based on the
Request-URI.
In the future we could implement better NAT traversal (where RTP proxy
will only be applied to branches where it is really needed), proper PSTN
gateway checks, and so on.
Attached is a short example file that demonstrates the use of
t_on_branch and branch_route sections.
Jan.
Hi All
When I try to run the following script I get an "invalid privilege" response
even though I'm logged in as root.
PW=<database password> SIP_DOMAIN=<domain> serctl acl grant 1056 pstn
Can someone tell me how to fix this.
TIA
Rick Thompson,
Hi,
I installed ser-0.9.3, and registered 2 agents. However, I'm getting
error 513 "Message too big".
The only change I did to the config file is that I enabled
authentication on registration and accounting (MySQL and Syslog).
What am I doing wrong here? What can cause it?
Thx,
Marc
I try to use the UAC module and gets the following error in the log when
trying to authenticate (uac_auth).
Aug 18 15:10:00 ns2 ser[65870]: BUG:uac:uac_auth: empty reply on picked
branch
I have searched the serusers archive and found the following thread
regarding this issue
http://lists.iptel.org/pipermail/serusers/2005-May/019609.html
However since I am running SER 0.9.3, I'm sure the patch for tm module wont
work for me and I actually thought that issue was fixed in 0.9.3.
Anyone with an idea on how to fix this error?
Kind regards
Roger
I need to run serctl as a non-root user. When I try to add a new account, an error msg came out
like:
error: SER/FIFO not accessible: 2
How can I rectify this?
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
Hi William,
Thanks for your help.
In my failover route I have the following code:
failure_route[2] {
if (t_check_status("408|500|503"))
{
log (1, "next gateway...\n");
if (!next_gw())
{
t_reply("503", "Service not available, no more gateways");
break;
}
log (1, "gateway changed...\n");
t_on_failure("2");
t_relay();
}
}
So the status is already filtered. I tried your code but without result...
Does anybody know how I can stop the failover timer?
Thanks!
Sebastian
----- Original Message -----
From: "Bayan William Towfiq" <william(a)telepacket.com>
To: "Sebastian Kühner" <skuehner(a)veraza.com>
Cc: <serusers(a)lists.iptel.org>
Sent: Thursday, August 18, 2005 1:28 AM
Subject: Re: [Serusers] cancal
> Hi Sebastian,
> If the message is a cancel you it will have status 487
>
> so you can just add
>
> if (t_check_status("487")) {
> break;
> };
>
> before the rest of the code in the failure route. You can mail me
> privately if you have any more questions about this issue.
>
> William
>
> Sebastian Kühner wrote:
>
> >Hello,
> >
> >I'm using ser to forward to PSTN Gatways.
> >
> >Before the t_relay I put the command:
> >
> >t_on_failure("2");
> >
> >So, after a timeout ser goes to:
> >
> >failure_route[2] {
> > log (1, "next gateway...\n");
> > if (t_check_status("408|500|503"))
> > {
> > if (!next_gw())
> > {
> > t_reply("503", "Service not available, no more gateways");
> > break;
> > }
> > log (1, "gateway changed...\n");
> > }
> > t_on_failure("2");
> > t_relay();
> >}
> >
> >This is working very good... if the user doesn't make a hangup.
> >
> >If caller hangs up, the CANCEL hits SER and the call is cleanly
terminated.
> >SER however continues to failure_route after timeout of the initial
> >INVITE... ser sends out a new INVITE message to another PSTN-Server...
and
> >the phone rings (with nobody in the line)
> >
> >Many thanks for your help!
> >
> >Sebastian
> >
> >
> >
> >_______________________________________________
> >Serusers mailing list
> >serusers(a)lists.iptel.org
> >http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
>
>
>
Hi
I am getting 2 INVITE per call, which is correct in my setup.
I have IP phone ---> ser---> asterisk----ser----ip phone for various setups
So when ip phone makes a call, to a internal extension, the call goes
out via ser (INVITE 1) into asterisk, which then maps this internal
extension to a external number and hence issues a DIAL sip/xxx statement
(INVITE 2). All well and good
Now should this not give two BYE's anyhow it gives one.
The other thing is what to do with the two INVITES, should I be taking
the INVITE from asterisk, or from SER, I think the former, BUT the BYE
seems to match the tag for asterisk INVITE
Iqbal
after installing the serweb in my server and completing the steps as mentioned
in the install file iam getting some error like
Not Found
The requested URL localhost/root/serweb/user/index.php was not found on this
server.
Apache/1.3.33 Server at localhost Port 80
so whatz the problem ?
is there any other Administrator package available for SER ( not SER Admin)
which is very easy to install and handle new entries etc ..
Hope i will get a reply soon ...
Thankyou
BR
S.Kumar
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