linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] linphone_core_set_nat_address() proposed chang


From: strk
Subject: Re: [Linphone-developers] linphone_core_set_nat_address() proposed change
Date: Thu, 26 Jan 2006 23:08:00 +0100

Already committed. It's the same single function, 
a NULL value for the 'address' parameter signifies
only the 'use' value is changed. 

If a value is not already set for the 'address', the
'use' flag is is set to false (and firewallip to "")
whatever value is requested.

--strk;

On Fri, Jan 27, 2006 at 12:04:17AM +0100, Simon Morlat wrote:
> I agree this function does a bad job.
> Did you split in 2 functions (one to set the parameters, another to 
> enable/disable ) ?
> You can commit !
> Thanks
> Simon
> 
> Le Jeudi 26 Janvier 2006 02:09, strk a écrit :
> > I'm implementing a nat use/unuse toggler for
> > the command line interface for linphone.
> >
> > Since there's no specific function in the coreapi
> > for this I hoped to use linphone_core_set_nat_address(),
> > but that function has a limitations preventing this.
> >
> > Basically linphone_core_set_nat_address() will set
> > nat address to NULL if the 'nat_use' parameter
> > is set to false.
> >
> > Note that this bug also shows up with the graphical
> > interface, where disabling the nat destroys the
> > nat configuration (saved in configfile on exit).
> >
> > I've made a patch to both fix this and allow for
> > the 'nat_address' argument to be NULL to signify
> > only 'nat_use' as to be set.
> >
> > Let me know if that's ok with you before I commit.
> >
> > --strk;
> >
> >
> > _______________________________________________
> > Linphone-developers mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/linphone-developers

-- 

 +----------------------------------------+
 | Fight against software patents in EU!  |
 | www.ffii.org www.nosoftwarepatents.org |
 +----------------------------------------+





reply via email to

[Prev in Thread] Current Thread [Next in Thread]