Re: [Asterisk-Dev] Dialplan 'i' and DIALSTATUS bugs

2005-04-15 Thread Eric Wieling
Andrew Kohlsmith wrote:
ast-one dial(IAX2/)'s ast-two.  Both are CVS HEAD within a week of today.
ast-two's context for ast-one's type=user is somecontext.
[somecontext]
exten = 100,1,NoOp(One)
exten = 100,2,Hangup
exten = 200,1,NoOp(Two)
exten = 200,2,Hangup
exten = i,1,Wait(1)
exten = i,2,Playback(tt-somethingwrong)
exten = i,3,Hangup
Now, when ast-one Dial(IAX2/[EMAIL PROTECTED]/300) I get an immediate failure 
with DIALSTATUS set to NOANSWER.

This is bad.  Why?  Because I cannot tell the difference between dialing a 
valid extension that does not answer, and dialing an invalid extension, and 
thus it is impossible to provide a failover scenario.  Further, extension 'i' 
is not being triggered even though it should.

Similarly, I have a PRI and DIDs from 555-0001 thorugh 555-0030 inclusive.  My 
23 Zap channels dump into the pri context:

[pri]
exten = 555-0001,1,NoOp(0001)
exten = 555-0001,2,Hangup
exten = 555-0002,1,NoOp(0002)
exten = 555-0002,2,Hangup
exten = i,1,Wait(1)
exten = i,2,Playback(tt-somethingwrong)
exten = i,3,Hangup
Now when someone calls 555-0003 the call gets routed to be.  However, the 'i' 
extension again does not get triggered, Asterisk refuses the call and the 
Telco sends back a number not in service message.

If I did NOT have 'i' in there I would agree with this behaviour.  However, 
since the extension is invalid, I should be triggering 'i'.

Can anyone refute this logic?  I want to get everyone's opinion before I start 
an attempt to fix this.
Next time try to use ACTUAL stuff from your dialplan. 555-1212 is NOT 
correct unless your telco is REALLY REALLY WEIRD.  The telco will send 
5551212  Telephone numbers do not contain non-numbers.

--
Always do right. This will gratify some people and astonish the rest.
Mark Twain
___
Asterisk-Dev mailing list
Asterisk-Dev@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-dev


Re: [Asterisk-Dev] Dialplan 'i' and DIALSTATUS bugs

2005-04-15 Thread Rich Adamson
  ast-one dial(IAX2/)'s ast-two.  Both are CVS HEAD within a week of today.
  
  ast-two's context for ast-one's type=user is somecontext.
  
  [somecontext]
  exten = 100,1,NoOp(One)
  exten = 100,2,Hangup
  
  exten = 200,1,NoOp(Two)
  exten = 200,2,Hangup
  
  exten = i,1,Wait(1)
  exten = i,2,Playback(tt-somethingwrong)
  exten = i,3,Hangup
  
  Now, when ast-one Dial(IAX2/[EMAIL PROTECTED]/300) I get an immediate 
  failure 
  with DIALSTATUS set to NOANSWER.
  
  This is bad.  Why?  Because I cannot tell the difference between dialing a 
  valid extension that does not answer, and dialing an invalid extension, and 
  thus it is impossible to provide a failover scenario.  Further, extension 
  'i' 
  is not being triggered even though it should.
  
  Similarly, I have a PRI and DIDs from 555-0001 thorugh 555-0030 inclusive.  
  My 
  23 Zap channels dump into the pri context:
  
  [pri]
  exten = 555-0001,1,NoOp(0001)
  exten = 555-0001,2,Hangup
  
  exten = 555-0002,1,NoOp(0002)
  exten = 555-0002,2,Hangup
  
  exten = i,1,Wait(1)
  exten = i,2,Playback(tt-somethingwrong)
  exten = i,3,Hangup
  
  Now when someone calls 555-0003 the call gets routed to be.  However, the 
  'i' 
  extension again does not get triggered, Asterisk refuses the call and the 
  Telco sends back a number not in service message.
  
  If I did NOT have 'i' in there I would agree with this behaviour.  However, 
  since the extension is invalid, I should be triggering 'i'.
  
  Can anyone refute this logic?  I want to get everyone's opinion before I 
  start 
  an attempt to fix this.
 
 Next time try to use ACTUAL stuff from your dialplan. 555-1212 is NOT 
 correct unless your telco is REALLY REALLY WEIRD.  The telco will send 
 5551212  Telephone numbers do not contain non-numbers.

Look a little closer... he didn't say a thing about 555-1212.
(more coffee?)


___
Asterisk-Dev mailing list
Asterisk-Dev@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev


Re: [Asterisk-Dev] Dialplan 'i' and DIALSTATUS bugs

2005-04-15 Thread Tilghman Lesher
On Friday 15 April 2005 10:37, Eric Wieling wrote:
 Andrew Kohlsmith wrote:
  [pri]
  exten = 555-0001,1,NoOp(0001)
  exten = 555-0001,2,Hangup
 
  exten = 555-0002,1,NoOp(0002)
  exten = 555-0002,2,Hangup

 Next time try to use ACTUAL stuff from your dialplan. 555-1212 is NOT
 correct unless your telco is REALLY REALLY WEIRD.  The telco will
 send 5551212  Telephone numbers do not contain non-numbers.

Actually, either will work.  Try it in your own dialplan.  Also, note
that you can do a Goto(5-5-5-0-0-0-1,1), as the - is completely ignored
when dealing with dialplan extensions.

-- 
Tilghman
___
Asterisk-Dev mailing list
Asterisk-Dev@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev


Re: [Asterisk-Dev] Dialplan 'i' and DIALSTATUS bugs

2005-04-15 Thread Andrew Kohlsmith
On April 15, 2005 11:37 am, Eric Wieling wrote:
  exten = 555-0001,1,NoOp(0001)
  exten = 555-0001,2,Hangup

 Next time try to use ACTUAL stuff from your dialplan. 555-1212 is NOT
 correct unless your telco is REALLY REALLY WEIRD.  The telco will send
 5551212  Telephone numbers do not contain non-numbers.

This was an example; of course there's no dashes in the real thing...  Please 
try to see beyond the obvious bugs...  I've been using Asterisk for well over 
a year now and push many tens of thousands of calls through it.  :-)

-A.
___
Asterisk-Dev mailing list
Asterisk-Dev@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev