Hello Francesco, hi all,
have you solve your problem? I'm also having problem to get nua_r_shutdown
signal, handling the eventloop with su_root_step. I'm using sofia 1.12.10 at
the moment.
The problem is that, after executing nua_shutdown(nua), I never get case
nua_r_shutdown inside my callback:
event_callback(nua_event_t event,
int status,
char const *phrase,
nua_t *nua,
nua_magic_t *magic,
nua_handle_t *nh,
nua_hmagic_t *hmagic,
sip_t const *sip,
tagi_t tags[])
{
...
switch(event){
...
case nua_r_shutdown:
printf("got nua_r_shutdown\n");
break;
}
}
This sounds really weird to me, cause when setting NUA_DEBUG= 9, NTA_DEBUG=9,
as Pekka suggested, I can see that signal is sent.
nta: timer not set
nua: nua_shutdown: entering
nua((nil)): recv signal r_shutdown
nua: nua_stack_shutdown: entering
soa_destroy(static::0x10d02c0) called
soa_destroy(static::0x1128130) called
tport_destroy(0x10d2610)
nua((nil)): event r_shutdown 200 Shutdown successful
nua((nil)): sent signal r_shutdown
nua: nua_unregister: entering
nua: nua_destroy: entering
nua_destroy(0x10ced80): FATAL: nua_shutdown not completed
client: su_root.c:432: su_root_destroy: Assertion `(self->sur_task->sut_port &&
su_port_own_thread(self->sur_task->sut_port))' failed.
While debbuging, I notice that nua->nua_final_shutdown is never set, so the
fatal error when calling nua_destroy().
Where can I be wrong? Any help would be very appreciated.
> That is the only output i get after the call to nua_shutdown()
> No, i didnt use that call, i simply set the env vars NUA_DEBUG and
> NTA_DEBUG to 9
>
>
> On Tue, Sep 29, 2009 at 2:25 PM, Pekka Pessi <[email protected]> wrote:
> > 2009/9/29 Francesco Lamonica <[email protected]>:
> >> Hi all, this is what i get (with latest darcs) when i call
> >> nua_shutdown(nua);
> >
> > There is nothing from nua/nta? Do you set your debuging log levels
> > with su_log_set_level()?
> >
> > --Pekka
> >
> >> tport_tsend(0x1a961b0) tpn = */192.168.23.200:5060/sip
> >> tport_resolve addrinfo = 192.168.23.200:5060
> >> tport_by_addrinfo(0x1a961b0): not found by name */192.168.23.200:5060/sip
> >> tport_vsend(0x1a961b0): 693 bytes of 693 to udp/192.168.23.200:5060
> >> tport_vsend returned 693
> >> tport_pend(0x1a961b0): pending 0x7f8d4801add0 for
> >> udp/192.168.23.2:5080 (already 0)
> >> shutdown result: 0
> >> tport_wakeup_pri(0x1a961b0): events IN
> >> tport_recv_event(0x1a961b0)
> >> tport_recv_iovec(0x1a961b0) msg 0x7f8d480197d0 from
> >> (udp/192.168.23.2:5080) has 430 bytes, veclen = 1
> >> tport_deliver(0x1a961b0): msg 0x7f8d480197d0 (430 bytes) from
> >> udp/192.168.23.200:5080/sip next=(nil)
> >> tport_release(0x1a961b0): 0x7f8d4801add0 by 0x7f8d480173a0 with
> >> 0x7f8d480197d0 (preliminary)
> >> tport_wakeup_pri(0x1a961b0): events IN
> >> tport_recv_event(0x1a961b0)
> >> tport_recv_iovec(0x1a961b0) msg 0x7f8d480197d0 from
> >> (udp/192.168.23.2:5080) has 506 bytes, veclen = 1
> >> tport_deliver(0x1a961b0): msg 0x7f8d480197d0 (506 bytes) from
> >> udp/192.168.23.200:5080/sip next=(nil)
> >> tport_release(0x1a961b0): 0x7f8d4801add0 by 0x7f8d480173a0 with
> >> 0x7f8d480197d0
> >> tport_destroy(0x1ad7650)
> >>
> >> still no nua_r_shutdown received in my callback
> >>
> >> any suggestions?
> >>
> >
> >
> >
> > --
> > Pekka.Pessi mail at nokia.com
> >
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel