raviprakash sunkara wrote:
Hi Klaus ,
Thanks for replying ,
if(method=="INVITE" && uri=~"sip:[EMAIL PROTECTED] ")
{
setuser("C");
append_branch()
t_relay();
};
# if someone calls B, the call should be forwarded to C too.
#
if(method=="INVITE" && uri=~"sip:[EMAIL PROTECTED] ")
{
# copy the current branch (branches[0]) into
# a new branch (branches[1])
append_branch();
# all URI manipulation functions work on branches[0]
# thus, URI manipulation does not touch the
# appended branch (branches[1])
seturi("sip:[EMAIL PROTECTED]");
# now: branch 0 = [EMAIL PROTECTED]
# branch 1 = [EMAIL PROTECTED]
# and if you need a third destination ...
# copy the current branch (branches[0]) into
# a new branch (branches[2])
append_branch();
# all URI manipulation functions work on branches[0]
# thus, URI manipulation does not touch the
# appended branch (branches[1-2])
seturi("sip:[EMAIL PROTECTED]");
# now: branch 0 = [EMAIL PROTECTED]
# branch 1 = [EMAIL PROTECTED]
# branch 2 = [EMAIL PROTECTED]
t_relay();
exit;
};
You could also use append_branch("sip:[EMAIL PROTECTED]") which adds a branch
with the new URI:
if(method=="INVITE" && uri=~"sip:[EMAIL PROTECTED] ")
{
# append a new branch with the second destionation
append_branch("sip:[EMAIL PROTECTED]");
# now: branch 0 = [EMAIL PROTECTED]
# now: branch 1 = [EMAIL PROTECTED]
t_relay();
exit;
};
regards
klaus
The B's Information is override by C , But Call goes to C , only,
When A invites B, then B and C has ring parallel.
On 4/23/07, Klaus Darilion <[EMAIL PROTECTED]> wrote:
Take a look at append_branch(). (core documentation)
regards
klaus
raviprakash sunkara wrote:
> Hello Users,
>
> For My Sip Servicing, There is Call Hunting Features
>
> This had done , When I forwarded the Asterisk Server.
> But I want to implements in OpenSER itself,
>
> When A Calls to B, the proxy has to send to invites to B and C, So that
B
> and C rings simultaneously
>
_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users