reinitialization of media transport problem

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

 



Hi,

Not sure if this is a bug, could you try the attached patch and please
report back if the problem disappears.

Thanks,
nanang


On Mon, Sep 22, 2008 at 9:39 PM, Ilya Kalinin <ilyak at skuku.com> wrote:
> Hi.
>
>
>
> In my code I am tying to reinitialize media transport before each call
> session in order to increment rtp port, I do something like this:
>
>
>
> pjsua_transport_config transport_cfg;
>
>
>
> pjsua_transport_config_default(&transport_cfg);
>
> pjsua_media_transports_create(&transport_cfg);
>
>
>
> after few calls application is crushes on this code segment:
>
>
>
> pjsua_media.c
>
>
>
> /* Delete existing media transports */
>
>     for (i=0; i<pjsua_var.ua_cfg.max_calls; ++i) {
>
>       if (pjsua_var.calls[i].med_tp != NULL) {
>
>           pjmedia_transport_close(pjsua_var.calls[i].med_tp);
>
>           pjsua_var.calls[i].med_tp = NULL;
>
>       }
>
>     }
>
>
>
> I put this code in pjsua sample and I get same behavior. I'm using now
> pjproject 1.0-rc2, with pjproject 0.8 it worked fine.
>
>
>
> Do I do something wrong or there is a bug in pjproject?
>
>
>
> Thanks in advance.
>
> _______________________________________________
> 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 --------------
A non-text attachment was scrubbed...
Name: reininit_med_tp.patch
Type: application/octet-stream
Size: 398 bytes
Desc: not available
Url : http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080923/274a93da/attachment.patch 


[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