Jack Bates
2010-Feb-19 01:19 UTC
[asterisk-users] directmedia/canreinvite/native bridging question
I've got several SIP clients with dynamic IP addresses Asterisk has one public and one private IP address SIP clients might connect to Asterisk from either the internet or the private network (192.168.1.255) - they're portable By default, directmedia/canreinvite is enabled and Asterisk sets up direct media connections between clients. In this case clients on the internet can make calls between each other, and clients on the private network can make calls between each other, but calls between clients on the internet and clients on the private network suffer from one way audio If I reconfigure Asterisk with directmedia=no then calls between all clients work, but all audio is relayed through Asterisk - even calls between clients in proximity to each other on the internet, but far away from Asterisk : ( I'd like Asterisk to set up direct media connections for calls between clients who're both on the internet, and for calls between clients who're both on the private network, but not set up direct media connections for calls between clients on the internet and clients on the private network I haven't yet figured out how to configure Asterisk to achieve this, and thought I'd ask here if it's possible I looked at directmedia=nonat, but AFAICT enabling this option won't set up direct media connections for calls between clients who're both on the private network? Does Asterisk support what I describe?
Philipp von Klitzing
2010-Feb-19 09:48 UTC
[asterisk-users] directmedia/canreinvite/native bridging question
Hi!> I'd like Asterisk to set up direct media connections for calls between > clients who're both on the internet, and for calls between clients > who're both on the private network, but not set up direct media > connections for calls between clients on the internet and clients on > the private networkThere is no easy solution available: Consider configuring two accounts/two lines per phone, and where possible use the local phone's diaplan to select the right one - with or without reinvite. Or next to your LAN PBX establish a remote/Internet PBX. Philipp
Possibly Parallel Threads
- Question about "directmedia" or "canreinvite" in sip.conf
- T.38 not working - help needed with log interpretation
- Native bridging to SIP endpoints on the same NAT'd network
- Selective canreinvite in multi-tenant environment
- No sound with internal calls depending on which phones