[SR-Users] Handling 302 redirect on group ringing
Daniel-Constantin Mierla
miconda at gmail.com
Tue Feb 12 10:27:19 CET 2013
Hello,
the way tm module is constructed does not allow to add a new branch from
config before all branches of the previous forwarding step are not
completed. I do not know what would RFC say in this case, because you
have a parallel forking from which proxy has to choose a wining reply.
With some coding in C, that should be made possible, though.
Cheers,
Daniel
On 2/8/13 11:16 AM, Mark Boyce wrote:
> 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
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
- http://conference.kamailio.com -
More information about the sr-users
mailing list