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
Any help on this, guys?
On Mon, Nov 2, 2015 at 6:04 PM, David Villasmil Govea <
david.villasmil@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
I dunno about pjsip python, but using pjsua I'd try
--id=sip:name@ipaddr:port1 --local-port=port1 for one client and
--id=sip:name@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@gmail.com mailto:david.villasmil@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 list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
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@wavearts.com wrote:
I dunno about pjsip python, but using pjsua I'd try --id=
sip:name@ipaddr:port1 --local-port=port1 for one client and --id=
sip:name@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@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
DVG
--
Imagination is more important than knowledge
Albert Einstein
Whe you say:
for one client and --id=sip:name@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@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@wavearts.com wrote:
I dunno about pjsip python, but using pjsua I'd try --id=
sip:name@ipaddr:port1 --local-port=port1 for one client and --id=
sip:name@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@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
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
That doesn't do it either...
i should point out i'm using tcp
On Mon, Nov 2, 2015 at 9:54 PM, David Villasmil Govea <
david.villasmil@gmail.com> wrote:
Whe you say:
for one client and --id=sip:name@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@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@wavearts.com wrote:
I dunno about pjsip python, but using pjsua I'd try --id=
sip:name@ipaddr:port1 --local-port=port1 for one client and --id=
sip:name@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@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
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
--
DVG
--
Imagination is more important than knowledge
Albert Einstein
That doesn't do it either...
:(
On Mon, Nov 2, 2015 at 9:54 PM, David Villasmil Govea <
david.villasmil@gmail.com> wrote:
Whe you say:
for one client and --id=sip:name@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@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@wavearts.com wrote:
I dunno about pjsip python, but using pjsua I'd try --id=
sip:name@ipaddr:port1 --local-port=port1 for one client and --id=
sip:name@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@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
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
--
DVG
--
Imagination is more important than knowledge
Albert Einstein
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@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@gmail.com mailto:david.villasmil@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@wavearts.com
<mailto:billg@wavearts.com>> wrote:
I dunno about pjsip python, but using pjsua I'd try
--id=sip:name@ipaddr:port1 --local-port=port1 for one client
and --id=sip:name@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@gmail.com
<mailto:david.villasmil@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 list
pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org <mailto: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 list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
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
--
1024D/A9F85A52 2000-01-18 Alain Totouom <totouom@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@wavearts.com>
An: pjsip@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=<a style="color: rgb(34,34,34);font-size: 12.8px;">sip:name@ipaddr:port2</a> --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@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@wavearts.com> wrote: > I dunno about pjsip python, but using pjsua I'd try --id=<a>sip:name@ipaddr:port1</a> --local-port=port1 for one client and --id=<a>sip:name@ipaddr:port2</a> --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@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: <a href="http://blog.pjsip.org" target="_blank">http://blog.pjsip.org</a> pjsip mailing list <a href="pjsip@lists.pjsip.org" target="_parent">pjsip@lists.pjsip.org</a> <a href="http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org" target="_blank">http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org</a>_______________________________________________
Visit our blog: http://blog.pjsip.orgpjsip mailing list
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: <a class="moz-txt-link-freetext" href="http://blog.pjsip.org" target="_blank">http://blog.pjsip.org</a> pjsip mailing list <a class="moz-txt-link-abbreviated" href="pjsip@lists.pjsip.org" target="_parent">pjsip@lists.pjsip.org</a> <a class="moz-txt-link-freetext" href="http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org" target="_blank">http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org</a>
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Hello Alain,
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...
On Mon, Nov 2, 2015 at 11:06 PM, Alain Totouom alain.totouom@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
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@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@wavearts.com
An: pjsip@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@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@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@wavearts.com wrote:
I dunno about pjsip python, but using pjsua I'd try --id=
sip:name@ipaddr:port1 --local-port=port1 for one client and --id=
sip:name@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@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________ Visit our blog:
http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
DVG
--
Imagination is more important than knowledge
Albert Einstein
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 http://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@gmx.de
mailto:alain.totouom@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
--
1024D/A9F85A52 2000-01-18 Alain Totouom <totouom@gmx.de
<mailto:totouom@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@wavearts.com <mailto:billg@wavearts.com>>
*An:* pjsip@lists.pjsip.org <mailto:pjsip@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@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@gmail.com <http://david.villasmil@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@wavearts.com <http://billg@wavearts.com>> wrote:
I dunno about pjsip python, but using pjsua I'd try
--id=sip:name@ipaddr:port1 --local-port=port1 for one
client and --id=sip:name@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@gmail.com
<http://david.villasmil@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 list
pjsip@lists.pjsip.org <http://pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org <http://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 list
pjsip@lists.pjsip.org <http://pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________ Visit our blog:
http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org
<mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org <mailto: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 list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de
PGP Fingerprint DA18 0DF2 FBD2 5F67 0656 452D E3A2 7531 A9F8 5A52
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?
On Tue, Nov 3, 2015 at 12:32 AM, Alain Totouom alain.totouom@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@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
--
1024D/A9F85A52 2000-01-18 Alain Totouom < totouom@gmx.detotouom@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@wavearts.combillg@wavearts.com>
An: pjsip@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@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 <
http://david.villasmil@gmail.comdavid.villasmil@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 <
http://billg@wavearts.combillg@wavearts.com> wrote:
I dunno about pjsip python, but using pjsua I'd try --id=
sip:name@ipaddr:port1 --local-port=port1 for one client and --id=
sip:name@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 <
http://david.villasmil@gmail.comdavid.villasmil@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.orghttp://blog.pjsip.org
pjsip mailing list
http://pjsip@lists.pjsip.orgpjsip@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________ Visit our blog:
http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de totouom@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
DVG
--
Imagination is more important than knowledge
Albert Einstein
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 http://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
On Tue, Nov 3, 2015 at 12:32 AM, Alain Totouom <alain.totouom@gmx.de
mailto:alain.totouom@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
<http://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@gmx.de <mailto:alain.totouom@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
--
1024D/A9F85A52 2000-01-18 Alain Totouom <totouom@gmx.de
<mailto:totouom@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@wavearts.com
<mailto:billg@wavearts.com>>
*An:* pjsip@lists.pjsip.org <mailto:pjsip@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@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@gmail.com
<mailto:david.villasmil@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@wavearts.com <mailto:billg@wavearts.com>> wrote:
I dunno about pjsip python, but using pjsua I'd
try --id=sip:name@ipaddr:port1 --local-port=port1
for one client and --id=sip:name@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@gmail.com
<mailto:david.villasmil@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 list
pjsip@lists.pjsip.org
<http://pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org <mailto: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 list
pjsip@lists.pjsip.org <http://pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________ Visit our
blog: http://blog.pjsip.org pjsip mailing list
pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org <mailto: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 list
pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom<totouom@gmx.de> <mailto:totouom@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@lists.pjsip.org <mailto: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 list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de
PGP Fingerprint DA18 0DF2 FBD2 5F67 0656 452D E3A2 7531 A9F8 5A52
Hello Alain
That works beautifully!
Thanks!
David
On Thu, Nov 5, 2015 at 5:01 PM, Alain Totouom alain.totouom@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@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@gmx.de
alain.totouom@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
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@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@wavearts.combillg@wavearts.com>
An: pjsip@lists.pjsip.orgpjsip@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@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@gmail.comdavid.villasmil@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@wavearts.com
billg@wavearts.com> wrote:
I dunno about pjsip python, but using pjsua I'd try --id=
sip:name@ipaddr:port1 --local-port=port1 for one client and --id=
sip:name@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@gmail.comdavid.villasmil@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.orghttp://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.orgpjsip@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________ Visit our blog:
http://blog.pjsip.orghttp://blog.pjsip.org pjsip mailing list
pjsip@lists.pjsip.orgpjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de totouom@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@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de totouom@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
DVG
--
Imagination is more important than knowledge
Albert Einstein
Hello all!
I need to get status code of connection to SIP server.
š
I try to use -š
š
static void on_reg_state2(pjsua_acc_id acc_id, pjsua_reg_info *info) {
šš š
š š //info->cbparam->code;
šš š
š š intšst_cd = info->cbparam->code;
}
š
but it crashed with EXC_BAD_ACCESS onššintšst_cd = info->cbparam->code; row.
What I'm doing wrong?
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?
Thanks
David
On Fri, Nov 6, 2015 at 10:50 AM, David Villasmil Govea <
david.villasmil@gmail.com> wrote:
Hello Alain
That works beautifully!
Thanks!
David
On Thu, Nov 5, 2015 at 5:01 PM, Alain Totouom alain.totouom@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@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@gmx.de
alain.totouom@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
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@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@wavearts.combillg@wavearts.com>
An: pjsip@lists.pjsip.orgpjsip@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@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@gmail.comdavid.villasmil@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@wavearts.com
billg@wavearts.com> wrote:
I dunno about pjsip python, but using pjsua I'd try --id=
sip:name@ipaddr:port1 --local-port=port1 for one client and --id=
sip:name@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@gmail.comdavid.villasmil@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.orghttp://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.orgpjsip@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________ Visit our blog:
http://blog.pjsip.orghttp://blog.pjsip.org pjsip mailing list
pjsip@lists.pjsip.orgpjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de totouom@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@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de totouom@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@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
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@gmail.com mailto:david.villasmil@gmail.com> wrote:
Hello Alain
That works beautifully!
Thanks!
David
On Thu, Nov 5, 2015 at 5:01 PM, Alain Totouom
<alain.totouom@gmx.de <mailto:alain.totouom@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
<http://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@gmx.de <mailto:alain.totouom@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
<http://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@gmx.de <mailto:alain.totouom@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
--
1024D/A9F85A52 2000-01-18 Alain Totouom
<totouom@gmx.de <mailto:totouom@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@wavearts.com
<mailto:billg@wavearts.com>>
*An:* pjsip@lists.pjsip.org
<mailto:pjsip@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@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@gmail.com
<mailto:david.villasmil@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@wavearts.com
<mailto:billg@wavearts.com>> wrote:
I dunno about pjsip python, but using
pjsua I'd try --id=sip:name@ipaddr:port1
--local-port=port1 for one client and
--id=sip:name@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@gmail.com
<mailto:david.villasmil@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 list
pjsip@lists.pjsip.org
<http://pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
<mailto: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 list
pjsip@lists.pjsip.org <http://pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org pjsip mailing
list pjsip@lists.pjsip.org
<mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org <mailto: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 list
pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom<totouom@gmx.de> <mailto:totouom@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@lists.pjsip.org <mailto: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 list
pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom<totouom@gmx.de> <mailto:totouom@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@lists.pjsip.org <mailto: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 list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de
PGP Fingerprint DA18 0DF2 FBD2 5F67 0656 452D E3A2 7531 A9F8 5A52
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@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@gmail.com> wrote:
Hello Alain
That works beautifully!
Thanks!
David
On Thu, Nov 5, 2015 at 5:01 PM, Alain Totouom < alain.totouom@gmx.de
alain.totouom@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@gmx.de
alain.totouom@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@gmx.de
alain.totouom@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@gmx.de
totouom@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@wavearts.combillg@wavearts.com>
An: pjsip@lists.pjsip.orgpjsip@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@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@gmail.comdavid.villasmil@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@wavearts.com
billg@wavearts.com> wrote:
I dunno about pjsip python, but using pjsua I'd try --id=
sip:name@ipaddr:port1 --local-port=port1 for one client and --id=
sip:name@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@gmail.comdavid.villasmil@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.orghttp://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.orgpjsip@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________ Visit our blog:
http://blog.pjsip.orghttp://blog.pjsip.org pjsip mailing list
pjsip@lists.pjsip.orgpjsip@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.orghttp://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.orgpjsip@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de totouom@gmx.de
PGP Fingerprint DA18 0DF2 FBD2 5F67 0656 452D E3A2 7531 A9F8 5A52
Visit our blog: http://blog.pjsip.orghttp://blog.pjsip.org
pjsip mailing list
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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de totouom@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@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@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de totouom@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
DVG
--
Imagination is more important than knowledge
Albert Einstein
Hi David,
On 10/11/15 14:48, David Villasmil Govea wrote:
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... :(
which platform dependent IO queue implementation are you using?
If you want to use|support more than 64 listeners of the same type,
you'll have to adjust PJ_IOQUEUE_MAX_HANDLES (config_site.h) as well
and whenever possible, avoid using the least efficient select based IO
queue implementation.
Please check ioqueue.h for in-depth information...
Regards,
Alain
On Tue, Nov 10, 2015 at 7:23 AM, Alain Totouom <alain.totouom@gmx.de
mailto:alain.totouom@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@gmail.com <mailto:david.villasmil@gmail.com>> wrote:
Hello Alain
That works beautifully!
Thanks!
David
On Thu, Nov 5, 2015 at 5:01 PM, Alain Totouom
<alain.totouom@gmx.de <mailto:alain.totouom@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
<http://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@gmx.de <mailto:alain.totouom@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 <http://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@gmx.de
<mailto:alain.totouom@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
--
1024D/A9F85A52 2000-01-18 Alain Totouom
<totouom@gmx.de <mailto:totouom@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@wavearts.com
<mailto:billg@wavearts.com>>
*An:* pjsip@lists.pjsip.org
<mailto:pjsip@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@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@gmail.com
<mailto:david.villasmil@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@wavearts.com
<mailto:billg@wavearts.com>> wrote:
I dunno about pjsip python, but
using pjsua I'd try
--id=sip:name@ipaddr:port1
--local-port=port1 for one client
and --id=sip:name@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@gmail.com
<mailto:david.villasmil@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 list
pjsip@lists.pjsip.org
<http://pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
<mailto: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 list
pjsip@lists.pjsip.org
<http://pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org pjsip
mailing list pjsip@lists.pjsip.org
<mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
<mailto: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 list
pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom<totouom@gmx.de> <mailto:totouom@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@lists.pjsip.org <mailto: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 list
pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom<totouom@gmx.de> <mailto:totouom@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@lists.pjsip.org <mailto: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 list
pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom<totouom@gmx.de> <mailto:totouom@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@lists.pjsip.org <mailto: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 list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
1024D/A9F85A52 2000-01-18 Alain Totouom totouom@gmx.de
PGP Fingerprint DA18 0DF2 FBD2 5F67 0656 452D E3A2 7531 A9F8 5A52