I got an issue when trying to configure calls from FXO channel on my Digium card:
my chan_dahdi.conf :
[trunkgroups]
[channels]
usecallerid=yes
hidecallerid=no
callwaiting=no
threewaycalling=yes
transfer=yes
echocancel=yes
echotraining=yes
;;; line="1 WCTDM/0/0 FXSKS"
signalling=fxs_ks
callerid="Phone1" <701>
group=1
context=incoming
channel => 1
;;; line="2 WCTDM/0/1 FXSKS"
signalling=fxs_ks
callerid="Phone2" <702>
group=2
context=incoming
channel => 2
;;; line="3 WCTDM/0/2 FXSKS"
signalling=fxs_ks
callerid="Phone3" <703>
group=3
context=incoming
channel => 3
;;; line="4 WCTDM/0/3 FXOKS (In use) (EC: MG2 - INACTIVE)"
signalling=fxo_ks
callerid="Phone" <501>
mailbox=
group=5
context=call-out
my incoming extension:
[incoming]
exten => s,1,Log(NOTICE, Incoming call from ${CALLERID(all)})
exten => 301,1,Dial(SIP/301)
exten => s,n,Hangup()
; End of the "incoming" context
And when i call on phone in 3 port of analog card i get this (i replaced my phone number with #):
– Starting simple switch on ‘DAHDI/3-1’
– Executing [s@incoming:1] Log(“DAHDI/3-1”, “NOTICE, Incoming call from “CellRoute” <+3############>”) in new stack
[Feb 9 15:41:57] NOTICE[999][C-00000005]: Ext. s:1 @ incoming: Incoming call from “CellRoute” <+3############>
– Executing [s@incoming:2] Hangup(“DAHDI/3-1”, “”) in new stack
== Spawn extension (incoming, s, 2) exited non-zero on ‘DAHDI/3-1’
– Hanging up on ‘DAHDI/3-1’
– Hungup ‘DAHDI/3-1’
– Starting simple switch on ‘DAHDI/3-1’
– Executing [s@incoming:1] Log(“DAHDI/3-1”, “NOTICE, Incoming call from “” <>”) in new stack
[Feb 9 15:42:12] NOTICE[1000][C-00000006]: Ext. s:1 @ incoming: Incoming call from “” <>
– Executing [s@incoming:2] Hangup(“DAHDI/3-1”, “”) in new stack
== Spawn extension (incoming, s, 2) exited non-zero on ‘DAHDI/3-1’
– Hanging up on ‘DAHDI/3-1’
– Hungup ‘DAHDI/3-1’
– Starting simple switch on ‘DAHDI/3-1’
– Executing [s@incoming:1] Log(“DAHDI/3-1”, “NOTICE, Incoming call from “” <>”) in new stack
[Feb 9 15:42:30] NOTICE[1002][C-00000007]: Ext. s:1 @ incoming: Incoming call from “” <>
– Executing [s@incoming:2] Hangup(“DAHDI/3-1”, “”) in new stack
== Spawn extension (incoming, s, 2) exited non-zero on ‘DAHDI/3-1’
– Hanging up on ‘DAHDI/3-1’
– Hungup ‘DAHDI/3-1’
What’s wrong here?
Why it’s not translating to SIP 301 number?
But it works when i call through Goip with same incomming rule.
Regards,
Nufay.