I am very new to asterisk. However, I am using the book Asterisk the definitive guide.
I want to set up two softphones within my system so that I can do some testing. I have created the SIP.conf modules.conf and the extensions.conf.
I am running asterisk 11 on a Ubuntu server.
I am running asterisk using the concole. " asterisk -cvvvvv"
These are the modules loaded
*CLI> module show
Module Description Use Count
app_dial.so Dialing Application 0
chan_local.so Local Proxy Channel (Note: used internal 0
chan_sip.so Session Initiation Protocol (SIP) 0
codec_gsm.so GSM Coder/Decoder 0
codec_ulaw.so mu-Law Coder/Decoder 0
res_crypto.so Cryptographic Digital Signatures 0
res_http_websocket.so HTTP WebSocket Support 0
res_rtp_asterisk.so Asterisk RTP Stack 0
8 modules loaded
I am getting the following error message when I attempt to register the softphone from my MAC computer.
[Jul 5 17:00:19] NOTICE[18421]: chan_sip.c:27829 handle_request_register: Registration from '"ivan"<sip:ivan@192.168.1.185;transport=UDP>' failed for '192.168.1.12:5060' - Wrong password
Here is my sip.conf
[general]
context=unauthenticated ; default context for incoming calls
allowguest=no ; disable unauthenticated calls
srvlookup=no ; disable DNS SRV record lookup on outbound calls
; (unless you have a reliable DNS connection,
; in which case yes)
udpbindaddr=0.0.0.0 ; listen for UDP requests on all interfaces
tcpenable=no ; disable TCP support
;
;
[softphone](!) ; create a template for our devices
type=friend ; the channel driver will match on username first,
; IP second
context=softphone ; this is where calls from the device will enter
; the dialplan
host=dynamic ; the device will register with asterisk
nat=force_rport,comedia ; assume device is behind NAT
; *** NAT stands for Network Address Translation,
; which allows multiple internal devices to share an
; external IP address.
dtmfmode=auto ; accept touch-tones from the devices, negotiated
; automatically
disallow=all ; reset which voice codecs this device will accept or offer
allow=g722 ; audio codecs to accept from, and request to, the device
allow=ulaw ; in the order we prefer
allow=alaw ;
;
;
[tp_local_100](softphone) ; test account 1
username=ivan ;
secret=pwivan12 ;
[tp_local_101](softphone) ; test account 2
username=bob ;
secret=pwbob34 ;
I am using Zoiper to make the call. This softphone only requires the following
IP address - {my local ip address} 192.168.1.185
username - ivan
password - pwivan12
Auth. username - ivan
Why would I be getting a wrong password error during registration? The password is correct.
Is the username/password formatted correctly? How can I check the format of the authentication?
Do I need to reload something or save the configuration?