Turning on canreinvite

jades

Guru
Joined
Oct 6, 2008
Messages
160
Reaction score
0
I have been playing around with canreinvite=yes the past few days to see if I can stop using asterisk for media and instead get the audio directly from the carrier. If it makes a difference, I know for a fact that my carrier is passing audio from their carrier. I can also prove it from looking at the sip debug.

At what level (trunk, extension or both) does canreinvite=yes need to be set? And once it is set how can I tell if it works?

Thanks in advance
 

dswartz

Guru
Joined
Feb 17, 2009
Messages
1,056
Reaction score
0
Not sure about #1. For #2, start a call, and run a packet trace on your endpoint's IP and see who the RTP packets are being exchanged with.
 

Lost Trunk

Guru
Joined
Aug 5, 2008
Messages
228
Reaction score
0
While canreinvite seems like a great idea, my impression is that the actual implementation sucks, and that is the fault of the designers of the SIP protocol and not Asterisk. Anyway, before you try it, you may want to read these so you know what you're getting into:

http://lists.digium.com/pipermail/asterisk-doc/2004-June/000547.html
http://www.voip-info.org/wiki/view/Asterisk+sip+canreinvite
http://www.voip-info.org/wiki/view/Asterisk+sip+directrtpsetup

However, if you DO get it to work (and get audio to pass in both directions), I hope you will come back and report how you did it, particularly if your server and/or your endpoint(s) are behind a NAT firewall (such as a consumer-grade router).
 

jades

Guru
Joined
Oct 6, 2008
Messages
160
Reaction score
0
I am in nat and it didn't work. Looking at the sip debug I see that the server finds my ATA's local IP for audio; it is not using my ATA's public IP. The ATA and PBX are not on the same network.
 

jades

Guru
Joined
Oct 6, 2008
Messages
160
Reaction score
0
I played around with a system that isn't behind NAT. I did a tcpdump and I see three different IP addresses.

One is coming from my server itself and that one is visible throughout the entire dump
Then I have the IP of my carrier that is visible at some instances and then another IP which I traced and it seems it is located in NYC (exactly where the server is located). So I assume that reinvite worked? Or could it just be that my carrier has successfully passed the audio from their carrier and now my machine is handling it from there?
 

Members online

No members online now.

Forum statistics

Threads
25,854
Messages
168,013
Members
19,272
Latest member
gabi21
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