Pekka Pessi | 1 Oct 2009 13:42
Picon

Re: How to disable auto-respond for incoming REFER

2009/9/30 Stefano Sabatini <ssabatini@...>:
> and seems to *assume* that the response to the REFER event will be
> automatically sent, and I experienced the sofia-sip stack will
> automatically send a response with status 202.
>
> I wonder if it is possible to disable this behavior, and manually
> choose (e.g. with nua_respond()) which response to give to the REFER
> method.

Yes, you can do that. Include the tag NUTAG_APPL_METHOD("REFER") in
nua_create() or nua_set_params().

--

-- 
Pekka.Pessi mail at nokia.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
Paulo Pizarro | 1 Oct 2009 22:51
Picon
Gravatar

How do I do nua to respond 488 using SOA

Hi all,

On the "basic" inbound call model:

APPL NUA SOA REMOTE
| | | |
0 | | | |
1 | |<------------------INVITE(sdp offer)---|
2 | | | |
3 | |--set_remote-->| |
4 | | | |
5 |<---INVITE-----| | |
6 | | | |
7 | | | |
8 |- - -180- - - >| | |
9 | |- - - - - - - - - - 180 Ringing - - - >|
10 | | | |
11 | | | |
12 |-----200------>| | |
13 | |--set_params-->| |
14 | | | |
15 | |--gen_answer-->| |
16 | | | |
17 |<----active----| | |
18 | |----activate-->| |
19 | |--------------------200 (sdp answer)-->|
20 | | | |
21 | | | |
22 | |<------------------------ACK-----------|
23 |<-----ACK------| | |
24 | | | |
| | | |
In line 12, the application calls nua_respond with 200, if there is no common codecs, soa generates an answer SDP with "m=audio 0 RTP/AVP 0 8".

How do I make nua to respond 488 using soa?

Thanks in advance,

Paulo Pizarro

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@...
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Robert Han | 1 Oct 2009 23:28
Picon

Fw: Changing IP address.


Hi,

I just want to raise the issue that we asked you earlier back in July 31 (see below).

You said that if we shutdown the sofia stack, and if there are outstanding sip sessions (for example 4 active sessions), we do not need to nua_bye() or even nua_handle_destroy() before invoking nua_shutdown().

according to your reply, the nua stack is guaranteed to terminate outstanding nua operations, and then publish nua_i_terminate as the final event with a operation handle, so that we can destroy that handle.

that never happened.

our logs below an IP address change, where we had to recycle the Sofia sip stack:


our link status monitor reports an IP address change, so we proceed to recycle our Sofia stack:

-NTC-[20021020:112634.600]|  104||cc        ||sip.fe    |DevCoordStatusChange: SIP: NETWORK UP
-NTC-[20021020:112634.600]|  104||cc        ||sip.fe    |DevCoordStatusChange: Network Link Recycled ==> possible new IP address change
-NTC-[20021020:112634.600]|  104||cc        ||sip.fe    |DevCoordStatusChange: IP address changed from 192.168.0.52 to 192.168.0.77.
-NTC-[20021020:112634.610]|  104||cc        ||sip.fe    |DevCoordStatusChange: Need to recycle Sophia Stack ===> shutting down the Sophia SIP stack...

                        IsSofiaStackShuttingDown = TRUE;

                        VT_NOTICE("Shutting down the Sofia SIP Stack...");
                        nua_shutdown(PortPtr->sofiaStackPtr);  

===> now i expect Sofia stack to terminate the nua operation for each outstanding sip session with nua_i_terminated before receiving nua_r_shutdown
completion status , but we don't get it hence we don't destroy the nua handle.


 DBG [20021020:112635.680]|  168||SIP Event Handler||sip.fe    |EventCallback: Received an event = ['nua_r_shutdown'] status = [100 ,'Shutdown started'] on port [5060]. Handle = [(nil)], HMagic = (nil).
-NTC-[20021020:112635.680]|  168||SIP Event Handler||sip.fe    |EventCallback: Sophia SIP stack shutdown started successfully.
 DBG [20021020:112635.810]|  168||SIP Event Handler||sip.fe    |EventCallback: Received an event = ['nua_r_shutdown'] status = [200 ,'Shutdown successful'] on port [5060]. Handle = [(nil)], HMagic = (nil).
-NTC-[20021020:112635.810]|  168||SIP Event Handler||sip.fe    |EventCallback: Sophia SIP stack shutdown completed successfully.
-NTC-[20021020:112635.820]|  168||SIP Event Handler||sip.fe    |EventCallback: ---> StartSipStack()
nta_agent: received garbage from udp/192.168.0.77:5060/sip
nta_agent: received garbage from udp/127.0.0.1:5060/sip
-NTC-[20021020:112635.850]|  168||SIP Event Handler||sip.fe    |EventCallback: <--- StartSipStack()
 DBG [20021020:112635.850]|  168||SIP Event Handler||sip.fe    |EventCallback: Received an event = ['nua_r_set_params'] status = [200 ,'OK'] on port [5060]. Handle = [(nil)], HMagic = (nil).
 DBG [20021020:112635.850]|  168||SIP Event Handler||sip.fe    |EventCallback: Discarding event nua_r_set_params.  Handler not implemented.



because we don't recieve the nau_i_terminate, we have a *stale* handle on our side, where we did not destroy it, but our client-side binding Session context object is already deleted.

would that be a bug? is the Sofia stack suppose to behave as described above??  

thanks,
Robert Han, Senior Software Engineer
VTech Technologies Canada, Ltd.


----- Forwarded by Robert Han/ENG/VTNCAN/VTECH on 10/01/2009 02:01 PM -----
Jen Chitty

07/31/2009 12:01 PM

       
        To:        Robert Han/ENG/VTNCAN/VTECH <at> VTECH
        cc:        
        Subject:        Fw: [Sofia-sip-devel] Changing IP address.



----- Forwarded by Jen Chitty/ENG/VTNCAN/VTECH on 07/31/2009 11:57 AM -----
Michael Jerris <mike-xjkglufAEOjQT0dZR+AlfA@public.gmane.org>

07/31/2009 11:47 AM

       
        To:        Jen Chitty <JenChitty-uHodou9VA60@public.gmane.org>
        cc:        sofia-sip-devel <sofia-sip-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
        Subject:        Re: [Sofia-sip-devel] Changing IP address.




On Jul 31, 2009, at 2:23 PM, Jen Chitty wrote:


Hi,

I'm wondering if there's a way to change the IPv4 address that the Sofia stack binds to without having to shutdown and restart the stack.  We're using the NUA.

Nope, but would be nice.


Right now, if our device's IPv4 address changes we shutdown the Sofia stack and start it up again.  This seems to mostly work, but we are experiencing some race conditions with callbacks from the Sofia event loop thread (running su_root_run) and our application thread, especially with respect to handle destruction.  We were hoping that we could just leave the Sofia stack running and tell it to change its IPv4 address.

Another question that I'd like an answer to is this:  When shutting down the Sofia stack, are we guaranteed to receive a nua_i_terminated event for every session that hasn't yet been terminated?

That is the intention, if your not, its a bug.


Thanks very much.

--JT

J. T. Chitty, Chief Software Engineer
VTech Technologies Canada, Ltd.
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@...
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Francesco Lamonica | 2 Oct 2009 09:17
Picon

Re: Fw: Changing IP address.

Hello Robert,
may i ask what platform and sofia version are use using? I am facing the same issue but i dont'even get the nua_r_shutdown message...

thanks

On Thu, Oct 1, 2009 at 11:28 PM, Robert Han <RobertHan-uHodou9VA60@public.gmane.org> wrote:

Hi,

I just want to raise the issue that we asked you earlier back in July 31 (see below).

You said that if we shutdown the sofia stack, and if there are outstanding sip sessions (for example 4 active sessions), we do not need to nua_bye() or even nua_handle_destroy() before invoking nua_shutdown().

according to your reply, the nua stack is guaranteed to terminate outstanding nua operations, and then publish nua_i_terminate as the final event with a operation handle, so that we can destroy that handle.

that never happened.

our logs below an IP address change, where we had to recycle the Sofia sip stack:


our link status monitor reports an IP address change, so we proceed to recycle our Sofia stack:

-NTC-[20021020:112634.600]|  104||cc        ||sip.fe    |DevCoordStatusChange: SIP: NETWORK UP
-NTC-[20021020:112634.600]|  104||cc        ||sip.fe    |DevCoordStatusChange: Network Link Recycled ==> possible new IP address change
-NTC-[20021020:112634.600]|  104||cc        ||sip.fe    |DevCoordStatusChange: IP address changed from 192.168.0.52 to 192.168.0.77.
-NTC-[20021020:112634.610]|  104||cc        ||sip.fe    |DevCoordStatusChange: Need to recycle Sophia Stack ===> shutting down the Sophia SIP stack...

                        IsSofiaStackShuttingDown = TRUE;

                        VT_NOTICE("Shutting down the Sofia SIP Stack...");
                        nua_shutdown(PortPtr->sofiaStackPtr);  

===> now i expect Sofia stack to terminate the nua operation for each outstanding sip session with nua_i_terminated before receiving nua_r_shutdown
completion status , but we don't get it hence we don't destroy the nua handle.


 DBG [20021020:112635.680]|  168||SIP Event Handler||sip.fe    |EventCallback: Received an event = ['nua_r_shutdown'] status = [100 ,'Shutdown started'] on port [5060]. Handle = [(nil)], HMagic = (nil).
-NTC-[20021020:112635.680]|  168||SIP Event Handler||sip.fe    |EventCallback: Sophia SIP stack shutdown started successfully.
 DBG [20021020:112635.810]|  168||SIP Event Handler||sip.fe    |EventCallback: Received an event = ['nua_r_shutdown'] status = [200 ,'Shutdown successful'] on port [5060]. Handle = [(nil)], HMagic = (nil).
-NTC-[20021020:112635.810]|  168||SIP Event Handler||sip.fe    |EventCallback: Sophia SIP stack shutdown completed successfully.
-NTC-[20021020:112635.820]|  168||SIP Event Handler||sip.fe    |EventCallback: ---> StartSipStack()
nta_agent: received garbage from udp/192.168.0.77:5060/sip
nta_agent: received garbage from udp/127.0.0.1:5060/sip
-NTC-[20021020:112635.850]|  168||SIP Event Handler||sip.fe    |EventCallback: <--- StartSipStack()
 DBG [20021020:112635.850]|  168||SIP Event Handler||sip.fe    |EventCallback: Received an event = ['nua_r_set_params'] status = [200 ,'OK'] on port [5060]. Handle = [(nil)], HMagic = (nil).
 DBG [20021020:112635.850]|  168||SIP Event Handler||sip.fe    |EventCallback: Discarding event nua_r_set_params.  Handler not implemented.



because we don't recieve the nau_i_terminate, we have a *stale* handle on our side, where we did not destroy it, but our client-side binding Session context object is already deleted.

would that be a bug? is the Sofia stack suppose to behave as described above??  

thanks,
Robert Han, Senior Software Engineer
VTech Technologies Canada, Ltd.


----- Forwarded by Robert Han/ENG/VTNCAN/VTECH on 10/01/2009 02:01 PM -----
Jen Chitty

07/31/2009 12:01 PM

       
        To:        Robert Han/ENG/VTNCAN/VTECH <at> VTECH
        cc:        
        Subject:        Fw: [Sofia-sip-devel] Changing IP address.



----- Forwarded by Jen Chitty/ENG/VTNCAN/VTECH on 07/31/2009 11:57 AM -----
Michael Jerris <mike-xjkglufAEOjQT0dZR+AlfA@public.gmane.org>

07/31/2009 11:47 AM

       
        To:        Jen Chitty <JenChitty-uHodou9VA60@public.gmane.org>
        cc:        sofia-sip-devel <sofia-sip-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
        Subject:        Re: [Sofia-sip-devel] Changing IP address.




On Jul 31, 2009, at 2:23 PM, Jen Chitty wrote:


Hi,

I'm wondering if there's a way to change the IPv4 address that the Sofia stack binds to without having to shutdown and restart the stack.  We're using the NUA.

Nope, but would be nice.


Right now, if our device's IPv4 address changes we shutdown the Sofia stack and start it up again.  This seems to mostly work, but we are experiencing some race conditions with callbacks from the Sofia event loop thread (running su_root_run) and our application thread, especially with respect to handle destruction.  We were hoping that we could just leave the Sofia stack running and tell it to change its IPv4 address.

Another question that I'd like an answer to is this:  When shutting down the Sofia stack, are we guaranteed to receive a nua_i_terminated event for every session that hasn't yet been terminated?

That is the intention, if your not, its a bug.


Thanks very much.

--JT

J. T. Chitty, Chief Software Engineer
VTech Technologies Canada, Ltd.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@...
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Daniel Eli | 2 Oct 2009 15:48
Picon
Favicon

Re: How do I do nua to respond 488 using SOA

In other words, how do I generate the sdp answer (using SOA) before nua_respond (200) ?

--- On Thu, 10/1/09, Paulo Pizarro <paulo.pizarro@...> wrote:

> From: Paulo Pizarro <paulo.pizarro@...>
> Subject: [Sofia-sip-devel] How do I do nua to respond 488 using SOA
> To: sofia-sip-devel@...
> Date: Thursday, October 1, 2009, 5:51 PM
> Hi all,
> 
> On the "basic" inbound call model:
> 
> 
>        APPL	       NUA	       SOA		      REMOTE
> 	|		|		|			|
>  0      |		|		|			|
>  1	|		|<------------------INVITE(sdp offer)---|
>  2      |		|		|			|
>  3	|		|--set_remote-->|			|
>  4      |		|		|			|
> 
>  5	|<---INVITE-----|		|			|
>  6      |		|		|			|
>  7      |		|		|			|
>  8	|- - -180- - - >|		|			|
>  9	|		|- - - - - - - - - - 180 Ringing - - - >|
> 10      |		|		|			|
> 11      |		|		|			|
> 12	|-----200------>|		|			|
> 
> 13	|		|--set_params-->|			|
> 14      |		|		|			|
> 15	|		|--gen_answer-->|			|
> 16	|		|               |			|
> 17	|<----active----|		|			|
> 18	|		|----activate-->|			|
> 19	|		|--------------------200 (sdp answer)-->|
> 
> 20	|		|		|			|
> 21	|		|		|	 		|
> 22	|		|<------------------------ACK-----------|
> 23	|<-----ACK------|		|			|
> 24	|		|		|			|
> 	|		|		|			|
> In line 12, the application calls nua_respond with
> 200, if there is no common codecs, soa generates an answer
> SDP with "m=audio 0 RTP/AVP 0 8".
> 
> 
> How do I make nua to respond 488 using soa?
> 
> Thanks in advance,
> 
> Paulo Pizarro
> 
> 
> 
>  
> 
> -----Inline Attachment Follows-----
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer
> Conference in SF, CA
> is the only developer event you need to attend this year.
> Jumpstart your
> developing skills, take BlackBerry mobile applications to
> market and stay 
> ahead of the curve. Join us from November 9-12, 2009.
> Register now!
> http://p.sf.net/sfu/devconf
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> Sofia-sip-devel mailing list
> Sofia-sip-devel@...
> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
> 

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
Robert Han | 2 Oct 2009 19:57
Picon

Re: Fw: Changing IP address.


no.

nua_create()/nta_agent_create()/tport_bind() now joins to multicast group if "maddr" parameter is specified.

this not applicable to our application. We don't have a proxy server or a registrar server.

 currently this is how we create the nua instance:

    portPtr->sofiaStackPtr = nua_create(portPtr->eventLoopPtr,
                                        EventCallback,      // Event handling callback func.
                                        portPtr,            // Additional data to pass to callback.
                                        TAG_END());         // ---- End of tag list ----


we felt this was not needed to force a hard binding of the socket to a local NIC address.:

NUTAG_URL(Address), // Local address to bind to.


if we do not recycle the stack, the nua stack nta layer will error out on the transmission on a port that is no longer valid (because the address is changed).

-NTC-[20021003:105001.720]|  100||cc        ||sip.fe    |vt_sip_Invite: IsSophiaStackOnline = [1]
 DBG [20021003:105001.720]|  100||cc        ||sip.fe    |GenerateSdpMediaDesc: Generated SDP: 'm=audio 10050 RTP/AVP 0 18'
 DBG [20021003:105001.720]|  100||cc        ||sip.fe    ||sipHndl|Bind: Session 100000b bound to handle 1000f618.
tport_vsend(0x100106f0): Invalid argument with (s=17 */169.254.1.185:5060)
nta: INVITE (10702764): Invalid argument (22) with */[169.254.1.185]:5060
 DBG [20021003:105001.740]|  166||SIP Event Handler||sip.fe    |EventCallback: Received an event nua_i_state status 0 INVITE sent on port 5060. Handle = 0x1000f618, HMagic = 0x100000b.
 DBG [20021003:105001.740]|  166||SIP Event Handler||sip.fe    |StateChange: Changed NUA call state to nua_callstate_calling.
 DBG [20021003:105001.740]|  166||SIP Event Handler||sip.fe    |EventCallback: Received an event nua_r_invite status 503 Service Unavailable on port 5060. Handle = 0x1000f618, HMagic = 0x100000b.
[WRN][20021003:105001.740]|  166||SIP Event Handler||sip.fe    |InviteResponse: Sending SIP Invite Error Response due to Ethernet link down
 DBG [20021003:105001.740]|  166||SIP Event Handler||sip.fe    |EventCallback: Received an event nua_i_state status 503 Service Unavailable on port 5060. Handle = 0x1000f618, HMagic = 0x100000b.
 DBG [20021003:105001.750]|  166||SIP Event Handler||sip.fe    |StateChange: Changed NUA call state to nua_callstate_terminated.
 DBG [20021003:105001.750]|  166||SIP Event Handler||sip.fe    |EventCallback: Received an event nua_i_terminated status 503 Service Unavailable on port 5060. Handle = 0x1000f618, HMagic = 0x100000b.
 DBG [20021003:105001.750]|  166||SIP Event Handler||sip.fe    ||sipHndl|Terminated: Handle (1000f618) terminated.
 DBG [20021003:105001.750]|  166||SIP Event Handler||cc.be     ||CC_GroupRing|SipEventCallback: Received SIP event callback with reason 'VT_SIP_CBR_TERMINATED', cbParam = [0x2000005], session = [0x100000b]


hence whether we specific a URL address for nua to bind to, or it picks a loca address by default, I thought it wouldn't matter.






Pekka Pessi <ppessi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

10/02/2009 08:11 AM

       
        To:        Robert Han <RobertHan-uHodou9VA60@public.gmane.org>
        cc:        sofia-sip-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
        Subject:        Re: [Sofia-sip-devel] Fw: Changing IP address.



2009/10/2 Robert Han <RobertHan-uHodou9VA60@public.gmane.org>
> I just want to raise the issue that we asked you earlier back in July 31 (see below).
>
> You said that if we shutdown the sofia stack, and if there are outstanding sip sessions (for example 4 active sessions), we do not need to nua_bye() or even nua_handle_destroy() before invoking nua_shutdown().
>
> according to your reply, the nua stack is guaranteed to terminate outstanding nua operations, and then publish nua_i_terminate as the final event with a operation handle, so that we can destroy that handle.
>
> that never happened.

That *should* happen. however, the IP address change also means that
all the TCP connections and the UDP sockets bound to the old IP
address become useless. Do you include maddr= parameter in the
NUTAG_URL() in nua_create()?

--Pekka

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@...
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Robert Han | 2 Oct 2009 18:50
Picon

Re: Fw: Changing IP address.


Thanks for the quick reply, we are using Linux 2.4  with BusyBox.

compiler is gcc v2.9.5.3  run-time library = uClibc 0.9.19

Sofia stack version is 1.12.10.




Francesco Lamonica <alienpenguin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

10/02/2009 12:17 AM

       
        To:        Robert Han <RobertHan-uHodou9VA60@public.gmane.org>
        cc:        sofia-sip-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
        Subject:        Re: [Sofia-sip-devel] Fw: Changing IP address.



Hello Robert,
may i ask what platform and sofia version are use using? I am facing the same issue but i dont'even get the nua_r_shutdown message...

thanks

On Thu, Oct 1, 2009 at 11:28 PM, Robert Han <RobertHan-uHodou9VA60@public.gmane.org> wrote:

Hi,

I just want to raise the issue that we asked you earlier back in July 31 (see below).

You said that if we shutdown the sofia stack, and if there are outstanding sip sessions (for example 4 active sessions), we do not need to nua_bye() or even nua_handle_destroy() before invoking nua_shutdown().

according to your reply, the nua stack is guaranteed to terminate outstanding nua operations, and then publish nua_i_terminate as the final event with a operation handle, so that we can destroy that handle.

that never happened.

our logs below an IP address change, where we had to recycle the Sofia sip stack:


our link status monitor reports an IP address change, so we proceed to recycle our Sofia stack:

-NTC-[20021020:112634.600]|  104||cc        ||sip.fe    |DevCoordStatusChange: SIP: NETWORK UP
-NTC-[20021020:112634.600]|  104||cc        ||sip.fe    |DevCoordStatusChange: Network Link Recycled ==> possible new IP address change
-NTC-[20021020:112634.600]|  104||cc        ||sip.fe    |DevCoordStatusChange: IP address changed from 192.168.0.52 to 192.168.0.77.
-NTC-[20021020:112634.610]|  104||cc        ||sip.fe    |DevCoordStatusChange: Need to recycle Sophia Stack ===> shutting down the Sophia SIP stack...

                        IsSofiaStackShuttingDown = TRUE;

                        VT_NOTICE("Shutting down the Sofia SIP Stack...");
                        nua_shutdown(PortPtr->sofiaStackPtr);  

===> now i expect Sofia stack to terminate the nua operation for each outstanding sip session with nua_i_terminated before receiving nua_r_shutdown
completion status , but we don't get it hence we don't destroy the nua handle.


 DBG [20021020:112635.680]|  168||SIP Event Handler||sip.fe    |EventCallback: Received an event = ['nua_r_shutdown'] status = [100 ,'Shutdown started'] on port [5060]. Handle = [(nil)], HMagic = (nil).
-NTC-[20021020:112635.680]|  168||SIP Event Handler||sip.fe    |EventCallback: Sophia SIP stack shutdown started successfully.
 DBG [20021020:112635.810]|  168||SIP Event Handler||sip.fe    |EventCallback: Received an event = ['nua_r_shutdown'] status = [200 ,'Shutdown successful'] on port [5060]. Handle = [(nil)], HMagic = (nil).
-NTC-[20021020:112635.810]|  168||SIP Event Handler||sip.fe    |EventCallback: Sophia SIP stack shutdown completed successfully.
-NTC-[20021020:112635.820]|  168||SIP Event Handler||sip.fe    |EventCallback: ---> StartSipStack()
nta_agent: received garbage from udp/192.168.0.77:5060/sip
nta_agent: received garbage from udp/127.0.0.1:5060/sip
-NTC-[20021020:112635.850]|  168||SIP Event Handler||sip.fe    |EventCallback: <--- StartSipStack()
 DBG [20021020:112635.850]|  168||SIP Event Handler||sip.fe    |EventCallback: Received an event = ['nua_r_set_params'] status = [200 ,'OK'] on port [5060]. Handle = [(nil)], HMagic = (nil).
 DBG [20021020:112635.850]|  168||SIP Event Handler||sip.fe    |EventCallback: Discarding event nua_r_set_params.  Handler not implemented.



because we don't recieve the nau_i_terminate, we have a *stale* handle on our side, where we did not destroy it, but our client-side binding Session context object is already deleted.

would that be a bug? is the Sofia stack suppose to behave as described above??  

thanks,
Robert Han, Senior Software Engineer
VTech Technologies Canada, Ltd.


----- Forwarded by Robert Han/ENG/VTNCAN/VTECH on 10/01/2009 02:01 PM -----
Jen Chitty

07/31/2009 12:01 PM

       
        To:        Robert Han/ENG/VTNCAN/VTECH <at> VTECH
        cc:        
        Subject:        Fw: [Sofia-sip-devel] Changing IP address.




----- Forwarded by Jen Chitty/ENG/VTNCAN/VTECH on 07/31/2009 11:57 AM -----
Michael Jerris <mike-xjkglufAEOjQT0dZR+AlfA@public.gmane.org>

07/31/2009 11:47 AM

       
        To:        Jen Chitty <JenChitty-uHodou9VA60@public.gmane.org>
        cc:        sofia-sip-devel <sofia-sip-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
        Subject:        Re: [Sofia-sip-devel] Changing IP address.





On Jul 31, 2009, at 2:23 PM, Jen Chitty wrote:


Hi,

I'm wondering if there's a way to change the IPv4 address that the Sofia stack binds to without having to shutdown and restart the stack.  We're using the NUA.

Nope, but would be nice.


Right now, if our device's IPv4 address changes we shutdown the Sofia stack and start it up again.  This seems to mostly work, but we are experiencing some race conditions with callbacks from the Sofia event loop thread (running su_root_run) and our application thread, especially with respect to handle destruction.  We were hoping that we could just leave the Sofia stack running and tell it to change its IPv4 address.

Another question that I'd like an answer to is this:  When shutting down the Sofia stack, are we guaranteed to receive a nua_i_terminated event for every session that hasn't yet been terminated?

That is the intention, if your not, its a bug.


Thanks very much.

--JT

J. T. Chitty, Chief Software Engineer
VTech Technologies Canada, Ltd.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@...
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Pekka Pessi | 2 Oct 2009 17:11
Picon

Re: Fw: Changing IP address.

2009/10/2 Robert Han <RobertHan@...>
> I just want to raise the issue that we asked you earlier back in July 31 (see below).
>
> You said that if we shutdown the sofia stack, and if there are outstanding sip sessions (for example 4
active sessions), we do not need to nua_bye() or even nua_handle_destroy() before invoking nua_shutdown().
>
> according to your reply, the nua stack is guaranteed to terminate outstanding nua operations, and then
publish nua_i_terminate as the final event with a operation handle, so that we can destroy that handle.
>
> that never happened.

That *should* happen. however, the IP address change also means that
all the TCP connections and the UDP sockets bound to the old IP
address become useless. Do you include maddr= parameter in the
NUTAG_URL() in nua_create()?

--Pekka

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
Kai.Vehmanen | 5 Oct 2009 17:18
Picon

refdoc robot back up

Hello all,

the robot updating the library API docs had got stuck, but
it's now back up. Updated docs available at the usual
place:
http://sofia-sip.sourceforge.net/refdocs/nua/
http://sofia-sip.sourceforge.net/refdocs/su-glib/
...

br,
--

-- 
first.surname@... (Kai Vehmanen)

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
SourceForge.net | 13 Oct 2009 07:50
Picon
Favicon

[ sofia-sip-Bugs-2412241 ] Registration to Ekiga.net fails

Bugs item #2412241, was opened at 2008-12-09 18:06
Message generated for change (Comment added) made by murrayc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=756076&aid=2412241&group_id=143636

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Pekka Pessi (ppessi)
Assigned to: Pekka Pessi (ppessi)
Summary: Registration to Ekiga.net fails

Initial Comment:
The Ekiga.net checks during registration that both the Via and Contact headers contain a public IP
address. The registation fails with 606 if the Via header contains a NATted address from the private
address space.

----------------------------------------------------------------------

Comment By: Murray Cumming (murrayc)
Date: 2009-10-13 05:50

Message:
So, if the problem is with ekiga.net, has anyone contacted them about it
yet?

----------------------------------------------------------------------

Comment By: Mikhail Zabaluev (mzabaluev)
Date: 2009-06-08 13:54

Message:
I reverse my stance from the earlier comments The modification of transport
address in Via may cause interoperability problems with proxies that
implement support for RFC 3581 and rely on the specified behavior for
NAT-aware policies.

The restriction imposed by the proxy is arbitrary. It does not follow any
specification or best practice published by IETF that I'm aware of. The
answer is, fix the proxy.

----------------------------------------------------------------------

Comment By: Andre Klapper (riot69)
Date: 2009-04-09 09:51

Message:
Maemo downstream ticket: https://bugs.maemo.org/show_bug.cgi?id=4259

----------------------------------------------------------------------

Comment By: Mikhail Zabaluev (mzabaluev)
Date: 2009-03-03 18:49

Message:
It shouldn't be an interop problem to put the public transport address in
the client's Via. When the binding breaks, the proxy should signal it with
rport and received which will be different from the address in Via.

----------------------------------------------------------------------

Comment By: Mikhail Zabaluev (mzabaluev)
Date: 2008-12-10 13:17

Message:
>The UA application must take care of the contact address by:
>-Using some kind of STUN mechanism
>- Learning from the REGISTER response ( checking the Via parameters ) and
reusing a new REGISTER

Sure, we do the latter, but the ekiga.net proxy rejects this REGISTER with
606 Not Acceptable.

----------------------------------------------------------------------

Comment By: Inca Rose (incarose)
Date: 2008-12-09 19:48

Message:
Why do you think this is a sofia-sip problem ?
There is nothing wrong whit that.
Ekiga SIP server will end up sending the response to the udp-src address
ignoring the Via host address.

The UA application must take care of the contact address by:
-Using some kind of STUN mechanism
- Learning from the REGISTER response ( checking the Via parameters ) and
reusing a new REGISTER
- or not taking care at all and failing to get incoming calls.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=756076&aid=2412241&group_id=143636

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

Gmane