[Freeswitch-users] max_forwards

Michael Jerris mike at jerris.com
Tue Aug 19 07:28:27 PDT 2008


All of this is already done for you in the switch, both the  
decrementing of max forwards and the rejection as well.  You can check  
out code in switch_core_session_outgoing_channel and  
switch_ivr_session_transfer for more details.

Mike

On Aug 19, 2008, at 9:38 AM, Jonas Gauffin wrote:

> Hi Brian,
>
> Mkay. I searched the code and I didn't find any decreases.
> When do you decrease it? I try to not use redirect/deflect, but bridge
> instead to get billing correctly.
> I decrease max_forwards myself on each "forward" made by my system (by
> using "set" action on that variable).
>
> Is it possible to get FreeSWITCH to reject calls when max_forward
> becomes 0 (if changed in the dialplan)?
>
> Which status code should be used when rejecting calls due to
> max_forward limit? I currently use SwitchCongestion, but I guess that
> that is not correct ;)
>
> Thanks,
>  Jonas
>
> On Tue, Aug 19, 2008 at 3:13 PM, Brian West <brian at freeswitch.org>  
> wrote:
>> As in?  We do decrement the max_forwards as  call progresses thru FS.
>>
>> On Aug 19, 2008, at 3:03 AM, Jonas Gauffin wrote:
>>
>>> Are max_forwards being used?
>>
>> Brian West
>> sip:brian at freeswitch.org
>>
>>
>>
>>
>> _______________________________________________
>> Freeswitch-users mailing list
>> Freeswitch-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org





More information about the FreeSWITCH-users mailing list