Hi everyone, need help.
I have an Asterisk /Debian Linux server with two interfaces. eth0 with service provider and eth1 for my clients with dhcp.
Clients in local network can make calls between them successfully but when I tried calls to VoIP Service Provider can not be established.
The Service Provider brings me an ip address (softswitch address). X.X.X.X This is my configuration (by the way this not a registration configuration, just ip address conf.):
sip.conf
[general]
canreinvite=no
dtmfmode=rfc2833
host=X.X.X.X
insecure=invite,port
port=5060
qualify=yes
type=friend
[myserviceprovider]
type=peer
context=incoming_calls
host=X.X.X.X
fromdomain=X.X.X.X
fromuser=X.X.X.X
insecure=invite,port
canreinvite=no
disallow=all
allow=alaw
[25928150]
type=friend
host=dynamic ;
insecure=port,invite ;
context=phones ;
allow=all
[25928151]
type=friend
host=dynamic ;
insecure=port,invite ;
context=phones ;
allow=all
extensions.conf
[globals]
[general]
autofallthrough=yes
[default]
[incoming_calls]
exten => _X.,n,Dial(SIP/25928150)
exten => _X.,n,Hangup()
exten => _X.,n,Dial(SIP/25928151)
exten => _X.,n,Hangup()
[outgoing_calls]
exten => _X.,n,Dial(SIP/${EXTEN}@10.181.1.11)
exten => _X.,n,Hangup()
[internal]
exten => _X.,1,NoOp()
exten => _X.,n,Dial(SIP/${EXTEN},60)
exten => _X.,n,Hangup()
[phones]
include => internal
include => outgoing_calls
if can bring me any help, would be really apreciate it (sorry for my english )