On 09/12/05 22:41, Frank Fischer wrote:
Hi Daniel
Thanks for your answer. But i don't undestand why i would need the avp module to do that - couldn't i just set something like
if (!mf_process_maxfwd_header("1")) { ... };
As far as i understood, the mf_process_maxfwd_header() method compairs the given value (i.e. 1) to theactual value in the request?
No, please see the readme file of the module. It adds a maxfwd header with the value given as parameter, if there is no maxfwd header. If the header already exists, it compares the value decremented with one against 0.
So my question is, in my setup with only one SER Proxy with some UAs and a PSTN Gateway and no forwaring or receiving from other SIP Proxies, would it make sense to set there parameter for max_hops to 1 or am I missing something and this might cause probles?
Be sure you do not do local loops. Otherwise, besides doing extra processing (remove+add header) to change the value of maxfwd to 1, there should not be any harm.
Daniel
Greetings Frank
-----Ursprüngliche Nachricht----- Von: Daniel-Constantin Mierla [mailto:daniel@voice-system.ro] Gesendet: Montag, 12. September 2005 18:14 An: Frank Fischer Cc: serusers@lists.iptel.org Betreff: Re: [Serusers] Setting maxfwd to 1 in single SER env?
Hello,
depending on what version of proxy do you have, you can use avpops (write the value of the maxfwd header in an avp and then compare). See: http://www.voice-system.ro/docs/avpops/
Daniel
On 09/12/05 15:38, Frank Fischer wrote:
Hi
I have a single SER wiht some clients and a PSTN gateway. Forwarding calls over the internet to other SIP proxies is not
possible/allowed.
Now i wonder, if i could compare the
mf_process_maxfwd_header() with 1
since - if i understand that concept right - there will
always only be
one hop needed (eihter client to client or client to pstn gateway).
Do i get this right or am i missing anything important?
Greetings Frank
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers