<html>
<body>
On 12:39 AM 7/8/2004, robert brown wrote:<br><br>
<blockquote type=cite class=cite cite=""><font face="Times New Roman, Times">CLI&gt;
-- Starting simple switch on 'Zap/1-1'<br>
</font><br>
<font face="Times New Roman, Times">Jul 7 18:42:24 WARNING[1192437440]:
pbx.c:1836 ast_pbx_run: Channel 'Zap/1-1' sent into invalid extension 's'
in context 'default', but no invalid handler<br>
</font><br>
<font face="Times New Roman, Times">-- Hungup 'Zap/1-1'<br>
</font></blockquote><br><br>
In english,<br><br>
---Starting simple switch on 'Zap/1-1'<br><br>
means, 'Hey!&nbsp; The phone line you have plugged into the first X100P
card is ringing!&nbsp; I'm going to answer it!'<br><br>
<br>
Channel 'Zap/1-1' sent into invalid extension 's' in context 'default',
but no invalid handler<br><br>
means, 'I answered the line and in zapata.conf you told me to go to
context 'default' to start handling a call on this line.&nbsp; So I went
to context 'default' in extensions.conf and since I have no signalling to
tell me what number was dialed, I'm going to look for extension 's'
(which I look for when the number dialed is a null string), but I
couldn't find extension 's' in context default, so I started looking for
extension 'i' because thats what I do when I can't find the context/enten
I'm looking for (i stands for invalid, and I will alwasy look for
extension i when I can't find a matching extension for the call), but
alas, extension I wasn't there either.<br><br>
At this point I would normally be creative and try very hard to figure
out what you really wanted me to do versus what you told me to do, but
alas, unfortunately 99.95% of the programming world thinks such behavior
is a bug and not a feature, so I am prevented from reading your mind and
must follow my rules, so I am allowed to spit out an error message, which
of course I did.<br><br>
------&nbsp; Hope that helps you understand the error messages you were
seeing.<br><br>
What you need to do is create an context/extension in your
extensions.conf file like such<br><br>
[default]<br><br>
exten =&gt;
s,1,Dial(SIP/&lt;your-sip-info-here&gt;,20,t)&nbsp;&nbsp;&nbsp; ; see the
wiki for what the 20 and t means (or do 'show application dial' from the
cli)<br><br>
exten =&gt; i,1,Playback(invalid)<br>
exten =&gt; i,2,Hangup<br><br>
<br><br>
this should at least get you past the errors, the above entries aren't
something you want to leave that way, because they don't handle all the
possibilities you might run into (like not answering your phone if it
rings for more than 20 seconds)<br><br>
-Chris</body>
</html>