Hello,
I have installed Asterisk11 in my PC and I managed to register two SIP clients locally. Now, I am facing a big issue because I want to register a remote SIP client in my local Asterisk server, but I failed to make this.
Could anyone help me how to solve this problem?
Here you are my sip.conf and extension.conf configurations:
------------sip.conf-------------
[general]
port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all ; disallow all codecs
allaw=ulaw
allaw=alaw
allow=gsm
externip=41.230.47.xx ; IP of my router
localnet=192.168.1.0/255.255.255.0
nat=yes
qualify=yes
[local_pc1] ;local PC
type=friend
username=local_pc1
secret=1234
host=dynamic
context=from-sip
nat=yes
[local_pc2] ; local PC
type=friend
username=local_pc2
secret=4321
host=dynamic
context=from-sip
nat=yes
[external_pc] ; remote PC
type=friend
username=external_pc
secret=12345
host=dynamic
context=from-sip
nat=yes
-------extensions.conf-----------
[general]
static=yes ; These two lines prevent the command-line interface
writeprotect=yes ; from overwriting the config file. Leave them here.
[from-sip]
exten => 1234,1,Dial(SIP/local_pc1,30)
exten => 4567,1,Dial(SIP/local_pc2,30)
exten => 6789,1,Dial(SIP/external_pc,30)