Destroy and Recall -- simpleua.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm not sure why pjsip_endpt_destroy() stops, but definitely you don't need
to destroy it to make another call.

 -benny

On Mon, Aug 25, 2008 at 4:35 PM, Gianluca Crucill? <crucilla at gmail.com>wrote:

>
>
> Hi all
>
> I'm working on simpleua.c and I'm trying to terminate a call and make
> another call to another IP..
>
> My problem is that: when I'm disconnected from the first user I try to
> destroy all (sound port , media endpoint , ...) but when I destroy the
> pjsip_endpt the app freeze.
>
> The code:
>             pjmedia_snd_port_destroy(g_snd_player);
>             pjmedia_snd_port_destroy(g_snd_rec);
>             printf("pjmedia_snd_port_destroy\n");
> //  OK
>
>             pjmedia_endpt_destroy(g_med_endpt);
>             printf("pjmedia_endpt_destroy\n");
> //  OK
>
>             /* Destroy endpoint. */
>             if (g_endpt) {
>                             //  PROBLEM
>             pjsip_endpt_destroy(g_endpt);
>             g_endpt = NULL;
>             }
>             printf("pjsip_endpt_destroy\n");
>                                  //  NO OK .. I CAN'T READ THIS PRINTF
>
>             /* Destroy pool and pool factory. */
>             pj_caching_pool_destroy(&cp);
>             printf("pj_caching_pool_destroy\n");
>
>             /* Shutdown PJLIB */
>             pj_shutdown();
>             printf("pj_shutdown\n");
>
>
> I think that my sequence to destroy is wrong..
>
> Where I can find an example of a good sequence for destroy all and recreate
> all for another call?
>
> Or where is my error?
>
> Tnx all
>
> Bye
>
>
> Gianluca
>
>
>
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080825/e5a13389/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux