[reSIProcate] Problem in receiving message

Tuan Viet Nguyen ntvietv at yahoo.com
Wed Jun 13 11:07:25 CDT 2007


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,





 
____________________________________________________________________________________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070613/05769926/attachment.htm>


More information about the resiprocate-devel mailing list