On Wed, Feb 24, 2010 at 12:48 PM, elisa_murgia <elisa_mur...@libero.it>wrote:

> 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.
>
>
> Hi Elisa,
unfortunately i can't help you that much, i am using latest sofia-repo but i
am experiencing the very same behaviour  you're reporting, i can see the
r_shutdown signal but the nua_r_shutdown is never reported by the callback.

regards
Francesco
------------------------------------------------------------------------------
Download Intel&#174; 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
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to