m a elastix and gui user,and now i1m trying to work on asterisk,so im new user here
i follow the asterisk o
relly ebook third edition and now i installed asterisk,dadhi and libpri on a vm machin now i want to creat new user and test it,but it dosnt register by softphone (zoiper and x-lite)
i creat sip.conf and extention.conf in /etc/asterisk
here is my sip.conf configuration (like o`relly ebook):
context=unauthenticated ; default context for incoming calls
allowguest=no ; disable unauthenticated calls
srvlookup=yes ; enabled DNS SRV record lookup on outbound calls
udpbindaddr=0.0.0.0 ; listen for UDP requests on all interfaces
tcpenable=no ; disable TCP support
office-phone ; create a template for our devices
type=friend ; the channel driver will match on username first, IP second
context=LocalSets ; this is where calls from the device will enter the dialplan
host=dynamic ; the device will register with asterisk
nat=yes ; assume device is behind NAT
; *** NAT stands for Network Address Translation, which allows
; multiple internal devices to share an external IP address.
secret=s3CuR#p@s5 ; a secure password for this device – DON’T USE THIS PASSWORD!
dtmfmode=auto ; accept touch-tones from the devices, negotiated automatically
disallow=all ; reset which voice codecs this device will accept or offer
allow=ulaw ; which audio codecs to accept from, and request to, the device
allow=alaw ; in the order we prefer
; define a device name and use the office-phone template
; define another device name using the same template
and here is my extention.conf
exten => 100,1,Dial(SIP/0000FFFF0001) ; Replace 0000FFFF0001 with your device name
exten => 101,1,Dial(SIP/0000FFFF0002) ; Replace 0000FFFF0002 with your device name
; These will allow you to dial each of the 4 analog phones configured
; in the previous section.
exten => 102,1,Dial(DAHDI/1)
exten => 103,1,Dial(DAHDI/2)
exten => 104,1,Dial(DAHDI/3)
exten => 105,1,Dial(DAHDI/4)
exten => 200,1,Answer()
same => n,Playback(hello-world)
same => n,Hangup()
i dont know i`m right,please say me 1-in softphone which username and password should i inter? username= 100 and secret = s3CuR#p@s5 or username = 0000FFFF0001 ???
2- i tryed all model above (0000FFFF0001 or 100 ) but it is always in registering mode
i reloded chan_sip.so module also
how can i find the problem ?
thank you for your attention