I’m a bit confused - I entered the CLI “originate” command. The SIP INVITE, with the Call-ID were generated by Asterisk. I’m tring to gain an understanding of Asterisk’s actions such as the “Anonymous” in the INVITE’s “From:” line.
The Asterisk invocation command:
asterisk -vvvvvvv -c -C /nfs/newadmin/public/users/crs/testbuddy/log/ast07/asterisk/asterisk.conf | tee asterisk_out_icm_07.txt
Console output (asterisk_out_icm_07.txt) is attached.
Once again, I am very greatful for your attention and assistance.
I tried attaching asterisk.conf, sip.conf,extensions.conf but got the message “The extension conf is not allowed”.
==========================================================================
manager.conf:
;
; AMI - The Asterisk Manager Interface
;
; Third party application call management support and PBX event supervision
;
; This configuration file is read every time someone logs in
;
; Use the “manager show commands” at the CLI to list available manager commands
; and their authorization levels.
;
; "manager show command " will show a help text.
;
; ---------------------------- SECURITY NOTE -------------------------------
; Note that you should not enable the AMI on a public IP address. If needed,
; block this TCP port with iptables (or another FW software) and reach it
; with IPsec, SSH, or SSL vpn tunnel. You can also make the manager
; interface available over http/https if Asterisk’s http server is enabled in
; http.conf and if both “enabled” and “webenabled” are set to yes in
; this file. Both default to no. httptimeout provides the maximum
; timeout in seconds before a web based session is discarded. The
; default is 60 seconds.
;
[general]
port = 5039
;enabled = no
;webenabled = yes
enabled = yes
webenabled=yes ; this enables the interaction between the Asterisk web server and AMI
[asterisk_http] ; you can name the user whatever you want
secret = gooey
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config
port = 5038
bindaddr = 0.0.0.0
[admin]
write = all,system,call,log,verbose,command,agent,user,config,command,reporting,originate,message
read = all,system,call,log,verbose,command,agent,user,config,user,config,dtmf,reporting,cdr,dialplan
writetimeout = 500
permit = 192.168.15.224
secret = secret
==========================================================================
asterisk.conf:
[directories]
astetcdir=/nfs/newadmin/public/users/crs/testbuddy/log/ast07/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk
astdbdir => /var/lib/asterisk
astkeydir => /var/lib/asterisk
astdatadir => /var/lib/asterisk
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir=/nfs/newadmin/public/users/crs/testbuddy/log/ast07
astlogdir=/nfs/newadmin/public/users/crs/testbuddy/log/ast07
astsbindir => /usr/sbin
[options]
live_dangerously = yes
verbose = 3
;verbose = 3
;debug = 3
;alwaysfork = yes ; Same as -F at startup.
;nofork = yes ; Same as -f at startup.
;quiet = yes ; Same as -q at startup.
;timestamp = yes ; Same as -T at startup.
;execincludes = yes ; Support #exec in config files.
;console = yes ; Run as console (same as -c at startup).
;highpriority = yes ; Run realtime priority (same as -p at
; startup).
;initcrypto = yes ; Initialize crypto keys (same as -i at
; startup).
;nocolor = yes ; Disable console colors.
;dontwarn = yes ; Disable some warnings.
;dumpcore = yes ; Dump core on crash (same as -g at startup).
;languageprefix = yes ; Use the new sound prefix path syntax.
;systemname = my_system_name ; Prefix uniqueid with a system name for
; Global uniqueness issues.
;autosystemname = yes ; Automatically set systemname to hostname,
; uses ‘localhost’ on failure, or systemname if
; set.
;mindtmfduration = 80 ; Set minimum DTMF duration in ms (default 80 ms)
; If we get shorter DTMF messages, these will be
; changed to the minimum duration
;maxcalls = 10 ; Maximum amount of calls allowed.
;maxload = 0.9 ; Asterisk stops accepting new calls if the
; load average exceed this limit.
;maxfiles = 1000 ; Maximum amount of openfiles.
;minmemfree = 1 ; In MBs, Asterisk stops accepting new calls if
; the amount of free memory falls below this
; watermark.
;cache_record_files = yes ; Cache recorded sound files to another
; directory during recording.
;record_cache_dir = /tmp ; Specify cache directory (used in conjunction
; with cache_record_files).
;transmit_silence = yes ; Transmit silence while a channel is in a
; waiting state, a recording only state, or
; when DTMF is being generated. Note that the
; silence internally is generated in raw signed
; linear format. This means that it must be
; transcoded into the native format of the
; channel before it can be sent to the device.
; It is for this reason that this is optional,
; as it may result in requiring a temporary
; codec translation path for a channel that may
; not otherwise require one.
;transcode_via_sln = yes ; Build transcode paths via SLINEAR, instead of
; directly.
;runuser = asterisk ; The user to run as.
;rungroup = asterisk ; The group to run as.
;lightbackground = yes ; If your terminal is set for a light-colored
; background.
;forceblackbackground = yes ; Force the background of the terminal to be
; black, in order for terminal colors to show
; up properly.
;defaultlanguage = en ; Default language
documentation_language = en_US ; Set the language you want documentation
; displayed in. Value is in the same format as
; locale names.
;hideconnect = yes ; Hide messages displayed when a remote console
; connects and disconnects.
;lockconfdir = no ; Protect the directory containing the
; configuration files (/etc/asterisk) with a
; lock.
;stdexten = gosub ; How to invoke the extensions.conf stdexten.
; macro - Invoke the stdexten using a macro as
; done by legacy Asterisk versions.
; gosub - Invoke the stdexten using a gosub as
; documented in extensions.conf.sample.
; Default gosub.
; set to yes to allow testing
;live_dangerously = yes ; Enable the execution of ‘dangerous’ dialplan
; functions from external sources (AMI,
; etc.) These functions (such as SHELL) are
; considered dangerous because they can allow
; privilege escalation.
; Default yes, for backward compatability.
; Changing the following lines may compromise your security.
;[files]
;astctlpermissions = 0660
;astctlowner = root
;astctlgroup = apache
;astctl = asterisk.ctl
[compat]
pbx_realtime=1.6
res_agi=1.6
app_set=1.6
========================================================================
sip.conf:
; sip.conf 04dec2014
;
[general]
registertimeout => 3600
defaultexpiry => 3600
allowexternaldomains = yes
sendrpid = yes
rpid_update = yes ; In certain cases, the only method by which a connected line chg ...
;
; ICM
;
register=>62021:password@192.168.90.50:5260/62021
register=>62022:password@192.168.90.50:5260/62022
register=>62023:password@192.168.90.50:5260/62023
register=>62024:password@192.168.90.50:5260/62024
register=>62025:password@192.168.90.50:5260/62025
;
; OXE
;
register=>51206:password@152.148.200.236:5060/51206
register=>51207:password@152.148.200.236:5060/51207
register=>51208:password@152.148.200.236:5060/51208
register=>51209:password@152.148.200.236:5060/51209
register=>51210:password@152.148.200.236:5060/51210
========================================================================
extensions.conf:
;extensionis 04dec2014
;
[default]
include => outgoing
include => incoming
exten => _X.,1,Goto(incoming,${EXTEN},1)
[outgoing]
;
; OXE phones
; registrar = ao1-oxe-ed.inse.lucent.com
; registrar ip = 152.148.200.236
;
exten => 51206,1,Verbose(51206 outgoing)
same => n,Wait(1)
same => n,Dial(SIP/51206@152.148.200.236:5060,20,rt)
same => n,Wait(1)
same => n,Dial(SIP/51206@152.148.200.236:5060,20,rt)
same => n,Wait(99999)
same => n,Hangup()
exten => 51207,1,Verbose(51207 outgoing)
same => n,Wait(1)
same => n,Dial(SIP/51207@152.148.200.236:5060,20,rt)
same => n,Wait(1)
same => n,Dial(SIP/51207@152.148.200.236:5060,20,rt)
same => n,Wait(99999)
same => n,Hangup()
exten => 51208,1,Verbose(51208 outgoing)
same => n,Wait(1)
same => n,Dial(SIP/51208@152.148.200.236:5060,20,rt)
same => n,Wait(1)
same => n,Dial(SIP/51208@152.148.200.236:5060,20,rt)
same => n,Wait(99999)
same => n,Hangup()
exten => 51209,1,Verbose(51209 outgoing)
same => n,Wait(1)
same => n,Dial(SIP/51209@152.148.200.236:5060,20,rt)
same => n,Wait(1)
same => n,Dial(SIP/51209@152.148.200.236:5060,20,rt)
same => n,Wait(99999)
same => n,Hangup()
exten => 51210,1,Verbose(51210 outgoing)
same => n,Wait(1)
same => n,Dial(SIP/51210@152.148.200.236:5060,20,rt)
same => n,Wait(1)
same => n,Dial(SIP/51210@152.148.200.236:5060,20,rt)
same => n,Wait(99999)
same => n,Hangup()
;
; ICM phones
; registrar = ao1.tara.edial.office
; registrar ip = 192.168.90.50
;
exten => 62021,1,Verbose(62021 outgoing)
same => n,Wait(1)
same => n,Dial(SIP/62021@192.168.90.50:5260,20,rt)
same => n,Wait(1)
same => n,Dial(SIP/62021@192.168.90.50:5260,20,rt)
same => n,Wait(99999)
same => n,Hangup()
exten => 62022,1,Verbose(62022 outgoing)
same => n,Wait(1)
same => n,Dial(SIP/62022@192.168.90.50:5260,20,rt)
same => n,Wait(1)
same => n,Dial(SIP/62022@192.168.90.50:5260,20,rt)
same => n,Wait(99999)
same => n,Hangup()
exten => 62023,1,Verbose(62023 outgoing)
same => n,Wait(1)
same => n,Dial(SIP/62023@192.168.90.50:5260,20,rt)
same => n,Wait(1)
same => n,Dial(SIP/62023@192.168.90.50:5260,20,rt)
same => n,Wait(99999)
same => n,Hangup()
exten => 62024,1,Verbose(62024 outgoing)
same => n,Wait(1)
same => n,Dial(SIP/62024@192.168.90.50:5260,20,rt)
same => n,Wait(1)
same => n,Dial(SIP/62024@192.168.90.50:5260,20,rt)
same => n,Wait(99999)
same => n,Hangup()
exten => 62025,1,Verbose(62025 outgoing)
same => n,Wait(1)
same => n,Dial(SIP/62025@192.168.90.50:5260,20,rt)
same => n,Wait(1)
same => n,Dial(SIP/62025@192.168.90.50:5260,20,rt)
same => n,Wait(99999)
same => n,Hangup()
[incoming]
;
; OXE phones
; registrar = ao1-oxe-ed.inse.lucent.com
; registrar ip = 152.148.200.236
;
exten => 51206,1(Read),Verbose(51206 incoming)
same => n,Read(dtmf51206,,20,,,99999)
same => n,SayDigits(${dtmf51206})
same => n,wait(2)
same => n,Goto(Read)
exten => 51207,1(Read),Verbose(51207 incoming)
same => n,Read(dtmf51207,,20,,,99999)
same => n,SayDigits(${dtmf51207})
same => n,wait(2)
same => n,Goto(Read)
exten => 51208,1(Read),Verbose(51208 incoming)
same => n,Read(dtmf51208,,20,,,99999)
same => n,SayDigits(${dtmf51208})
same => n,wait(2)
same => n,Goto(Read)
exten => 51209,1(Read),Verbose(51209 incoming)
same => n,Read(dtmf51209,,20,,,99999)
same => n,SayDigits(${dtmf51209})
same => n,wait(2)
same => n,Goto(Read)
exten => 51210,1(Read),Verbose(51210 incoming)
same => n,Read(dtmf51210,,20,,,99999)
same => n,SayDigits(${dtmf51210})
same => n,wait(2)
same => n,Goto(Read)
;
; ICM phones
; registrar = ao1.tara.edial.office
; registrar ip = 192.168.90.50
;
exten => 62021,1(Read),Verbose(62021 incoming)
same => n,Read(dtmf62021,,20,,,99999)
same => n,SayDigits(${dtmf62021})
same => n,wait(2)
same => n,Goto(Read)
exten => 62022,1(Read),Verbose(62022 incoming)
same => n,Read(dtmf62022,,20,,,99999)
same => n,SayDigits(${dtmf62022})
same => n,wait(2)
same => n,Goto(Read)
exten => 62023,1(Read),Verbose(62023 incoming)
same => n,Read(dtmf62023,,20,,,99999)
same => n,SayDigits(${dtmf62023})
same => n,wait(2)
same => n,Goto(Read)
exten => 62024,1(Read),Verbose(62024 incoming)
same => n,Read(dtmf62024,,20,,,99999)
same => n,SayDigits(${dtmf62024})
same => n,wait(2)
same => n,Goto(Read)
exten => 62025,1(Read),Verbose(62025 incoming)
same => n,Read(dtmf62025,,20,,,99999)
same => n,SayDigits(${dtmf62025})
same => n,wait(2)
same => n,Goto(Read)
==========================================================================