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
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
Hi Klaus , Thanks for replying ,
if(method=="INVITE" && uri=~"sip:B@xx.xxx.xx ") { setuser("C"); append_branch() t_relay(); };
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 klaus.mailinglists@pernau.at 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
raviprakash sunkara wrote:
Hi Klaus , Thanks for replying ,
if(method=="INVITE" && uri=~"sip:B@xx.xxx.xx ") { setuser("C"); append_branch() t_relay(); };
# if someone calls B, the call should be forwarded to C too. # if(method=="INVITE" && uri=~"sip:B@xx.xxx.xx ") { # 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:C@domain");
# now: branch 0 = C@domain # branch 1 = B@xx.xx.xx.xx
# 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:D@domain");
# now: branch 0 = D@domain # branch 1 = B@xx.xx.xx.xx # branch 2 = C@domain
t_relay(); exit; };
You could also use append_branch("sip:C@domain") which adds a branch with the new URI:
if(method=="INVITE" && uri=~"sip:B@xx.xxx.xx ") { # append a new branch with the second destionation append_branch("sip:user@domain"); # now: branch 0 = B@xx.xx.xx.xx # now: branch 1 = C@domain
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 klaus.mailinglists@pernau.at 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