TIPS Opensips No Audio

sstasterisk

Member
Joined
Jul 12, 2019
Messages
82
Reaction score
2
Exten to Exten dial works, but I receive no audio on both ends of the call
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,534
Reaction score
727
Cool story bro ;)

You should troubleshoot that by looking at the opensips logs as well as SIP captures.
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,534
Reaction score
727
Auth required is a normal part of the handshake; it is the proxy telling your phone that a password is required to make calls. Your phone replies with the username/password and the call proceeds. In the sngrep, take a look at the INVITE that is going from the proxy to the called phone. What IP address is being offered in the SDP portion of the INVITE (the lower portion; the IP address is on a line that starts with c= ) ? That is the IP address that the called phone will send the audio to. If it's the IP of the calling phone (that is, you are not using rtpproxy/rtpengine on your proxy to relay traffic), you need to make sure the phones can communicate directly with each other without being blocked by a firewall or NAT. If it's the IP of the proxy, you need to make sure rtpproxy is running so that your audio traffic is relayed.
 

sstasterisk

Member
Joined
Jul 12, 2019
Messages
82
Reaction score
2
Auth required is a normal part of the handshake; it is the proxy telling your phone that a password is required to make calls. Your phone replies with the username/password and the call proceeds. In the sngrep, take a look at the INVITE that is going from the proxy to the called phone. What IP address is being offered in the SDP portion of the INVITE (the lower portion; the IP address is on a line that starts with c= ) ? That is the IP address that the called phone will send the audio to. If it's the IP of the calling phone (that is, you are not using rtpproxy/rtpengine on your proxy to relay traffic), you need to make sure the phones can communicate directly with each other without being blocked by a firewall or NAT. If it's the IP of the proxy, you need to make sure rtpproxy is running so that your audio traffic is relayed.
Right this moment traveling, no reliable internet connection, but here is my /etc/default/rtpproxy https://pastebin.com/ybc20Q8D

Ip address matches public ip address
 

sstasterisk

Member
Joined
Jul 12, 2019
Messages
82
Reaction score
2
@billsimon ok, i think i've found the area to which your referring, i've now been able to get audio one way from the initial caller, but not from the receiver's end.
 

sstasterisk

Member
Joined
Jul 12, 2019
Messages
82
Reaction score
2
Not sure if in the cp my rtpproxy and rtpengine, is supposed to be blank.
 

Attachments

  • 20190908_085655.jpg
    20190908_085655.jpg
    174.4 KB · Views: 6
  • 20190908_085731.jpg
    20190908_085731.jpg
    177.2 KB · Views: 4

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,534
Reaction score
727
If you are using rtpproxy then opensips needs to know about it.

In your /etc/default/rtpproxy it shows that rtpproxy is listening on "udp:127.0.0.1:7890" for the control socket.

In your CP in the rtpproxy section add that as the control socket and reload.
 

sstasterisk

Member
Joined
Jul 12, 2019
Messages
82
Reaction score
2
have tested a couple calls back and forth, from friends in different areas, and its working, the only issue now is how to call other networks such as linphone or sip2sip, etc?
 

sstasterisk

Member
Joined
Jul 12, 2019
Messages
82
Reaction score
2
@billsimon I think this would be the last concern, I can't figure out how to dial other networks, such as linphone or sip2sip or demo.nerdvittles.com
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,534
Reaction score
727
You can set up those domains as gateways in the dynamic routing module. (NV article: http://nerdvittles.com/?p=29316) You can also dial them directly by putting the whole SIP URI into your phone. That's one idea behind using a proxy vs. a PBX which assumes that all SIP INVITEs are targeted to itself.
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,534
Reaction score
727
Sorry, don't really want to dig into the weeds on this. You have the right idea at this point. Investigate that 500 error from your provider to figure out why they are rejecting your call & maybe work with them if it's not clear.
 

sstasterisk

Member
Joined
Jul 12, 2019
Messages
82
Reaction score
2
Ok, thanks maybe you can point me in a direction of why my sip client says it's a bad destination.
 

Members online

No members online now.

Forum statistics

Threads
25,782
Messages
167,509
Members
19,202
Latest member
pbxnewguy
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top