< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] Encountered the exception when using the IPv6.


"V6:fe80::250:56FF:fec0:1" is not a well-formed IPV6 address. You probably want to format your address as
"sip:101@[fe80::250:56FF:fec0:1]"; square brackets are the standard way of keeping the address separated from any port that follows.

Best regards,
Byron Campen



Hi all, I have tried using the IPv6 with my Application which built base on resip 1.7.

I running the repro on a PC, the repro IPv6 address is: V6:fe80::250:56FF:fec0:1
This is my code:

Data userUri = "sip:101@V6:fe80::250:56FF:fec0:1";
NameAddr from(userUri);

The resip throw exception in below function:

void
ParseBuffer::fail(const char* file, unsigned int line, const Data& detail) const
{
    Data errmsg;
    DataStream ds(errmsg);
    ds << file << ":" << line
       << ", Parse failed ";

    if (detail != Data::Empty) ds << detail << ' ' ;

    ds << "in context: " << mErrorContext
       << std::endl
       << escapeAndAnnotate(mBuff, mEnd - mBuff, mPosition);
    ds.flush();

   throw ParseException(errmsg, mErrorContext, file, line);
}

--
havesoftware, Inc.


Jakson Kalsson
Senior Programmer





_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/