partysip-dev
[Top][All Lists]
Advanced

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

Re: [Partysip-dev] IPv6


From: Anthony Liu
Subject: Re: [Partysip-dev] IPv6
Date: 11 Apr 2003 10:58:24 +0800

Hi,

The patch is attached. Note the following please:

1.All modified codes SHOULD HAVE BEEN enclosed with
  #ifdef IPV6..., but there is no guarantee :)

2.partysip.conf is the default configuration file.
  However, to, simplify my environment setup task,
  the name of default conf file changes to:
  partysip6.conf whenever '-DIPV6_SUPPORT' is
  issued.

3.Commented ppl_inet_pton is uncommented and now
  works without knowing the address family. All you
  need is to pass the correct address, it checks ':'
  and '.' to know whether it is a v4 or v6 addr.

4.Modification of NAT module is not finished since
  it is more complex than my expectation.

5.sip.mcast.net has NO WELL-KNOWN IPv6 address...so
  the behavior is unknown for codes in that block...

6.IPv4 functions are not tested after IPv6 modification
  is done. (I've tested IPv6 functions with two kphone
  clients)

That's what I can recall so far... If something comes
back to my mind, I'll let you know.

My next step is to add a new module whose function might
overlap with NAT partially... Can you give me a note on
the module programming in partysip?

Regards,
Anthony

在 週三, 2003-04-09 00:15, Aymeric Moizard 寫道:
> 
> osip should support IPv6 messages. I've only tested the parser
> but it should have no impact on the fsm side.
> 
> To test it, you can edit the file conf/torture_msgs and write
> IPv6 messages. Then you simply execute
> 
> ./test/torture_test conf/torture_msgs 0 -v -c
> 
> The above will test the first message in the file conf/torture_msgs.
> 
> Thanks for working on IPv6/partysip!
> Aymeric
> 
> On 8 Apr 2003, Anthony Liu wrote:
> 
> > Thanks for your guide. I'm working on it now. The copy of source
> > code was checked out this morning from cvs. Though I have not
> > finished my modification. I wonder can osip support IPv6 message
> > parsing? The primary difference I found when I modify kphone 3.0
> > is the SIP URI format. For example, a typical SIP URI looks like:
> >
> > address@hidden:5060
> >
> > It happens all the time that the hostport part will be denoted
> > in dot-quad form under IPv4:
> >
> > address@hidden:5060
> >
> > For IPv6 addresses, it somehow looks like this:
> >
> > address@hidden:b80:1c67:1:20c:6eff:fe00:c46]:5060
> >
> > or, according to the ABNF defined in RFC 3261:
> >
> > address@hidden:b80:1c67:1:20c:6eff:fe00:c46:192.168.1.1]:5060
> >
> > if both IPv4 and IPv6 addresses exist. Can osip handle these
> > URIs correctly?
> >
> > Regards,
> > Anthony Liu
> >
> > 在 週一, 2003-04-07 20:19, Aymeric Moizard 寫道:
> > >
> > > I've been preparing IPv6 for a while now.
> > > The file ppl/unix/ppldnsv6.c makes use of
> > > getaddrinfo to manage transparently ipv4/ipv6
> > > address.
> > >
> > > To use this file instead of the original one,
> > > you have to compile with -DHAVE_GETADDRINFO
> > >
> > > CFLAGS="-DHAVE_GETADDRINFO" ./configure
> > > make
> > > make install
> > >
> > > The above should already work for IPv4.
> > >
> > > If you want to really use an IPv6 network (which I've never tried...), use
> > > the additionnal flag "-DIPV6_SUPPORT":
> > >
> > > CFLAGS="-DHAVE_GETADDRINFO" ./configure
> > > make
> > > make install
> > >
> > > To make it work this way, I guess you have to change
> > > some code in other places... This include calls to
> > > methods like inet_addr() that appears evrywhere.
> > > Some method to replace them are already in partysip
> > > (like ppl_inet_ntop() that makes use of inet_ntop)
> > >
> > > I'll apreciate if you can make a patch for IPv6.
> > > My request is that you'll have to enclose all
> > > your change between:
> > >
> > > #ifdef IPV6_SUPPORT
> > > ...
> > > #else
> > > ...
> > > #endif
> > >
> > > so that it won't break anything until the patch
> > > will be complete.
> > >
> > > You'll mainly have to work on the udp plugin
> > > (in the plugin/udp directory) and in the file
> > > src/sfp.c which may be already ok.
> > >
> > >
> > > Thanks
> > > Aymeric
> > >
> > > On 7 Apr 2003, Anthony Liu wrote:
> > >
> > > > I need to (have to) modfiy partysip to support IPv6.
> > > > However, the document available is very limited at this time.
> > > > I've read source code for a while but haven't figure out a
> > > > better way to do it. Can you suggest, please?
> > > >
> > > > Regards,
> > > > Anthony Liu
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Partysip-dev mailing list
> > > > address@hidden
> > > > http://mail.nongnu.org/mailman/listinfo/partysip-dev
> > > >
> >
> >
> >
> >
> > _______________________________________________
> > Partysip-dev mailing list
> > address@hidden
> > http://mail.nongnu.org/mailman/listinfo/partysip-dev
> >

Attachment: partysip_0.5.7_ipv6_patch
Description: Text Data


reply via email to

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