[Fwd: Re: [Fwd: [Fwd: Re: Stream problem on ICE reINVITE?]]]

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

 



Hi!

I think you were right about deinitializing the media properly.
Now, when receiving the subsequent offer, I am making:

if (my_media_conference_slot>0) {
           pjmedia_conf_disconnect_port(my_conference_bridge, 
my_media_conference_slot, 0);
           pjmedia_conf_disconnect_port(my_conference_bridge, 0, 
my_media_conference_slot);
           pjmedia_conf_remove_port(my_conference_bridge, 
my_media_conference_slot);
}

pjmedia_snd_port_disconnect(my_snd_port);
pj_thread_sleep(100);
pjmedia_snd_port_destroy(my_snd_port);


This way I no longer have problems with ICE in reINVITE.

However, I do have some other problems, but I think it's better to start 
a different thread.

Cheers
Pedro Gon?alves


-------- Original Message --------
Subject: 	Re: [Fwd: [Fwd: Re: Stream problem on ICE reINVITE?]]
Date: 	Tue, 5 Aug 2008 13:22:29 +0100
From: 	Benny Prijono <bennylp@xxxxxxxxx>
Reply-To: 	pjsip list <pjsip at lists.pjsip.org>
To: 	pjsip list <pjsip at lists.pjsip.org>
References: 	<48983C79.7040702 at gmail.com>



On Tue, Aug 5, 2008 at 12:41 PM, Pedro Gon?alves <pedro.pandre at gmail.com 
<mailto:pedro.pandre at gmail.com>> wrote:

    However, while it works during the call, when I am shutting down the
    application, I get an access violation in sound_port.c's rec_cb():
    /* We're risking accessing the port without holding any mutex.
        * It's possible that port is disconnected then destroyed while
        * we're trying to access it.
        * But in the name of performance, we'll try this approach until
        * someone complains when it crashes.
        */
       port = snd_port->port;

    I guess I am someone who is complaining that his crashes :)


I think I'll probably just remove that comments since it doesn't 
describe the cause. :) Normally, if it crashes then you're not 
deinitializing the media properly. Please see the samples.

Btw it seems that your email (Mon, Aug 4, 2008 at 4:02 PM) that's 
supposed to contain the log doesn't seem to make it to the list. Could 
you resend?

Cheers
 Benny

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Attached Message Part
Url: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080805/3e7c21d4/attachment.pl 


[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