Summary:ASTERISK-02890: [patch] Call forwarding to self with chan_sip causes loop.
Reporter:Joshua C. Colp (jcolp)Labels:
Date Opened:2004-11-25 22:14:08.000-0600Date Closed:2008-01-15 15:15:11.000-0600
Versions:Frequency of
Environment:Attachments:( 0) chan_sip.diff.txt
Description:Well folks, we all know that regular people sometimes... make mistakes. Such as - call forwarding to themselves. The patch below changes chan_sip in such a way that if a call is set to forward (302 Moved Temporarily) to it's own extension, asterisk will detect the possible loop and abort. This then causes it to continue in the dialplan.
Comments:By: Olle Johansson (oej) 2004-11-27 22:33:57.000-0600

Is this patch disclaimed?

By: Joshua C. Colp (jcolp) 2004-11-27 22:38:40.000-0600

It most certainly is, sorry for not indicating it... I was a little loopy that night. Disclaimer on file with Digium and whoever else wants to use it may use it.

By: Mark Spencer (markster) 2004-11-28 17:10:54.000-0600

Implemented a "max forwards" counter.  Should take care of it, but thanks for the contribution!

By: Russell Bryant (russell) 2004-11-29 18:07:42.000-0600

not in 1.0 for now until the probably is solved.

Mark has indicated to me that it is a pretty complicated one ...

By: Digium Subversion (svnbot) 2008-01-15 15:15:11.000-0600

Repository: asterisk
Revision: 4351

U   trunk/apps/app_dial.c

r4351 | markster | 2008-01-15 15:15:11 -0600 (Tue, 15 Jan 2008) | 2 lines

Implement max # of forwards (bug ASTERISK-2890, different strategy)