I’am sorry for my bad english )
I can’t find solutions for my problemm…
I wanna connect to over sip network for outgoing call hereinafter over_sip_sever
My server is behind 2 Network… is it
Providers networks is 10.246.0.0/16
and My local network 10.100.10.0/24 where asterisk server is 10.100.10.234
thus ip package go:
1 gw 2 gw
10.100.10.234->10.100.10.100->$prov_ip->overs_sip_server
iptables in 1gw (10.100.10.100)
Accept incoming udp at ports 10000:20000, 5060:5082. and return it in my asterisk server.
[code]my sip.conf
localhost asterisk # sed ‘/^;/d;/^$/d’ sip.conf
[general]
context=default
bindport=5060
allowguest=no
bindaddr=0.0.0.0
language=en
nat=yes
useragent=AsteriskPhone
canreinvite=no
register=username:password@sipnet.ru/username_id
[sipnet1]
type=friend
username=username
secret=password
callerid=sipnet
host=sipnet.ru
fromuser=username
fromdomain=sipnet.ru
dtmfmode=rfc2833
insecure=very
context=sipnet_call
disallow=all
allow=alaw
allow=ulaw
[201]
type=friend
host=dynamic
username=201
secret=201
dtmfmode=rfc2833
context=office
callerid=User2 <201>
allow=alaw
allow=ulaw
[/code]
Call is successful but problems in that there is no sound in both sides
=========================================================================
== Parsing ‘/etc/asterisk/asterisk.conf’: Found
== Parsing ‘/etc/asterisk/extconfig.conf’: Found
Connected to Asterisk 1.4.21.2 currently running on localhost (pid = 3481)
Verbosity is at least 4
– Executing [73852671675@office:1] SetCallerID(“SIP/201-081e8810”, ““SipPhone” <4861972>”) in new stack
– Executing [7xxxxxxxxx@office:2] Dial(“SIP/201-081e8810”, “SIP/sipnet1/7xxxxxxxxx|201”) in new stack
– Called sipnet1/7xxxxxxxxx
– SIP/sipnet1-081ed0b8 answered SIP/201-081e8810
– Packet2Packet bridging SIP/201-081e8810 and SIP/sipnet1-081ed0b8
localhost*CLI> rtp debug
RTP Debugging Enabled
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
Sent RTP P2P packet to 212.53.40.79:56820 (type 08, len 000160)
advise that I do? or 2 nat is not really
Thanks to all who could read this