Re: [Asterisk-Users] Problem with Wait() and chan_capi-cm?

2006-02-12 Thread Armin Schindler
On Sun, 12 Feb 2006, Florian Heer wrote:
 Hi!
 
 I am playing around with Asterisk and have a problem :-)
 (Asterisk-version: 1.2.4, chan_capi-cm-version: 0.6.4)
 I have a sip-phone at my desk and an ISDN-phone (independent of the
 Asterisk-server) in my living room, when I'm not at my desk, the sip-phone is
 switched off. I would like to be able to accept calls at both phones (when
 available) and have Voicemail kick in if I don't answer. The 'normal'
 extension would be something like this:
 
 exten = 12345,1,Dial(SIP/me,30)
 exten = 12345,2,VoiceMail(su12345)
 
 Works fine as long as the sip-phone is available, if it is not, it is flagged
 congested/busy, so the next extension would be 102, if I wanted VoiceMail to
 kick in in that case, this works:
 exten = 12345,1,Dial(SIP/me,30)
 exten = 12345,2,VoiceMail(su12345)
 exten = 12345,102,VoiceMail(su12345)
 
 But that is not, what I had in mind, I would like to have 30 seconds to get to
 the phone, so in theory, this should do the trick:
 exten = 12345,1,Dial(SIP/me,30)
 exten = 12345,2,VoiceMail(su12345)
 exten = 12345,102,Wait(30)
 exten = 12345,103,VoiceMail(su12345)
 
 But Asterisk can not take over the line after the wait.
 
 To test, if the Wait was the problem, I created this:
 exten = 12345,1,Wait(10)
 exten = 12345,2,Answer()
 exten = 12345,3,Milliwatt()
 
 And still: Asterisk can't take over the ISDN line. The console output says:
 == ISDN1: Incoming call '12345' - '12345'
 -- Executing Wait(CAPI/ISDN1/12345-19, 10) in new stack
 -- Executing Answer(CAPI/ISDN1/12345-19, ) in new stack
 == ISDN1: Answering for 12345
 -- Executing Milliwatt(CAPI/ISDN1/12345-19, ) in new stack
  CAPI INFO 0x34d1: Invalid call reference value
  == Spawn extension (capi-in, 12345, 3) exited non-zero on
 'CAPI/ISDN1/12345-19'
 == ISDN1: CAPI Hangingup
 
 If I try that in a pure sip-context, it works as I thought it would.
 
 Now: do I do something wrong? Is there a problem with the Wait() application?
 Or is that more likely a bug in chan_capi-cm?

If there is a bug, I would need a full log (set verbose 5 ; capi debug) to
find out.
But: if there is a call signaled, the switch has a timeout (about 4 or 5 
seconds), this timeout can be extended by sending ALERT (Ringing).
Normaly, when you Dial() another phone, this other device will signal
that it is ringing and the status will be put through to chan_capi to
signal Ringing(). Now when your Dial() returns with any Ringing signal,
the ISDN call is still without ALERT (nobody wants to signal the call).
So you should do
 exten = 12345,1,Ringing()
(or after the unsuccessful Dial())
to make sure the ISDN call gets ALERT in that case.

Armin

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Problem with Wait() and chan_capi-cm?

2006-02-12 Thread Florian Heer

Hi!

Armin Schindler wrote:


there is a bug, I would need a full log (set verbose 5 ; capi debug) to
find out.
 


Of course you would, I just didn't know if it was one.

But: if there is a call signaled, the switch has a timeout (about 4 or 5 
seconds), this timeout can be extended by sending ALERT (Ringing).
 

Okay, is the timeout necessary? Or: is this short timeout necessary? It 
appears in the sip-context the timeouts are much longer.



So you should do
exten = 12345,1,Ringing()
(or after the unsuccessful Dial())
to make sure the ISDN call gets ALERT in that case.
 



Yes, that does what I expect. My extensions now are:
exten = 12345,1,Dial(SIP/me,30)
exten = 12345,2,VoiceMail(su12345)
exten = 12345,3,Hangup()
exten = 12345,102,Set(COUNT=10)
exten = 12345,103,While($[ ${COUNT}  0 ])
exten = 12345,104,Set(COUNT=${COUNT}-1)
exten = 12345,105,Ringing()
exten = 12345,106,Wait(3)
exten = 12345,107,EndWhile()
exten = 12345,108,VoiceMail(su12345)

Could probably be a bit tiedier, but at least it works.

Thank you, Florian.
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Problem with Wait() and chan_capi-cm?

2006-02-12 Thread Armin Schindler
On Sun, 12 Feb 2006, Florian Heer wrote:
 Armin Schindler wrote:
  But: if there is a call signaled, the switch has a timeout (about 4 or 5
  seconds), this timeout can be extended by sending ALERT (Ringing).
  
  
 Okay, is the timeout necessary? Or: is this short timeout necessary? It
 appears in the sip-context the timeouts are much longer.

Maybe, but that timeout is given by your ISDN provider.
 
  So you should do
  exten = 12345,1,Ringing()
  (or after the unsuccessful Dial())
  to make sure the ISDN call gets ALERT in that case.
  
  
 
 Yes, that does what I expect. My extensions now are:
 exten = 12345,1,Dial(SIP/me,30)
 exten = 12345,2,VoiceMail(su12345)
 exten = 12345,3,Hangup()
 exten = 12345,102,Set(COUNT=10)
 exten = 12345,103,While($[ ${COUNT}  0 ])
 exten = 12345,104,Set(COUNT=${COUNT}-1)
 exten = 12345,105,Ringing()
 exten = 12345,106,Wait(3)
 exten = 12345,107,EndWhile()
 exten = 12345,108,VoiceMail(su12345)
 
 Could probably be a bit tiedier, but at least it works.

There is no need to create a loop. Just one Ringing() is enough.
The first ALERT (Ringing) signales the switch to incease the timeout
from 4-5 seconds to 2 minutes or so.

Armin

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Problem with Wait() and chan_capi-cm?

2006-02-12 Thread Florian Heer

Hello Armin,

Armin Schindler wrote:


On Sun, 12 Feb 2006, Florian Heer wrote:
 


Armin Schindler wrote:
   


But: if there is a call signaled, the switch has a timeout (about 4 or 5
seconds), this timeout can be extended by sending ALERT (Ringing).
 


Okay, is the timeout necessary? Or: is this short timeout necessary? It
appears in the sip-context the timeouts are much longer.
   


Maybe, but that timeout is given by your ISDN provider.
 

Ah, okay, I understand, I thought that was a timeout in chan_capi, then 
I'd have wondered, if there was any reason for that.



There is no need to create a loop. Just one Ringing() is enough.
The first ALERT (Ringing) signales the switch to incease the timeout
from 4-5 seconds to 2 minutes or so.
 

Thank you very much, now I have a working version that also looks nice 
enough :-)

exten = 12345,1,Dial(SIP/me,30)
exten = 12345,n,VoiceMail(su12345)
exten = 12345,n,Hangup()
exten = 12345,102,Ringing()
exten = 12345,n,Wait(30)
exten = 12345,n,VoiceMail(su12345)

Regards, Florian.
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Problem with Wait() and chan_capi-cm?

2006-02-12 Thread gw
Hello Florian,
I spoke to soon, thought you were referencing something else... I have
been having a problem post 8015 build of asterisk that has been
preventing me from going up any higher...

It's an odd one too, and I narrowed it down, tested like crazy, etc...

You could see my previous post about it, :) I'll get it eventually...

Greg 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Florian
Heer
Sent: Saturday, February 11, 2006 10:09 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Problem with Wait() and chan_capi-cm?

[EMAIL PROTECTED] wrote:

Try build 8015.  I know its odd, but this is just like the problem I am

having...
  

Uhm... sorry if I seem a bit uninformed, but how do I get that version?

Regards, Florian.
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Problem with Wait() and chan_capi-cm?

2006-02-11 Thread Florian Heer

Hi!

I am playing around with Asterisk and have a problem :-)
(Asterisk-version: 1.2.4, chan_capi-cm-version: 0.6.4)
I have a sip-phone at my desk and an ISDN-phone (independent of the 
Asterisk-server) in my living room, when I'm not at my desk, the 
sip-phone is switched off. I would like to be able to accept calls at 
both phones (when available) and have Voicemail kick in if I don't 
answer. The 'normal' extension would be something like this:


exten = 12345,1,Dial(SIP/me,30)
exten = 12345,2,VoiceMail(su12345)

Works fine as long as the sip-phone is available, if it is not, it is 
flagged congested/busy, so the next extension would be 102, if I wanted 
VoiceMail to kick in in that case, this works:

exten = 12345,1,Dial(SIP/me,30)
exten = 12345,2,VoiceMail(su12345)
exten = 12345,102,VoiceMail(su12345)

But that is not, what I had in mind, I would like to have 30 seconds to 
get to the phone, so in theory, this should do the trick:

exten = 12345,1,Dial(SIP/me,30)
exten = 12345,2,VoiceMail(su12345)
exten = 12345,102,Wait(30)
exten = 12345,103,VoiceMail(su12345)

But Asterisk can not take over the line after the wait.

To test, if the Wait was the problem, I created this:
exten = 12345,1,Wait(10)
exten = 12345,2,Answer()
exten = 12345,3,Milliwatt()

And still: Asterisk can't take over the ISDN line. The console output says:
 == ISDN1: Incoming call '12345' - '12345'
   -- Executing Wait(CAPI/ISDN1/12345-19, 10) in new stack
   -- Executing Answer(CAPI/ISDN1/12345-19, ) in new stack
 == ISDN1: Answering for 12345
   -- Executing Milliwatt(CAPI/ISDN1/12345-19, ) in new stack
   CAPI INFO 0x34d1: Invalid call reference value
 == Spawn extension (capi-in, 12345, 3) exited non-zero on 
'CAPI/ISDN1/12345-19'

 == ISDN1: CAPI Hangingup

If I try that in a pure sip-context, it works as I thought it would.

Now: do I do something wrong? Is there a problem with the Wait() 
application? Or is that more likely a bug in chan_capi-cm?


Regards, Florian.
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Problem with Wait() and chan_capi-cm?

2006-02-11 Thread gw
Try build 8015.  I know its odd, but this is just like the problem I am
having... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Florian
Heer
Sent: Saturday, February 11, 2006 9:25 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Problem with Wait() and chan_capi-cm?

Hi!

I am playing around with Asterisk and have a problem :-)
(Asterisk-version: 1.2.4, chan_capi-cm-version: 0.6.4) I have a
sip-phone at my desk and an ISDN-phone (independent of the
Asterisk-server) in my living room, when I'm not at my desk, the
sip-phone is switched off. I would like to be able to accept calls at
both phones (when available) and have Voicemail kick in if I don't
answer. The 'normal' extension would be something like this:

exten = 12345,1,Dial(SIP/me,30)
exten = 12345,2,VoiceMail(su12345)

Works fine as long as the sip-phone is available, if it is not, it is
flagged congested/busy, so the next extension would be 102, if I wanted
VoiceMail to kick in in that case, this works:
exten = 12345,1,Dial(SIP/me,30)
exten = 12345,2,VoiceMail(su12345)
exten = 12345,102,VoiceMail(su12345)

But that is not, what I had in mind, I would like to have 30 seconds to
get to the phone, so in theory, this should do the trick:
exten = 12345,1,Dial(SIP/me,30)
exten = 12345,2,VoiceMail(su12345)
exten = 12345,102,Wait(30)
exten = 12345,103,VoiceMail(su12345)

But Asterisk can not take over the line after the wait.

To test, if the Wait was the problem, I created this:
exten = 12345,1,Wait(10)
exten = 12345,2,Answer()
exten = 12345,3,Milliwatt()

And still: Asterisk can't take over the ISDN line. The console output
says:
  == ISDN1: Incoming call '12345' - '12345'
-- Executing Wait(CAPI/ISDN1/12345-19, 10) in new stack
-- Executing Answer(CAPI/ISDN1/12345-19, ) in new stack
  == ISDN1: Answering for 12345
-- Executing Milliwatt(CAPI/ISDN1/12345-19, ) in new stack
CAPI INFO 0x34d1: Invalid call reference value
  == Spawn extension (capi-in, 12345, 3) exited non-zero on
'CAPI/ISDN1/12345-19'
  == ISDN1: CAPI Hangingup

If I try that in a pure sip-context, it works as I thought it would.

Now: do I do something wrong? Is there a problem with the Wait()
application? Or is that more likely a bug in chan_capi-cm?

Regards, Florian.
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Problem with Wait() and chan_capi-cm?

2006-02-11 Thread Florian Heer

[EMAIL PROTECTED] wrote:


Try build 8015.  I know its odd, but this is just like the problem I am
having... 
 


Uhm... sorry if I seem a bit uninformed, but how do I get that version?

Regards, Florian.
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users