Hi i am setting up a very simple asterisk system with 1 analog trunk and a few SIP extensions.
When calls are incoming on the trunk, they should be forwarded to SIP/101.
I have setup a basic and without any doubt incorrect config, and i am getting the following errors:
Agent policy for SIP/101-00000000 is ‘never’. CC not possible
Channel ‘DAHDI/1-1’ sent into invalid extension ‘s’ in context ‘default’, but no invalid handler
My config is as follows:
cat chan_dahdi.conf
[channels]
#include dahdi-channels.conf
[root@asterisk asterisk]# cat dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Mon Dec 20 07:45:27 2010
; Span 1: WCTDM/0 “Wildcard TDM410P Board 1” (MASTER)
;;; line="1 WCTDM/0/0 FXSLS (In use)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default
;;; line="2 WCTDM/0/1 FXSLS (In use)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 2
callerid=
group=
context=default
;;; line="3 WCTDM/0/2 FXSLS (In use)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 3
callerid=
group=
context=default
;;; line="4 WCTDM/0/3 FXSLS (In use)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 4
callerid=
group=
context=default
cat sip.conf
[general]
context=default
port=5060
bindaddr=0.0.0.0
disallow=all
allow=ulaw
[101]
type=friend
context=local
callerid=Operator<101>
host=dynamic
secret=yes1
dtmfmode=inband
mailbox=101
[102]
type=friend
context=longdistance
callerid=Chris<102>
host=dynamic
secret=yes1
dtmfmode=inband
mailbox=102
cat extensions.conf
[general]
static=yes
writeprotect=no
;#include macros.incl
;#include incoming.incl
;#include outgoing.incl
;#include default.incl
;#include dialext.incl
[globals]
TRUNK=Dahdi/g0
TRUNKMSD=1
[outgoing]
exten => _9.,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) ;if we dial 9,
; send to trunk
[local]
exten => s,1,Dial(SIP/101)
[frm-pstn]
include => outgoing
include => local
I have a few questions:
What context should i use for the incoming calls? from-pstn, or default? When showing dahdi channels the context there is shown as from-pstn and also default.
Secondly, what does it mean when i get the warning: Agent policy for SIP/101-00000000 is ‘never’. CC not possible
Finally, any idea why my config doesnt work and i get bombed out with Channel ‘DAHDI/1-1’ sent into invalid extension ‘s’ in context ‘default’, but no invalid handler
Appreciate the help in getting my very first test install off the ground. Many thanks in advance.
Chris