Carlos Chavez
2016-Feb-15 18:48 UTC
[asterisk-users] Multiple protocols for transport in PJSIP
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
Joshua Colp
2016-Feb-15 18:50 UTC
[asterisk-users] Multiple protocols for transport in PJSIP
Carlos Chavez wrote:> 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.0No, 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
Carlos Chavez
2016-Feb-15 18:58 UTC
[asterisk-users] Multiple protocols for transport in PJSIP
On 2/15/16 12:50 PM, Joshua Colp wrote:> Carlos Chavez wrote: >> 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