Can not call pjsip_tcp_transport_start2 twice?

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

 



No, it's not the problem.  Seems that pjsip_tcp_transport_start2 could only
be called once.

Look the code in pjsip_tcp_transport_start2:

    listener->endpt = endpt;
    listener->tpmgr = pjsip_endpt_get_tpmgr(endpt);
    listener->factory.create_transport = lis_create_transport;
    listener->factory.destroy = lis_destroy;
    listener->is_registered = PJ_TRUE;
    status = pjsip_tpmgr_register_tpfactory(listener->tpmgr,
                        &listener->factory);

unless we input a different endpt, pjsip_tpmgr_register_tpfactory will
return error the second time we call
pjsip_tcp_transport_start2.

I will try to create 2 endpt.  But that seems to have problem too.

On Tue, May 19, 2009 at 3:24 PM, Ponik Supapupa <spunyk at gmail.com> wrote:

> Strange, i start many transports in the same application. But i use an UDP
> transports, not TCP. May be in the fourth param you don't use 1, instead
> this use the count of your transports?
> ** @param async_cnt Number of simultaneous asynchronous accept()
>  * operations to be supported. It is recommended that
>  * the number here corresponds to the number of
>  * processors in the system (or the number of SIP
>  * worker threads).*
> And the last parameter must be different instances of the tcp transport if
> you want to start different transports :)
> Regards
>
>
>
>
>
> _______________________________________________
> 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
>
>


-- 
look to the things around you,the immediate world around you, if you are
alive,it will mean something to you ??Paul Strand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090519/57c105d3/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