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.
gw@adcomcorp.com
2006-Feb-11 19:40 UTC
[Asterisk-Users] Problem with Wait() and chan_capi-cm?
Try build 8015. I know its odd, but this is just like the problem I am having... -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] 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
gw@adcomcorp.com 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.
Armin Schindler
2006-Feb-12 02:31 UTC
[Asterisk-Users] Problem with Wait() and chan_capi-cm?
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
gw@adcomcorp.com
2006-Feb-12 20:30 UTC
[Asterisk-Users] Problem with Wait() and chan_capi-cm?
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: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] 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? gw@adcomcorp.com 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