Re: [Sofia-sip-devel] INVITE source IP address

2008-04-28 Thread mikhail.zabaluev
Hi,
 
I want similar information, the destination IP address for the outgoing 
secondary transport used by a NUA handle.
AFAIK there's no way to retrieve peer's IP address, could a tag be made for 
that?

-- 
  Mikhail



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ext Matt 
Krokosz
Sent: Friday, April 25, 2008 6:53 PM
To: sofia-sip-devel@lists.sourceforge.net
Subject: [Sofia-sip-devel] INVITE source IP address



Using the nua module, when an INVITE is received, is there anyway to 
determine the source IP address from the transport layer, rather then from the 
SIP msg headers such as Contact or From?

 

Matt

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] INVITE source IP address

2008-04-28 Thread Matt Krokosz
From what I can gather so far (only been using the stack for a few days
now), access is needed to the underlying msg_t structure.  However, from
the NUA layer, there is no way to go from a sip_t structure back to the
msg_t structure.  As a result, the only solution I can see is to use the
NTA layer which provides access to both the msg_t and sip_t structure.

 

Matt

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, April 28, 2008 5:09 AM
To: sofia-sip-devel@lists.sourceforge.net
Subject: Re: [Sofia-sip-devel] INVITE source IP address

 

Hi,

 

I want similar information, the destination IP address for the outgoing
secondary transport used by a NUA handle.

AFAIK there's no way to retrieve peer's IP address, could a tag be made for
that?

-- 

  Mikhail


  _  


From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ext Matt
Krokosz
Sent: Friday, April 25, 2008 6:53 PM
To: sofia-sip-devel@lists.sourceforge.net
Subject: [Sofia-sip-devel] INVITE source IP address

Using the nua module, when an INVITE is received, is there anyway to
determine the source IP address from the transport layer, rather then from
the SIP msg headers such as Contact or From?

 

Matt

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] INVITE source IP address

2008-04-28 Thread Michael Jerris

If your in a callback, you can use something like:

char network_ip[80];
get_addr(network_ip, sizeof(network_ip), ((struct  
sockaddr_in *) msg_addrinfo(nua_current_request(nua))-ai_addr)- 
sin_addr);


Mike

On Apr 28, 2008, at 9:48 AM, Matt Krokosz wrote:

From what I can gather so far (only been using the stack for a few  
days now), access is needed to the underlying “msg_t” structure.   
However, from the NUA layer, there is no way to go from a “sip_t”  
structure back to the “msg_t” structure.  As a result, the only  
solution I can see is to use the NTA layer which provides access to  
both the msg_t and sip_t structure.


Matt

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf Of [EMAIL PROTECTED]

Sent: Monday, April 28, 2008 5:09 AM
To: sofia-sip-devel@lists.sourceforge.net
Subject: Re: [Sofia-sip-devel] INVITE source IP address

Hi,

I want similar information, the destination IP address for the  
outgoing secondary transport used by a NUA handle.
AFAIK there's no way to retrieve peer's IP address, could a tag be  
made for that?

--
  Mikhail
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf Of ext Matt Krokosz

Sent: Friday, April 25, 2008 6:53 PM
To: sofia-sip-devel@lists.sourceforge.net
Subject: [Sofia-sip-devel] INVITE source IP address
Using the nua module, when an INVITE is received, is there anyway to  
determine the source IP address from the transport layer, rather  
then from the SIP msg headers such as Contact or From?


Matt
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save  
$100.

Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] INVITE source IP address

2008-04-25 Thread Matt Krokosz
Using the nua module, when an INVITE is received, is there anyway to
determine the source IP address from the transport layer, rather then from
the SIP msg headers such as Contact or From?

 

Matt

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel