Multiple endpoints

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

 



Hello Alain,

Thanks for your help.

I changed it frmo 8 to 1000:

    pjsua_transport_data tpdata[100]; /**< Array of transports. */


cleaned, configured, make dep, make, make install, then rebuilt the python
module. Just as I did with removing the limitation of creating only one
type of endpoint.

But it is still failing... :(


DAvid




On Tue, Nov 10, 2015 at 7:23 AM, Alain Totouom <alain.totouom at gmx.de> wrote:

> Hi David,
>
> On 10/11/15 06:46, David Villasmil Govea wrote:
>
> Hello again Alain,
>
> That worked fine, but when trying to create more than 8 endpoints i get:
>
> tid ( 5068 ):  Exception: Object: Lib, operation=create_transport(),
> error=Too many objects of the specified type (PJ_ETOOMANY)
>
> I can't figure out how to remove the 8 Max limitation...
>
> Could you give me a hand?
>
> you'll have to alter the size of the *pjsua_transport_data* array tpdata
> in pjsua_internal.h to suit your need. It's defined in the *pjsua_data*
> data structure.
>
> Regards,
> Alain
>
> On Fri, Nov 6, 2015 at 10:50 AM, David Villasmil Govea <
> david.villasmil at gmail.com> wrote:
>
>> Hello Alain
>>
>> That works beautifully!
>> Thanks!
>>
>> David
>>
>> On Thu, Nov 5, 2015 at 5:01 PM, Alain Totouom < <alain.totouom at gmx.de>
>> alain.totouom at gmx.de> wrote:
>>
>>> Hi David,
>>>
>>> On 05/11/15 00:19, David Villasmil Govea wrote:
>>>
>>> Hello Alain,
>>>
>>> I'm getting
>>>
>>> tid:  00:15:47.504    tcplis:5060  SIP TCP listener ready for incoming
>>> connections at 192.168.1.35:5060
>>> <pjsua.TransportInfo instance at 0x101c54758>
>>> tid:  00:15:47.511    tcplis:5062  SIP TCP listener destroyed
>>> 00:15:47.511   pjsua_core.c  Error creating SIP TCP listener: Object
>>> with the same type exists (PJSIP_ETYPEEXISTS) [status=171002]
>>> Exception: Object: Lib, operation=create_transport(), error=Object with
>>> the same type exists (PJSIP_ETYPEEXISTS)
>>>
>>> When creating 2 listeners in python like this:
>>>
>>> print "tid: ",
>>> lib.create_transport(pj.TransportType.TCP,pj.TransportConfig(5060)).info()
>>> print "tid: ",
>>> lib.create_transport(pj.TransportType.TCP,pj.TransportConfig(5062)).info()
>>>
>>> Doesn't look like one can create 2 listeners of the same TYPE, meaning 2
>>> tcp listeners...
>>>
>>> Am I doing it wrong?
>>>
>>> did check the source code after reading [1].
>>>
>>> Please try the attached patch (one-liner) and send me a PM if necessary.
>>> It enables the creation/registration of multiple TCP listeners.
>>> The corresponding test within the transport manager is extended to the
>>> local already bounded addresses as well.
>>>
>>> Regards,
>>> Alain
>>>
>>> [1] https://trac.pjsip.org/repos/ticket/1019
>>>
>>>
>>> On Tue, Nov 3, 2015 at 12:32 AM, Alain Totouom < <alain.totouom at gmx.de>
>>> alain.totouom at gmx.de> wrote:
>>>
>>>> Hi David,
>>>>
>>>> On 02/11/15 23:28, David Villasmil Govea wrote:
>>>>
>>>> I tried that but i get:
>>>>
>>>> tid:  23:27:16.039   tcplis:65236  SIP TCP listener ready for incoming
>>>> connections at 192.168.1.38:65236
>>>> <pjsua.TransportInfo instance at 0x109cb57e8>
>>>> 23:27:16.515   tcplis:65237  SIP TCP listener destroyed
>>>> 23:27:16.515   pjsua_core.c  Error creating SIP TCP listener: Object
>>>> with the same type exists (PJSIP_ETYPEEXISTS) [status=171002]
>>>> Exception: Object: Lib, operation=create_transport(), error=Object with
>>>> the same type exists (PJSIP_ETYPEEXISTS)
>>>>
>>>> It looks like pjsip doesn't support multiple listeners...
>>>>
>>>> you can setup multiple transport objects within PJSIP as long as their
>>>> configurations are accurate. Those shouldn't share the same IP & Port &
>>>> Protocol type.
>>>>
>>>> Please check and adjust the *TransportConfig* objects used to customize
>>>> the transport settings like bound addresses, listening port numbers and
>>>> protocol types...
>>>>
>>>> Regards,
>>>> Alain
>>>>
>>>> On Mon, Nov 2, 2015 at 11:06 PM, Alain Totouom < <alain.totouom at gmx.de>
>>>> alain.totouom at gmx.de> wrote:
>>>>
>>>>> Hi David,
>>>>>
>>>>> On 11/02/2015 06:04 PM, David Villasmil Govea wrote:
>>>>> > I'm using pjsip python and I need to register 2 clients on the same
>>>>> sip > server but using DIFFERENT SOURCE PORTS. >
>>>>>
>>>>> create two different transport objects [1] and use those to
>>>>> send/receive your SIP messages with both accounts.
>>>>>
>>>>> Regards,
>>>>> Alain
>>>>>
>>>>> [1] <http://trac.pjsip.org/repos/wiki/Python_SIP/Settings>
>>>>> http://trac.pjsip.org/repos/wiki/Python_SIP/Settings
>>>>>
>>>>> --
>>>>> 1024D/A9F85A52 2000-01-18 Alain Totouom < <totouom at gmx.de>
>>>>> totouom at gmx.de>
>>>>> PGP Fingerprint DA18 0DF2 FBD2 5F67 0656 452D E3A2 7531 A9F8 5A52
>>>>>
>>>>>
>>>>> *Gesendet:* Montag, 02. November 2015 um 23:02 Uhr
>>>>> *Von:* "Bill Gardner" < <billg at wavearts.com>billg at wavearts.com>
>>>>> *An:*  <pjsip at lists.pjsip.org>pjsip at lists.pjsip.org
>>>>> *Betreff:* *** GMX Spamverdacht *** Re: [pjsip] Multiple endpoints
>>>>> Yes, I mean running two instances. I don't think you can set up pjsip
>>>>> to service multiple SIP ports. - Bill
>>>>>
>>>>> On 11/2/2015 3:54 PM, David Villasmil Govea wrote:
>>>>>
>>>>> Whe you say:
>>>>> for one client and --id=sip:name at ipaddr:port2 --local-port=port2 for
>>>>> the other client
>>>>>
>>>>> Do you mean running pjsua twice? What I need is to run one instance :(
>>>>>
>>>>> David
>>>>>
>>>>> On Mon, Nov 2, 2015 at 9:53 PM, David Villasmil Govea <
>>>>> <david.villasmil at gmail.com>david.villasmil at gmail.com> wrote:
>>>>>>
>>>>>> Thanks Bill...
>>>>>> Somehow emails were being sent to the span folder...
>>>>>>
>>>>>> I will actually try that, but only to see if PJSIP can actually
>>>>>> create multiple endpoint..
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> On Mon, Nov 2, 2015 at 9:42 PM, Bill Gardner < <billg at wavearts.com>
>>>>>> billg at wavearts.com> wrote:
>>>>>>>
>>>>>>> I dunno about pjsip python, but using pjsua I'd try --id=
>>>>>>> sip:name at ipaddr:port1 --local-port=port1 for one client and --id=
>>>>>>> sip:name at ipaddr:port2 --local-port=port2 for the other client,
>>>>>>> along with all the other options.
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Bill
>>>>>>>
>>>>>>> On 11/2/2015 3:29 PM, David Villasmil Govea wrote:
>>>>>>>
>>>>>>> Any help on this, guys?
>>>>>>>
>>>>>>> On Mon, Nov 2, 2015 at 6:04 PM, David Villasmil Govea <
>>>>>>> <david.villasmil at gmail.com>david.villasmil at gmail.com> wrote:
>>>>>>>>
>>>>>>>> Hello List,
>>>>>>>>
>>>>>>>> I'm using pjsip python and I need to register 2 clients on the same
>>>>>>>> sip server but using DIFFERENT SOURCE PORTS.
>>>>>>>>
>>>>>>>> Is this possible? If so, can anuyone point me in the right
>>>>>>>> direction?
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> --
>>>>>>>> DVG
>>>>>>>>
>>>>>>>> --
>>>>>>>> Imagination is more important than knowledge
>>>>>>>> Albert Einstein
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> DVG
>>>>>>>
>>>>>>> --
>>>>>>> Imagination is more important than knowledge
>>>>>>> Albert Einstein
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Visit our blog: http://blog.pjsip.org
>>>>>>>
>>>>>>> pjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Visit our blog: <http://blog.pjsip.org>http://blog.pjsip.org
>>>>>>>
>>>>>>> pjsip mailing list
>>>>>>> <pjsip at lists.pjsip.org>pjsip at lists.pjsip.org
>>>>>>> <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>
>>>>>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> DVG
>>>>>>
>>>>>> --
>>>>>> Imagination is more important than knowledge
>>>>>> Albert Einstein
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> DVG
>>>>>
>>>>> --
>>>>> Imagination is more important than knowledge
>>>>> Albert Einstein
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Visit our blog: http://blog.pjsip.org
>>>>>
>>>>> pjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>>>
>>>>>
>>>>> _______________________________________________ Visit our blog:
>>>>> <http://blog.pjsip.org>http://blog.pjsip.org pjsip mailing list
>>>>> <pjsip at lists.pjsip.org>pjsip at lists.pjsip.org
>>>>> <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>
>>>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>>>
>>>>> _______________________________________________
>>>>> Visit our blog: <http://blog.pjsip.org>http://blog.pjsip.org
>>>>>
>>>>> pjsip mailing list
>>>>> <pjsip at lists.pjsip.org>pjsip at lists.pjsip.org
>>>>> <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>
>>>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> DVG
>>>>
>>>> --
>>>> Imagination is more important than knowledge
>>>> Albert Einstein
>>>>
>>>>
>>>> _______________________________________________
>>>> Visit our blog: http://blog.pjsip.org
>>>>
>>>> pjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>>
>>>>
>>>> --
>>>> 1024D/A9F85A52      2000-01-18      Alain Totouom <totouom at gmx.de> <totouom at gmx.de>
>>>> PGP Fingerprint DA18 0DF2 FBD2 5F67 0656 452D E3A2 7531 A9F8 5A52
>>>>
>>>>
>>>> _______________________________________________
>>>> Visit our blog: <http://blog.pjsip.org>http://blog.pjsip.org
>>>>
>>>> pjsip mailing list
>>>> pjsip at lists.pjsip.org
>>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>>
>>>>
>>>
>>>
>>> --
>>> DVG
>>>
>>> --
>>> Imagination is more important than knowledge
>>> Albert Einstein
>>>
>>>
>>> _______________________________________________
>>> Visit our blog: http://blog.pjsip.org
>>>
>>> pjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>
>>>
>>> --
>>> 1024D/A9F85A52      2000-01-18      Alain Totouom <totouom at gmx.de> <totouom at gmx.de>
>>> PGP Fingerprint DA18 0DF2 FBD2 5F67 0656 452D E3A2 7531 A9F8 5A52
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>>
>> --
>> DVG
>>
>> --
>> Imagination is more important than knowledge
>> Albert Einstein
>>
>
>
>
> --
> DVG
>
> --
> Imagination is more important than knowledge
> Albert Einstein
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
> --
> 1024D/A9F85A52      2000-01-18      Alain Totouom <totouom at gmx.de> <totouom at gmx.de>
> PGP Fingerprint DA18 0DF2 FBD2 5F67 0656 452D E3A2 7531 A9F8 5A52
>
>
> _______________________________________________
> 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
>
>


-- 
DVG

-- 
Imagination is more important than knowledge
Albert Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20151110/be79f98f/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