A
A
Alexander Sklyarov2014-10-29 12:30:44
Asterisk
Alexander Sklyarov, 2014-10-29 12:30:44

Setting up FreePBX(Asterisk) and D-Link DPH-150S, where is the sound from the external channel?

There is a FreePBX server behind NAT (Zuxel hardware gateway with sip traffic forwarding enabled). On the server 1 interface with internal IP. Connected to it:
Sip Trunk to the provider.

host=0.0.0.1
username=0001234567
secret=password
type=peer
insecure=invite
dtmfmode=inband
disallow=all
allow=alaw&ulaw
nat=force_rport,comedia
directmedia=nonat
qualify=yes
canreinvite=no

D-Link DPH-150S phone and DVG-5402SP Gateway (remained from the provider)
extensions settings for them are identical
[101]
deny=0.0.0.0/0.0.0.0
secret=PassWord
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=pai
type=friend
nat=force_rport,comedia
port=5060
qualify=yes
qualifyfreq=60
transport=udp
avpf=no
icesupport=no
encryption=no
callgroup=
pickupgroup=
dial=SIP/101
mailbox=101@device
permit=0.0.0.0/0.0.0.0
callerid=<101>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic

A telephone is connected to the DVG-5402SP gateway, when calling from it to an external number, the connection works in both directions, and when calling from the DPH-150S, the sound goes out, but does not come.
When viewing tcpdump on the server, the following picture emerges:
When a connection is established, the packets go between everyone perfectly, you can see how they agree among themselves, the server and the provider, the gateway (or phone) and the server, but as soon as the connection is established
from the gateway, the packets go from server to the provider's PBX and to the gateway itself
from the phone - packets go from the server only to the provider's PBX, and from the phone there are packets to the server
. 10 hours of battles.
Where to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Sklyarov, 2014-10-30
@Voron095

The problem was somewhere in FreePBX, after reinstalling and setting from 0, everything worked

V
Vladimir, 2014-10-29
@rostel

directmedia=no
externip=external_ip
localnet=192.168.0.0/24

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question