I've configured call forwarding in my SER script but to catch a situation where a user forwards to another user that is forwarding back to the first user i've added a second "if ( !mf_process_maxfwd_header("10") )" stanza to the SER script.
However, i'm finding that it will actually add additional "Max-Forwards" headers to the SIP message as opposed to decrimenting one that is already there: -- Max-Forwards: 9. Record-Route: *REMOVED* Max-Forwards: 10. Max-Forwards: 10. --
I am under the impression that when called the mf_process_maxfwd_header() function should search the message for the "Max-Forwards" header and only add additional headers if it is missing.
tavis