[reSIProcate] Problem in receiving message
- From: Tuan Viet Nguyen <ntvietv@xxxxxxxxx>
- Date: Wed, 13 Jun 2007 09:07:25 -0700 (PDT)
Hello,
I have just written the code below to begin :
SipStack stack;
stack.addTransport(UDP, 8082);
if (stack.isMyPort(8082))
{
// show "Port 8082";
}else
{
// show "Not 8082";
}
while (true)
{
if (stack.hasMessage())
{
//Show "We have got a message!";
SipMessage *msg = stack.receive();
if (msg)
{
// Show msg->getSource().getPort();
}
}
}
When executing, my program listen on the port 8082 (verified with netstat), I used X-Lite to send some REGISTER to this port but the application does not receive anything. Here's the output:
INFO | 20070613-180555.767 | | | RESIP:TRANSPORT | 0 | 3073754832 | UdpTransport.cxx:42 | Creating UDP transport host= port=8082 ipv4=1
Port 8082
Could you give me some advice?
Thank you,
Don't get soaked. Take a
quick peak at the forecast with the
Yahoo! Search weather shortcut.