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 <ppe...@gmail.com>
10/02/2009 08:11 AM
To: Robert Han <robert...@vtech.ca>
cc: sofia-sip-devel@lists.sourceforge.net
Subject: Re: [Sofia-sip-devel] Fw: Changing IP address.
2009/10/2 Robert Han <robert...@vtech.ca>
> 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® 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
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel