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

Re: [reSIProcate] How to tell apart internal message sent by the stack?


You can just check if getReceivedTransport returns 0 (NULL) in order to determine if a message is internally generated.

 

Scott

 

From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx] On Behalf Of Brocha Strous
Sent: Monday, June 11, 2007 7:30 AM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] How to tell apart internal message sent by the stack?

 

Hello,

I have some code that looks like this:

 

Tuple::inet_ntop(response.getReceivedTransport()->getTuple())

 

This code crashes when processing an internal 408 INVITE message on any accessing of the Tuple object. Other then explicitly checking if it’s a 408 INVITE is there a way to determine that its an internal message and the Tuple will be invalid?

 

Thanks,

Brocha