Hi,
Asterisk Version : 1.2.15
Card : TDM11B (1 x FXO , 1 x FXS)
I have internal dialling working okay SIP->ZAP (analogue phone) and ZAP (analogue phone) -> SIP.
The problem comes when I try and make a outbound call.
Here is my extensions.conf :-
[code][incoming]
exten => s,1,GoToIfTime(17:00-09:00\mon-fri**?outofhours|s,1)
exten => s,2,GoToIfTime(*\sat-sun**?outofhours|s,1)
exten => s,3,Answer()
exten => s,4,Dial(Zap/1,20)
exten => s,5,Playback(cybermog)
exten => s,6,VoiceMail(5000@incoming,s)
exten => s,7,Hangup()
[outofhours]
exten => s,1,Answer()
exten => s,2,Playback(cybermog)
exten => s,3,VoiceMail(5000@incoming,s)
exten => s,4,Hangup()
[internal]
include => outbound-local
include => uri
exten => 123,1,VoiceMailMain(@incoming)
exten => 123,2,Hangup()
exten => 6000,1,Dial(${ANGELA},20)
exten => 6000,2,VoiceMail(5000@incoming)
exten => 6000,3,Hangup()
exten => 6001,1,Dial(sip/uxbod,20)
exten => 6001,2,VoiceMail(5001@incoming)
exten => 6001,3,Hangup()
[in]
exten => uxbod,1,Dial(sip/uxbod,20)
exten => uxbod,2,VoiceMail(5001@incoming)
exten => uxbod,3,Hangup()
[outbound-local]
exten => _9NXXXXXX,1,Dial(${TRUNK}/${EXTEN:1})
exten => _9NXXXXXX,2,Congestion()
exten => _9NXXXXXX,102,Congestion()
[uri]
exten => _[a-z].,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
exten => _[A-Z].,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
exten => _X.,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
[macro-uridial]
exten => s,1,NoOp(Calling remote SIP peer ${ARG1})
exten => s,n,Dial(SIP/${ARG1},120,tr)
exten => s,n,Congestion()
[/code]
When I try dialling 912345678 the above configuration thinks that I am dialling a SIP number, and does not bridge the call to the ZAP FXO channel.
What am I doing wrong please ?