Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] PJSIP TLS sometimes RTP, sometimes no RTP


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





PostPosted: Tue Jan 19, 2016 3:20 pm    Post subject: [asterisk-users] PJSIP TLS sometimes RTP, sometimes no RTP Reply with quote

Hi,


I have a PJSIP account configured as below. I am testing with the Echo Test application on Asterisk 13 and using CSipSimple.


I can create a call with TLS and SRTP, however for some reason only 1 in every 5 calls has audio.


When I connect over WiFi, I have audio every single time. When I connect over 3G/4G I only get audio every now and then.


Sometimes pjsip shows: Probation passed - setting RTP source address to [public ip:port] and I get audio when using a mobile network.

Most of the time though asterisk shows it's playing the demo echotest file, but there doesn't appear to be any RTP and I hear no audio.


I'm using TLS and SRTP (SDES) Mandatory. I've tried various codecs too. I've tried STUN and ICE but with little luck.


Ideas would be greatly appreciated!


Thanks!



[someuser]
type=endpoint
context=some_context
disallow=all
allow=speex
allow=gsm
allow=alaw
allow=ulaw
allow=speex16
allow=speex32
allow=g722
auth=someuser
aors=someuser
direct_media=no
media_encryption=sdes
media_encryption_optimistic=yes
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
ice_support=yes  


[someuser]

type=auth
auth_type=userpass
password=[redacted]
username=someuser

[someuser]
type=aor
remove_existing=yes
max_contacts=1


Thanks


C
Back to top
george.joseph at fairv...
Guest





PostPosted: Tue Jan 19, 2016 6:06 pm    Post subject: [asterisk-users] PJSIP TLS sometimes RTP, sometimes no RTP Reply with quote

With the exception of media_encryption_optimistic=yes and ice_support  = no, my setup looks like yours and I'm not having any problems with CSipSimple, even with SRTP mode = mandatory.  I assume your server has a public IP address and there's no NAT involved on the server side?  Oddly enough, I have ICE and Aggressive ICE turned on in CSipSimple.


CSipSimple in the Play store is a little stale.  Have you tried the "nightly" version?


On Tue, Jan 19, 2016 at 1:20 PM, Chirag Desai <djchillerz@gmail.com (djchillerz@gmail.com)> wrote:
Quote:
Hi,


I have a PJSIP account configured as below. I am testing with the Echo Test application on Asterisk 13 and using CSipSimple.


I can create a call with TLS and SRTP, however for some reason only 1 in every 5 calls has audio.


When I connect over WiFi, I have audio every single time. When I connect over 3G/4G I only get audio every now and then.


Sometimes pjsip shows: Probation passed - setting RTP source address to [public ip:port] and I get audio when using a mobile network.

Most of the time though asterisk shows it's playing the demo echotest file, but there doesn't appear to be any RTP and I hear no audio.


I'm using TLS and SRTP (SDES) Mandatory. I've tried various codecs too. I've tried STUN and ICE but with little luck.


Ideas would be greatly appreciated!


Thanks!



[someuser]
type=endpoint
context=some_context
disallow=all
allow=speex
allow=gsm
allow=alaw
allow=ulaw
allow=speex16
allow=speex32
allow=g722
auth=someuser
aors=someuser
direct_media=no
media_encryption=sdes
media_encryption_optimistic=yes
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
ice_support=yes  


[someuser]

type=auth
auth_type=userpass
password=[redacted]
username=someuser

[someuser]
type=aor
remove_existing=yes
max_contacts=1


Thanks


C


--
_____________________________________________________________________
-- 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
djchillerz at gmail.com
Guest





PostPosted: Wed Jan 20, 2016 3:46 pm    Post subject: [asterisk-users] PJSIP TLS sometimes RTP, sometimes no RTP Reply with quote

Quote:
Hi George,I tried the nightly build and also Bria. I can replicate the same issue on both.This morning I made many successful calls in succession. This evening it was intermittent again.Could it be the mobile network is blocking the RTP but it seems odd it works sometimes and not others.That said I have another setup with Kamailio which talks to the same asterisk via pjsip. I get audio on this account every single time when using mobile networks. It's very strange. It seems like PJSIP simply doesn't set up the RTP when I connect to the asterisk directly.Any other suggestions?On Tue, Jan 19, 2016 at 5:05 PM, George Joseph <george.joseph at fairview5.com> wrote:> With the exception of media_encryption_optimistic=yes and ice_support =
Quote:
no, my setup looks like yours and I'm not having any problems with
CSipSimple, even with SRTP mode = mandatory. I assume your server has a
public IP address and there's no NAT involved on the server side? Oddly
enough, I have ICE and Aggressive ICE turned on in CSipSimple.

CSipSimple in the Play store is a little stale. Have you tried the
"nightly" version?

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