2 EndPoint in same main

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

 



On Wed, Sep 10, 2008 at 2:47 PM, cedric leveque
<levequecedric at hotmail.com>wrote:

> hi,
>
> Can I create 2 Endpoint in same program, in the main ?
> In fact I need two session INVITE.
> In pjsimple_ua exemple, I create a new session INVITE when a new INVITE
> request incomming, but doing this cause assertion error.
> The second session is attached to the same EndPoint.
> So I'm trying to create a new EndPoint to use with second session INVITE
> like this :
>
>  /* Create global endpoint: */
>     {
> const char endpt_name2[] = "test";
>
>  status = pjsip_endpt_create(&cp2.factory, endpt_name2,
>         &g_endpt2);
>  PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1);
>     }
>
> cp2 and g_endpt2 are defined in the begining of file in the same way cp and
> g_endpt.
>
>
> All this to create a B2BUA, so I need to have two UA in same program or a
> program which managed two UA.
> I'm trying first two UA in same program.
>
>

Having two endpoints (or two stack instances) is not supported, and you
don't need to. Please see http://trac.pjsip.org/repos/wiki/FAQ#multi-stack

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