[Serdev] Script processing of multiple branches on forking

Jiri Kuthan jiri at iptel.org
Thu Aug 19 13:49:58 UTC 2004


At 12:28 AM 8/19/2004, Richard wrote:

>--- Jiri Kuthan <jiri at iptel.org> wrote:
>
>> >Can I just use nr_branches defined in dset.c? If it
>> is
>> >more than 1, then definitely more than one
>> location.
>> >Retrieve this right before t_relay.
>> 
>> I guess that would be a possibility. Generally,
>> Ithink that
>> the condition "if any of the registered contacts is
>> natted",
>> that should solve your problem.
>I checked the register module code. If any contact is
>natted, the flag is set. However I still have to
>another issue to worry about. I have a patch to test
>if the source ip is the same as r-rui's ip. If yes and
>both behind nat, they are behind the same nat, then no
>need to use rtpproxy. I guess I have to change the
>code to make sure if more than one branch, then return
>false.

Indeed, that would be appropriate beahviour in this context.

-jiri 




More information about the Serdev mailing list