[SR-Users] Handling 302 redirect on group ringing

Mark Boyce mark at darkorigins.com
Fri Feb 8 11:16:26 CET 2013


Hi All

Got a problem handling redirects when more than one phone is ringing.  The setup is this;

Phone1 - Extension 100
Phone 2 - Extension 101
Phone 3 - Extension 102 & 101

When Phone 1 rings Extension 101 Phones 2 & 3 ring correctly as you would expect.

If Phone 2 now sets the on phone forward/redirect we see the following;

Phone 1 - Invite sent to 101
Phone 2 & 3 Receive Invites
Phone 2 responds with a 302 Redirect
Phone 3 Rings.

Which again is as you would expect.


The problem is that the 302 Message we're getting back is being seen in onreply_route where I cannot add a new branch to handle it. (Error - misused command append_branch / Command cannot be used in the block)

If Phone 3 is unavailable / times out / busy / or otherwise does not take the call we then see the 302 from Phone 2 arrive in failure_route where it is handled as expected.


The call flow we're trying to achieve is that the redirect is followed whilst the other available phone carries on ringing.

I've tried with failure_reply_mode as the default 0 and as 3, both do the same thing. 

Currently working with kamailio version 3.4.0-dev6


Can anyone spot what I'm doing wrong ?

Thanks

Mark


More information about the sr-users mailing list