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 <[EMAIL PROTECTED]>  
> 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:[EMAIL PROTECTED]
>>
>>
>>
>>
>> _______________________________________________
>> Freeswitch-users mailing list
>> [email protected]
>> 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
> [email protected]
> 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
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to