Hi everyone. I’m a brand new Asterisk user, and unable to get it configured correctly. I have SIP service through inphonex.com (they have basic instructions here: inphonex.com/support/sample- … ration.php)
I’m sure I’m missing something pretty basic… I’ve read the setup docs but I don’t understand everything.
Running on CENTOS.
What I need to do is configure outbound calling through the SIP provider. I don’t need inbound.
My inphonex number: 1231234
My inphonex password: mypass
My sip.conf has the default (mostly commented out) code, followed by:
[general]
register => 1231234:mypass@sip.inphonex.com
[inphonex]
username=1231234
type=peer
secret=mypass
host=sip.inphonex.com
fromuser=1231234
fromdomain=sip.inphonex.com
context=from-inphonex
canreinvite=no
[sip.inphonex.com]
username= 1231234
user= 1231234
type=friend
insecure=very
host=sip.inphonex.com
fromdomain=sip.inphonex.com
context=from-pstn
My extensions.conf is the default file followed by:
[outgoing_inphonex]
exten => _7.,1,SetCallerID,"foo"
exten => _7.,2,Dial(SIP/from-inphonex/${EXTEN:1}@sip.inphonex.com,30,r)
exten => _7.,3,Hangup
asterisk.conf is the default file.
asterisk starts up ok, but with a few warnings & errors:
[Sep 28 16:31:12] NOTICE[16949] cdr.c: CDR simple logging enabled.
[Sep 28 16:31:13] NOTICE[16949] loader.c: 167 modules will be loaded.
[Sep 28 16:31:13] NOTICE[16949] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Sep 28 16:31:13] WARNING[16949] res_config_ldap.c: No directory user found, anonymous binding as default.
[Sep 28 16:31:13] ERROR[16949] res_config_ldap.c: No directory URL or host found.
[Sep 28 16:31:13] NOTICE[16949] res_config_ldap.c: Cannot load LDAP RealTime driver.
[Sep 28 16:31:13] NOTICE[16949] config.c: Registered Config Engine curl
[Sep 28 16:31:13] WARNING[16949] translate.c: plc_samples 160 format f
[Sep 28 16:31:13] NOTICE[16949] pbx_ael.c: Starting AEL load process.
[Sep 28 16:31:13] NOTICE[16949] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[Sep 28 16:31:13] NOTICE[16949] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[Sep 28 16:31:13] NOTICE[16949] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Sep 28 16:31:13] NOTICE[16949] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Sep 28 16:31:13] NOTICE[16949] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
[Sep 28 16:31:13] NOTICE[16949] chan_skinny.c: Configuring skinny from skinny.conf
[Sep 28 16:31:13] NOTICE[16949] chan_sip.c: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser'
[Sep 28 16:31:13] WARNING[16949] chan_sip.c: Unknown insecure mode 'very' on line 1114
[Sep 28 16:31:13] WARNING[16949] utils.c: trying to reset empty pool
[Sep 28 16:31:13] WARNING[16949] utils.c: trying to reset empty pool
[Sep 28 16:31:13] WARNING[16949] utils.c: trying to reset empty pool
To (try to) initiate a call, I’m using a .call file in asterisk’s var/spool/asterisk/output
Channel: SIP/inphonex
MaxRetries: 0
RetryTime: 60
WaitTime: 30
Context: from-inphonex
Extension: 15089999999 ;[the number to call]
Priority: 1
When it processes that file, I get this in the messages:
[Sep 28 16:31:47] WARNING[16965] chan_sip.c: Maximum retries exceeded on transmission SDphrn901-7376894208348a20f0fcb172075fa6b6-gurpkk2 for seqno 1 (Non-critical Response) -- See doc/sip-retransmit.txt.
[Sep 28 16:31:53] NOTICE[17055] pbx_spool.c: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?)
[Sep 28 16:31:53] ERROR[16950] pbx.c: Received invalid event that had no device IE
[Sep 28 16:31:53] ERROR[16950] app_queue.c: Received invalid event that had no device IE
Anyone have any ideas where I’ve misconfigured it? Thanks!!