Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Multiple protocols for transport in PJSIP


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
cursor at telecomabmex...
Guest





PostPosted: Mon Feb 15, 2016 1:49 pm    Post subject: [asterisk-users] Multiple protocols for transport in PJSIP Reply with quote

Is it possible to use serveral protocols for a single transport
section in pjsip.con? In sip.conf you could use transport=udp,ws,wss so
you cound use webrtc along with your phones but if I try:

[transport-udp]
type=transport
protocol=udp,ws,wss
bind=0.0.0.0

I get an error that transport-udp is not found. Do I need a
dedicated interface for WebRTC?

[Feb 15 12:42:10] ERROR[3308]: res_pjsip.c:2432
sip_get_tpselector_from_endpoint: Unable to retrieve PJSIP transport
'transport-udp' for endpoint '4000'

--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
+52 (55)9116-91161

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jcolp at digium.com
Guest





PostPosted: Mon Feb 15, 2016 1:50 pm    Post subject: [asterisk-users] Multiple protocols for transport in PJSIP Reply with quote

Carlos Chavez wrote:
Quote:
Is it possible to use serveral protocols for a single transport section
in pjsip.con? In sip.conf you could use transport=udp,ws,wss so you
cound use webrtc along with your phones but if I try:

[transport-udp]
type=transport
protocol=udp,ws,wss
bind=0.0.0.0

No, each transport is for a specific protocol. You can have multiple.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
cursor at telecomabmex...
Guest





PostPosted: Mon Feb 15, 2016 1:58 pm    Post subject: [asterisk-users] Multiple protocols for transport in PJSIP Reply with quote

On 2/15/16 12:50 PM, Joshua Colp wrote:
Quote:
Carlos Chavez wrote:
Quote:
Is it possible to use serveral protocols for a single transport section
in pjsip.con? In sip.conf you could use transport=udp,ws,wss so you
cound use webrtc along with your phones but if I try:

[transport-udp]
type=transport
protocol=udp,ws,wss
bind=0.0.0.0

No, each transport is for a specific protocol. You can have multiple.

And how is this accomplished? If I put an extra transport section in
pjsip.conf it does not show with "pjsip show transports", I only see the
first. I also get an error in the log file:

[Feb 15 12:42:36] VERBOSE[4377] loader.c: Loading
res_pjsip_transport_websocket.so.
[Feb 15 12:42:36] VERBOSE[4377] loader.c:
res_pjsip_transport_websocket.so => (PJSIP WebSocket Transport Support)
[Feb 15 12:52:42] DEBUG[5793] res_sorcery_config.c: Using bucket size of
'1' for objects of type 'transport' from 'pjsip.conf'
[Feb 15 12:52:42] ERROR[5793] res_sorcery_config.c: Could not create an
object of type 'transport' with id 'transport-ws' from configuration
file 'pjsip.conf'

--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
+52 (55)9116-91161


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jcolp at digium.com
Guest





PostPosted: Mon Feb 15, 2016 2:09 pm    Post subject: [asterisk-users] Multiple protocols for transport in PJSIP Reply with quote

Carlos Chavez wrote:
Quote:
On 2/15/16 12:50 PM, Joshua Colp wrote:
Quote:
Carlos Chavez wrote:
Quote:
Is it possible to use serveral protocols for a single transport section
in pjsip.con? In sip.conf you could use transport=udp,ws,wss so you
cound use webrtc along with your phones but if I try:

[transport-udp]
type=transport
protocol=udp,ws,wss
bind=0.0.0.0

No, each transport is for a specific protocol. You can have multiple.

And how is this accomplished? If I put an extra transport section in
pjsip.conf it does not show with "pjsip show transports", I only see the
first. I also get an error in the log file:

[Feb 15 12:42:36] VERBOSE[4377] loader.c: Loading
res_pjsip_transport_websocket.so.
[Feb 15 12:42:36] VERBOSE[4377] loader.c:
res_pjsip_transport_websocket.so => (PJSIP WebSocket Transport Support)
[Feb 15 12:52:42] DEBUG[5793] res_sorcery_config.c: Using bucket size of
'1' for objects of type 'transport' from 'pjsip.conf'
[Feb 15 12:52:42] ERROR[5793] res_sorcery_config.c: Could not create an
object of type 'transport' with id 'transport-ws' from configuration
file 'pjsip.conf'


Without the precise configuration it's hard to answer, but in the case
of the Websocket one you don't need to create a transport. Provided
chan_sip doesn't have it enabled and loaded first then it will be
available when res_pjsip_transport_websocket is loaded.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
cursor at telecomabmex...
Guest





PostPosted: Mon Feb 15, 2016 3:06 pm    Post subject: [asterisk-users] Multiple protocols for transport in PJSIP Reply with quote

On 2/15/16 1:08 PM, Joshua Colp wrote:
Quote:
Carlos Chavez wrote:
Quote:
On 2/15/16 12:50 PM, Joshua Colp wrote:
Quote:
Carlos Chavez wrote:
Quote:
Is it possible to use serveral protocols for a single transport
section
in pjsip.con? In sip.conf you could use transport=udp,ws,wss so you
cound use webrtc along with your phones but if I try:

[transport-udp]
type=transport
protocol=udp,ws,wss
bind=0.0.0.0

No, each transport is for a specific protocol. You can have multiple.

And how is this accomplished? If I put an extra transport section in
pjsip.conf it does not show with "pjsip show transports", I only see the
first. I also get an error in the log file:

[Feb 15 12:42:36] VERBOSE[4377] loader.c: Loading
res_pjsip_transport_websocket.so.
[Feb 15 12:42:36] VERBOSE[4377] loader.c:
res_pjsip_transport_websocket.so => (PJSIP WebSocket Transport Support)
[Feb 15 12:52:42] DEBUG[5793] res_sorcery_config.c: Using bucket size of
'1' for objects of type 'transport' from 'pjsip.conf'
[Feb 15 12:52:42] ERROR[5793] res_sorcery_config.c: Could not create an
object of type 'transport' with id 'transport-ws' from configuration
file 'pjsip.conf'


Without the precise configuration it's hard to answer, but in the case
of the Websocket one you don't need to create a transport. Provided
chan_sip doesn't have it enabled and loaded first then it will be
available when res_pjsip_transport_websocket is loaded.

Ok, thank you. So, if for example I have my main transport
configured as:

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
local_net=192.168.2.0/24
external_media_address=XXX.XXX.XXX.XXX
external_signaling_address=XXX.XXX.XXX.XXX

Does that mean that I do not have to specify another transport
section with transport=ws?

--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
+52 (55)9116-91161


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jcolp at digium.com
Guest





PostPosted: Mon Feb 15, 2016 3:12 pm    Post subject: [asterisk-users] Multiple protocols for transport in PJSIP Reply with quote

Carlos Chavez wrote:

<snip>

Quote:
Ok, thank you. So, if for example I have my main transport configured as:

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
local_net=192.168.2.0/24
external_media_address=XXX.XXX.XXX.XXX
external_signaling_address=XXX.XXX.XXX.XXX

Does that mean that I do not have to specify another transport section
with transport=ws?

Correct, you don't.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services