< Previous by Date | Date Index | Next by Date > |
Thread Index | Next in Thread > |
I was using a resiprocate version from a sample GIPS
softphone demo. I just got the newest version of resiprocate via
svn and am trying to compile it. I’m getting the following errors. How do I fix this? DnsInterface.cxx DnsResult.cxx .\DnsResult.cxx(956) : error
C2039: 'v6Address' : is not a member of 'resip::DnsAAAARecord'
c:\cygwin\home\mjobe\svn\resiprocate\rutil/dns/DnsAAAARecord.hxx(19) : see
declaration of 'resip::DnsAAAARecord' DtlsMessage.cxx Generating Code... Compiling... and TransportFailure.cxx TransportSelector.cxx .\TransportSelector.cxx(77) :
error C2039: 'v6Address' : is not a member of 'resip::GenericIPAddress'
c:\cygwin\home\mjobe\svn\resiprocate\rutil/GenericIPAddress.hxx(23) : see
declaration of 'resip::GenericIPAddress' .\TransportSelector.cxx(78) :
error C2039: 'v6Address' : is not a member of 'resip::GenericIPAddress'
c:\cygwin\home\mjobe\svn\resiprocate\rutil/GenericIPAddress.hxx(23) : see
declaration of 'resip::GenericIPAddress' .\TransportSelector.cxx(78) :
error C2228: left of '.sin6_family' must have class/struct/union TuIM.cxx Tuple.cxx .\Tuple.cxx(85) : error
C2065: 'm_anonv6' : undeclared identifier .\Tuple.cxx(85) : error
C2065: 'm_anonv6' : undeclared identifier .\Tuple.cxx(85) : error
C2070: ''unknown-type'': illegal sizeof operand .\Tuple.cxx(86) : error
C2065: 'm_anonv6' : undeclared identifier .\Tuple.cxx(86) : error
C2228: left of '.sin6_family' must have class/struct/union
type is ''unknown-type'' .\Tuple.cxx(87) : error
C2065: 'm_anonv6' : undeclared identifier .\Tuple.cxx(87) : error
C2228: left of '.sin6_port' must have class/struct/union
type is ''unknown-type'' .\Tuple.cxx(90) : error
C2065: 'm_anonv6' : undeclared identifier .\Tuple.cxx(90) : error
C2228: left of '.sin6_addr' must have class/struct/union
type is ''unknown-type'' .\Tuple.cxx(94) : error
C2065: 'm_anonv6' : undeclared identifier .\Tuple.cxx(94) : error
C2228: left of '.sin6_addr' must have class/struct/union
type is ''unknown-type'' .\Tuple.cxx(123) : error
C2065: 'm_anonv6' : undeclared identifier .\Tuple.cxx(123) : error
C2065: 'm_anonv6' : undeclared identifier .\Tuple.cxx(123) : error
C2070: ''unknown-type'': illegal sizeof operand .\Tuple.cxx(124) : error
C2065: 'm_anonv6' : undeclared identifier .\Tuple.cxx(124) : error
C2228: left of '.sin6_addr' must have class/struct/union
type is ''unknown-type'' .\Tuple.cxx(125) : error
C2065: 'm_anonv6' : undeclared identifier .\Tuple.cxx(125) : error
C2228: left of '.sin6_family' must have class/struct/union
type is ''unknown-type'' .\Tuple.cxx(126) : error
C2065: 'm_anonv6' : undeclared identifier .\Tuple.cxx(126) : error
C2228: left of '.sin6_port' must have class/struct/union
type is ''unknown-type'' .\Tuple.cxx(154) : error
C2511: 'resip::Tuple::Tuple(const in6_addr &,int,resip::TransportType,const
resip::Data &)' : overloaded member function not found in 'resip::Tuple'
c:\cygwin\home\mjobe\svn\resiprocate\resip/stack/Tuple.hxx(43) : see
declaration of 'resip::Tuple' .\Tuple.cxx(965) : fatal
error C1004: unexpected end-of-file found TupleMarkManager.cxx TuSelector.cxx UdpTransport.cxx From: Byron Campen
[mailto:bcampen@xxxxxxxxxxxx]
What version of resip are you using? DialogUsageManager
doesn't have a function called run(), and hasn't had one for at least a couple
of years.
In any case, make sure you're using 1.4, and use a
DumThread, like so, after you are done setting up your DUM instance: std::auto_ptr<resip::DumThread> _uacDumThread(new
resip::DumThread(*_uacDum)); _uacDumThread->run(); Best regards, Byron Campen
My Initialization
code. Take a look at it
and let me know what you think. I am calling
run() on the DialogUsageManager. bool Init() { try
{
std::auto_ptr<resip::SipStack> stackUac (new resip::SipStack(false)); // true = multithreaded, shoud we realy have one stack per
conference
resip::Data ip = stackUac->getHostAddress(); bool local = stackUac->addTransport(resip::UDP, _localSipPort,
resip::V4 ,"10.2.2.182");
_uacDum = new resip::DialogUsageManager(stackUac);
std::auto_ptr<resip::ClientAuthManager> uacAuth(new resip::ClientAuthManager(_uacProfile));
_uacDum->setClientAuthManager(uacAuth);
_uacProfile.addSupportedOptionTag(resip::Token(resip::Symbols::Timer));
_uacProfile.addSupportedMimeType(resip::Mime("text", "plain"));
_uacProfile.addSupportedMethod(resip::REGISTER);
_uacProfile.addSupportedMethod(resip::MESSAGE);
_uacProfile.addSupportedMethod(resip::NOTIFY);
_uacProfile.addSupportedMethod(resip::SUBSCRIBE);
_uacProfile.addSupportedMethod(resip::INVITE);
_uacProfile.setDefaultSubscriptionTime(600); // 10 min
_uacProfile.setDefaultSessionTime(600); // initialize the DialogUsageManager
_uacDum->setProfile(&_uacProfile);
_uacInv = new GipsInviteSessionHandler();
_uacDum->setInviteSessionHandler(_uacInv);
_uacReg = new GipsRegistrationHandler();
_uacDum->setClientRegistrationHandler(_uacReg);
_uacOod =new GipsOutOfDialogHandler();
_uacDum->addOutOfDialogHandler(resip::OPTIONS, _uacOod);
_uacPager = new GipsPagerMessageHandler();
_uacDum->setClientPagerMessageHandler(_uacPager);
_uacDum->setServerPagerMessageHandler(_uacPager);
_uacSub = new GipsSubscriptionHandler();
_uacDum->addClientSubscriptionHandler(resip::Data("presence"), _uacSub);
_uacDum->addServerSubscriptionHandler(resip::Data("presence"), _uacSub);
_uacDum->getProfile()->setDefaultFrom(_uacAor);
_uacDum->getProfile()->setDefaultRegistrationTime(60*60); // 1 h
_uacDum->run(); // start thread
} catch(...)
{ return false;
} return true; } From: Byron Campen [mailto:bcampen@xxxxxxxxxxxx] Doesn't look like DUM is getting any
cycles. Have you set up a DumThread? Best regards, Byron Campen
I have created handlers that do printfs
when a call comes in…I see the following debug, but none of my handlers
are called. What is called when an incoming INVITE
occurs? DEBUG | 20081107-165636.939 | |
RESIP:TRANSPORT | 3536 | transport.cxx:380 | incoming from: [ V4
10.128.0.58:5060 UDP received on: Transport: [ V4 10.2.2.182:5060 UDP
connectionId=0 ] on 10.2.2.182 connectionId=0 ] DEBUG | 20081107-165636.969 | |
RESIP | 3536 | helper.cxx:272 | Helper::makeResponse(SipReq: INVITE 101@xxxxxxxxxx:5060
tid=10301826 cseq=INVITE contact=MultiVoIP-FX@xxxxxxxxxxx:5060
/ 1 from(wire) code=100 reason= DEBUG | 20081107-165636.990 | |
RESIP:TRANSACTION | 3536 | timerqueue.cxx:89 | Adding timer: Timer Trying
tid=10301826 ms=80 DEBUG | 20081107-165638.532 | | RESIP:TRANSPORT
| 3536 | transport.cxx:380 | incoming from: [ V4 10.128.0.58:5060 UDP received
on: Transport: [ V4 10.2.2.182:5060 UDP connectionId=0 ] on 10.2.2.182
connectionId=0 ] DEBUG | 20081107-165638.532 | |
RESIP:TRANSPORT | 3536 | transportselector.cxx:769 | Transmitting to [ V4
10.128.0.58:5060 UDP received on: Transport: [ V4 10.2.2.182:5060 UDP
connectionId=0 ] on 10.2.2.182 connectionId=0 ] via [ V4 10.2.2.182:5060 UDP
connectionId=0 ]SIP/2.0 100 Trying To: <sip:101@xxxxxxxxxx:5060> From: "MultiVoIP-FX" <sip:MultiVoIP-FX@xxxxxxxxxxx:5060>;tag=-1713351079 Via: SIP/2.0/UDP
10.128.0.58:5060;branch=z9hG4bK10301826 Call-ID: 1022475307251@xxxxxxxxxxx CSeq: 1 INVITE Content-Length: 0 DEBUG | 20081107-165638.542 | |
RESIP:TRANSPORT | 3536 | transport.cxx:329 | Adding message to tx buffer to: [
V4 10.128.0.58:5060 UDP received on: Transport: [ V4 10.2.2.182:5060 UDP connectionId=0
] on 10.2.2.182 connectionId=0 ] DEBUG | 20081107-165711.823 | |
RESIP:TRANSPORT | 3536 | transport.cxx:380 | incoming from: [ V4
10.128.0.58:5060 UDP received on: Transport: [ V4 10.2.2.182:5060 UDP
connectionId=0 ] on 10.2.2.182 connectionId=0 ] DEBUG | 20081107-165723.621 | |
RESIP:TRANSPORT | 3536 | transport.cxx:380 | incoming from: [ V4
10.128.0.58:5060 UDP received on: Transport: [ V4 10.2.2.182:5060 UDP
connectionId=0 ] on 10.2.2.182 connectionId=0 ] DEBUG | 20081107-165723.641 | |
RESIP:TRANSPORT | 3536 | transport.cxx:380 | incoming from: [ V4
10.128.0.58:5060 UDP received on: Transport: [ V4 10.2.2.182:5060 UDP
connectionId=0 ] on 10.2.2.182 connectionId=0 ] DEBUG | 20081107-165723.651 | |
RESIP:TRANSPORT | 3536 | transport.cxx:380 | incoming from: [ V4
10.128.0.58:5060 UDP received on: Transport: [ V4 10.2.2.182:5060 UDP
connectionId=0 ] on 10.2.2.182 connectionId=0 ] DEBUG | 20081107-165723.661 | |
RESIP:TRANSPORT | 3536 | transport.cxx:380 | incoming from: [ V4 10.128.0.58:5060
UDP received on: Transport: [ V4 10.2.2.182:5060 UDP connectionId=0 ] on
10.2.2.182 connectionId=0 ] DEBUG | 20081107-165723.681 | |
RESIP:TRANSPORT | 3536 | transport.cxx:380 | incoming from: [ V4
10.128.0.58:5060 UDP received on: Transport: [ V4 10.2.2.182:5060 UDP
connectionId=0 ] on 10.2.2.182 connectionId=0 ] DEBUG | 20081107-165723.691 | |
RESIP:TRANSPORT | 3536 | transport.cxx:380 | incoming from: [ V4
10.128.0.58:5060 UDP received on: Transport: [ V4 10.2.2.182:5060 UDP
connectionId=0 ] on 10.2.2.182 connectionId=0 ] ... Marshall Jobe EFJohnson _______________________________________________ |