Destroy and Recall -- simpleua.c

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

 



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080825/b5af5c3f/attachment-0001.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