Hi,
I am having a strange problem with a simple task.
I have two channels, a CAPI and a SIP channel. The CAPI connection to Asterisk is in T mode so when someone calls he comes in with an extension, 20 in my case. All I want to do is let this persion dial an extension and dial this extension via sip.
Code in extensions.conf:
[default]
exten => 20,1,Wait,1 ; Wait a second, just for fun
exten => 20,2,Answer ; Answer the line
exten => 20,3,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds
exten => 20,4,Set(TIMEOUT(response)=10) ; Set Response Timeout to 10 seconds
exten => 20,5,BackGround(demo-instruct) ; Play some instructions
exten => 20,6,WaitExten ; Wait for an extension to be dialed.
exten => _X.,7,Dial(sip/${EXTEN}@sipgate,r)
exten => i,1,Playback(invalid) ; "That’s not valid, try again"
exten => #,n,Hangup ; Hang them up.
exten => t,1,Goto(#,1) ; If they take too long, give up
Effect, I get an “invalid” message right after the first digit I dial.
I tried with the s extension instead of 20 but it is not considered for some reason - it looks as if the incoming MSN is used first.
I hear the demo sound so I know the basic context gets chosen.
What am I doing wrong?
Thanks in advance