Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No audio on Asterisk SIP call

I almost managed to init a 2 sided call (click to call): 1st to my office and the 2nd to my cell using Michal Niklas answer (thanks Michal) on Asterisk click to call.

The major ISSUE is that the 2 call participants can not hear one each other, I used from-internal context for both of them. The system status web UI shows me 4 active channels and 2 external calls when the call is connected with both sides.

I configured the Channel: local/MY OFFICE PHONE@from-internal Extension: MY CELL PHONE

when I set the Channel to Sip/1 and check it with soft phone it works great!

Thanks for helping...

like image 862
Sam Avatar asked Apr 05 '11 16:04

Sam


2 Answers

In my case, I had to go change the chan sip settings (freepbx.tld/admin/config.php?display=sipsettings) from nat to route

enter image description here

like image 144
Pedro Lobito Avatar answered Oct 22 '22 08:10

Pedro Lobito


seems to be NAT issue. here are some suggestions for sip.conf

put nat=yes in user definition and in [general] tag, put externip and localnet

e.g.

[general]
externip=<your global IP>
localnet=192.168.2.0/255.255.0.0
like image 41
Suresh Kumar Avatar answered Oct 22 '22 07:10

Suresh Kumar