Thread: [Asterisk-java-users] Missing events through the manager
Brought to you by:
srt
From: Gaëtan M. <gm...@ea...> - 2008-05-23 16:46:26
|
Hi Stefan I'm running across a problem I never noticed before with asterisk. I think it worked as expected with asterisk 1.2 but seems to have changed somewhere between 1.4 and 1.4.11. The problem I'm facing is related to outgoing legs from queues, where the caller ID is (now ?) missing in the live API's channel object. This is most probably a problem on the asterisk side (although as the manager api is not officially documented I can't really blame them). When a leg (with a correct caller id) arrives in a queue, except usual queue events, here is what I see on the manager: 1/ One event for a new channel to the queue member, sate down and caller id unknown Event: Newchannel. Privilege: call,all. Channel: SIP/1002-09829228. State: Down. CallerIDNum: <unknown>. CallerIDName: <unknown>. Uniqueid: 1211559337.1. 2/ NewState event when the outboud leg starts to ring Event: Newstate. Privilege: call,all. Channel: SIP/1002-09829228. State: Ringing. CallerID: 1001. CallerIDName: TESTQUEUE:Gaetan Minet. Uniqueid: 1211559337.1. (Following events are useless). So there is no newCallerId event and as a consequence the live api never updates the channel information. In the past (pre-1.4) , iirc, we got a newcallerid event between (1) and (2). I don't know if the real problem is - the "unknown" in (1) (Maybe asterisk sends the event before the callerid is set on the channel ??) , - the missing newcallerid event between (1) and (2) that I thing I received with 1.2.x - or simply maybe the newstate event setting the caller id is the expected behavior for recent asterisk. Has someone already encountered this ? As a workaround, could we modify the live api to compare the current callerid recrded in the channel with the callerid received in a newstate event, and update the channel if necessary (thus firing a PCE on the channel too), or even generate and handle a virtual "newcallerid" even ? Any clue ? Thanks Kind regards Gaetan NB: Just saw this in the ChannelManager.java, maybe you already had to face a similar problem ? Maybe just ignoring the event (1) could also fix the problem then ? AsteriskChannelImpl channel = getChannelImplById(event.getUniqueId()); if (channel == null) { // NewStateEvent can occur instead of a NewChannelEvent channel = addNewChannel( event.getUniqueId(), event.getChannel(), event.getDateReceived(), event.getCallerIdNum(), event.getCallerIdName(), ChannelState.valueOf(event.getChannelState()), null /* account code not available */); } |
From: Stefan R. <ste...@re...> - 2008-05-29 09:26:18
Attachments:
signature.asc
|
Hi, > As a workaround, could we modify the live api to compare the current > callerid recrded in the channel with the callerid received in a newstate > event, and update the channel if necessary (thus firing a PCE on the > channel too), or even generate and handle a virtual "newcallerid" even ? > Any clue ? Yes I think we should (if we don't do that already) update the caller id if we receive one with a NewStateEvent. We only have to make sure that we don't overwrite it with null for older versions of Asterisk where the property might not be available. Can you check that this works and provide a patch in Jira? =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Bruno.Konik <bru...@un...> - 2009-01-15 15:26:23
|
Hello, Asterisk-java : 0.3.1, Asterisk 1.4.18 I have got a SIP phone (Thomson ST2030) and I am in communication. I press the Hold key on the phone but no event is issued through the manager API. I guess the hold is dealt with at the phone level and that Asterisk is not aware of it. But I have a question : when does the event HoldEvent occur in asterisk-java? Thanks for your help and comments about this. Bruno Konik - uniGone |
From: Ahsan M. <ama...@i2...> - 2009-01-15 15:38:50
|
Hello, You have to enable sip related events in asterisk to get the HoldEvent through manager API. You can do it by adding the following line in general section of SIP.conf file. [general] callevents=yes Don't forget to reload the asterisk service after this configuration. Regards, Ahsan Mahboob -----Original Message----- From: Bruno.Konik [mailto:bru...@un...] Sent: Thursday, January 15, 2009 8:03 PM To: ast...@li... Subject: [Asterisk-java-users] When is HoldCallEvent or HoldEvent receivedby Asterisk-java Hello, Asterisk-java : 0.3.1, Asterisk 1.4.18 I have got a SIP phone (Thomson ST2030) and I am in communication. I press the Hold key on the phone but no event is issued through the manager API. I guess the hold is dealt with at the phone level and that Asterisk is not aware of it. But I have a question : when does the event HoldEvent occur in asterisk-java? Thanks for your help and comments about this. Bruno Konik - uniGone ---------------------------------------------------------------------------- -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Bruno.Konik <bru...@un...> - 2009-01-15 15:45:18
|
Yes, it now works! I guess the same configuration exists for IAX? Thanks you very much. Bruno > -----Message d'origine----- > De : Ahsan Mahboob [mailto:ama...@i2...] > Envoyé : jeudi 15 janvier 2009 16:38 > À : bru...@un...; ast...@li... > Objet : RE: [Asterisk-java-users] When is HoldCallEvent or Hold Event > received by Asterisk-java > > > Hello, > > You have to enable sip related events in asterisk to get the HoldEvent > through manager API. You can do it by adding the following line in > general > section of SIP.conf file. > > [general] > callevents=yes > > Don't forget to reload the asterisk service after this configuration. > > Regards, > Ahsan Mahboob > > -----Original Message----- > >From: Bruno.Konik [mailto:bru...@un...] > Sent: Thursday, January 15, 2009 8:03 PM > To: ast...@li... > Subject: [Asterisk-java-users] When is HoldCallEvent or HoldEvent > receivedby > Asterisk-java > > Hello, > > Asterisk-java : 0.3.1, Asterisk 1.4.18 > > I have got a SIP phone (Thomson ST2030) and I am in communication. I > press > the Hold key on the phone but no event is issued through the manager > API. I > guess the hold is dealt with at the phone level and that Asterisk is > not > aware of it. But I have a question : when does the event HoldEvent > occur in > asterisk-java? > > Thanks for your help and comments about this. > > Bruno Konik - uniGone > > > > ----------------------------------------------------------------------- > ----- > -- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ----------------------------------------------------------------------- > ---------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus > mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. |
From: Bruno.Konik <bru...@un...> - 2009-07-31 22:06:51
|
Hello, I am wondering about the Answer command of AGI. I understand that it answers a channel, right? Does it makes an auto-answer of a call on any type of device (excluding analog)? I guess that the device should support such a function, shouldn't it? If I am not mistaken, this command is not available within the Manager API. Does anybody knows why? If it is available from AGI why can't it be from Manager API? Thanks for your help, Bruno Konik |
From: Martin B. S. <ma...@mb...> - 2009-07-31 23:42:32
|
Hi Bruno, Answer, like many other features in AGI, correspond fairly directly to applications in the dialplan. Also, many applications in the dialplan will immediately do an answer before they continue. In the case of the dialplan, there is a channel directly connected to the dialplan. In the case of AGI, there is a channel connected to the AGI script. In the case of the Manager API, no such channel exists. You can use the Manager API even if there zero channels currently up. So it's not really clear what you'd answer. Furthermore, even if channels were up, the Manager API isn't providing an endpoint for them, it is an observer of those channels. It can bridge channels, but it isn't an endpoint of that bridge. You might be interested in AsyncAGI(), which puts a channel into an empty holding state, and waits for AGI commands to be executed on the channel, *through* the Manager interface. But even in this case, it's basically just an asynchronous version of AGI with Manager doing the message passing for AGI. Cheers, Martin Bruno.Konik wrote: > Hello, > > I am wondering about the Answer command of AGI. I understand that it answers > a channel, right? Does it makes an auto-answer of a call on any type of > device (excluding analog)? I guess that the device should support such a > function, shouldn't it? > > If I am not mistaken, this command is not available within the Manager API. > Does anybody knows why? If it is available from AGI why can't it be from > Manager API? > > Thanks for your help, > > Bruno Konik > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Bruno.Konik <bru...@un...> - 2009-08-01 13:59:51
|
Thanks for your answer Martin, I understand better why the answer() exists for the AGI script. Actually, I was mistaken about the command. My question remains then: how is it possible to force a phone to answer a call for which it is alerting. In standard CTI protocols, there is a 'AnswerCall' command. When the PBX receives this command from an application, it sends a specific (depending on the phone and on the PBX) command to the phone forcing it to answer the call. Of course, the phone must know how to treat this command even if the handset is not up. When the manufacturer of the phone is also the manufactuer of the PBX it is easy. But I think this is also possible for Asterisk. For example, SIP phones can accept the NOTIFY talk/hold packages, which make them answer or put the current call on hold. I was then wondering if something like this could not be available in the Manager API. I know that we can force the addition of a SIP header when originating calls. This can be used to add a specific header (with auto-answer information) to force a SIP phone to make the call originate immediately without ringing first and waiting for the user to lift up the handset for making the call oringinate. Many SIP phone support this today (although the header seems to be phone specific). In your opinion, couldn't this be possible for answering alerting calls? And the last question: do you know how I could answer a call by the manager (not the AGI) currently (even if this requests a dialplan modification)? Thanks for your help, Bruno > -----Message d'origine----- > De : Martin B. Smith [mailto:ma...@mb...] > Envoyé : samedi 1 août 2009 01:34 > À : ast...@li... > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > > Hi Bruno, > > Answer, like many other features in AGI, correspond fairly directly to > applications in the dialplan. Also, many applications in the dialplan > will immediately do an answer before they continue. > > In the case of the dialplan, there is a channel directly connected to > the dialplan. In the case of AGI, there is a channel connected to the > AGI script. > > In the case of the Manager API, no such channel exists. You can use the > Manager API even if there zero channels currently up. So it's not > really > clear what you'd answer. Furthermore, even if channels were up, the > Manager API isn't providing an endpoint for them, it is an observer of > those channels. It can bridge channels, but it isn't an endpoint of > that > bridge. > > You might be interested in AsyncAGI(), which puts a channel into an > empty holding state, and waits for AGI commands to be executed on the > channel, *through* the Manager interface. But even in this case, it's > basically just an asynchronous version of AGI with Manager doing the > message passing for AGI. > > Cheers, > > Martin > > > Bruno.Konik wrote: > > Hello, > > > > I am wondering about the Answer command of AGI. I understand that it > answers > > a channel, right? Does it makes an auto-answer of a call on any type > of > > device (excluding analog)? I guess that the device should support > such a > > function, shouldn't it? > > > > If I am not mistaken, this command is not available within the > Manager API. > > Does anybody knows why? If it is available from AGI why can't it be > from > > Manager API? > > > > Thanks for your help, > > > > Bruno Konik > > > > > > > > > > --------------------------------------------------------------------- > --------- > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ----------------------------------------------------------------------- > ------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > ----------------------------------------------------------------------- > ---------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus > mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. |
From: aboulabbes y. <o.a...@me...> - 2009-08-01 14:31:14
|
You can answer your call by sending dtmf to asterisk. Asterisk manager Interface don't contain any function to send dtmf digit into a specific channel but you can add a new function to ami for inject a dtmf frame in your channel. It s that you want to do ?? -----Message d'origine----- De : Bruno.Konik [mailto:bru...@un...] Envoyé : samedi 1 août 2009 14:00 À : ast...@li... Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI Thanks for your answer Martin, I understand better why the answer() exists for the AGI script. Actually, I was mistaken about the command. My question remains then: how is it possible to force a phone to answer a call for which it is alerting. In standard CTI protocols, there is a 'AnswerCall' command. When the PBX receives this command from an application, it sends a specific (depending on the phone and on the PBX) command to the phone forcing it to answer the call. Of course, the phone must know how to treat this command even if the handset is not up. When the manufacturer of the phone is also the manufactuer of the PBX it is easy. But I think this is also possible for Asterisk. For example, SIP phones can accept the NOTIFY talk/hold packages, which make them answer or put the current call on hold. I was then wondering if something like this could not be available in the Manager API. I know that we can force the addition of a SIP header when originating calls. This can be used to add a specific header (with auto-answer information) to force a SIP phone to make the call originate immediately without ringing first and waiting for the user to lift up the handset for making the call oringinate. Many SIP phone support this today (although the header seems to be phone specific). In your opinion, couldn't this be possible for answering alerting calls? And the last question: do you know how I could answer a call by the manager (not the AGI) currently (even if this requests a dialplan modification)? Thanks for your help, Bruno > -----Message d'origine----- > De : Martin B. Smith [mailto:ma...@mb...] > Envoyé : samedi 1 août 2009 01:34 > À : ast...@li... > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > > Hi Bruno, > > Answer, like many other features in AGI, correspond fairly directly to > applications in the dialplan. Also, many applications in the dialplan > will immediately do an answer before they continue. > > In the case of the dialplan, there is a channel directly connected to > the dialplan. In the case of AGI, there is a channel connected to the > AGI script. > > In the case of the Manager API, no such channel exists. You can use the > Manager API even if there zero channels currently up. So it's not > really > clear what you'd answer. Furthermore, even if channels were up, the > Manager API isn't providing an endpoint for them, it is an observer of > those channels. It can bridge channels, but it isn't an endpoint of > that > bridge. > > You might be interested in AsyncAGI(), which puts a channel into an > empty holding state, and waits for AGI commands to be executed on the > channel, *through* the Manager interface. But even in this case, it's > basically just an asynchronous version of AGI with Manager doing the > message passing for AGI. > > Cheers, > > Martin > > > Bruno.Konik wrote: > > Hello, > > > > I am wondering about the Answer command of AGI. I understand that it > answers > > a channel, right? Does it makes an auto-answer of a call on any type > of > > device (excluding analog)? I guess that the device should support > such a > > function, shouldn't it? > > > > If I am not mistaken, this command is not available within the > Manager API. > > Does anybody knows why? If it is available from AGI why can't it be > from > > Manager API? > > > > Thanks for your help, > > > > Bruno Konik > > > > > > > > > > --------------------------------------------------------------------- > --------- > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ----------------------------------------------------------------------- > ------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > ----------------------------------------------------------------------- > ---------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus > mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Bruno.Konik <bru...@un...> - 2009-08-01 15:17:01
|
I don't understand what you mean. How sending dtmf to asterisk could force an answer of the call? Can you explain please? In my situation, an extension receives a call, a channel is created in the state 'ringing'. How can I force the phone to answer so that the channel would go in the state 'up'? BTW isn't there a PlayDtmfAction command in asterisk-java? > -----Message d'origine----- > De : aboulabbes younes [mailto:o.a...@me...] > Envoyé : samedi 1 août 2009 17:31 > À : ast...@li... > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > > > > You can answer your call by sending dtmf to asterisk. Asterisk manager > Interface don't contain any function to send dtmf digit into a specific > channel but you can add a new function to ami for inject a dtmf frame > in > your channel. > It s that you want to do ?? > > -----Message d'origine----- > De : Bruno.Konik [mailto:bru...@un...] > Envoyé : samedi 1 août 2009 14:00 > À : ast...@li... > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > Thanks for your answer Martin, > > I understand better why the answer() exists for the AGI script. > Actually, I > was mistaken about the command. > > My question remains then: how is it possible to force a phone to answer > a > call for which it is alerting. In standard CTI protocols, there is a > 'AnswerCall' command. When the PBX receives this command from an > application, it sends a specific (depending on the phone and on the > PBX) > command to the phone forcing it to answer the call. Of course, the > phone > must know how to treat this command even if the handset is not up. When > the > manufacturer of the phone is also the manufactuer of the PBX it is > easy. But > I think this is also possible for Asterisk. For example, SIP phones can > accept the NOTIFY talk/hold packages, which make them answer or put the > current call on hold. > I was then wondering if something like this could not be available in > the > Manager API. I know that we can force the addition of a SIP header when > originating calls. This can be used to add a specific header (with > auto-answer information) to force a SIP phone to make the call > originate > immediately without ringing first and waiting for the user to lift up > the > handset for making the call oringinate. Many SIP phone support this > today > (although the header seems to be phone specific). In your opinion, > couldn't > this be possible for answering alerting calls? > > And the last question: do you know how I could answer a call by the > manager > (not the AGI) currently (even if this requests a dialplan > modification)? > > Thanks for your help, > > Bruno > > > -----Message d'origine----- > > De : Martin B. Smith [mailto:ma...@mb...] > > Envoyé : samedi 1 août 2009 01:34 > > À : ast...@li... > > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > > > > > Hi Bruno, > > > > Answer, like many other features in AGI, correspond fairly directly > to > > applications in the dialplan. Also, many applications in the dialplan > > will immediately do an answer before they continue. > > > > In the case of the dialplan, there is a channel directly connected to > > the dialplan. In the case of AGI, there is a channel connected to the > > AGI script. > > > > In the case of the Manager API, no such channel exists. You can use > the > > Manager API even if there zero channels currently up. So it's not > > really > > clear what you'd answer. Furthermore, even if channels were up, the > > Manager API isn't providing an endpoint for them, it is an observer > of > > those channels. It can bridge channels, but it isn't an endpoint of > > that > > bridge. > > > > You might be interested in AsyncAGI(), which puts a channel into an > > empty holding state, and waits for AGI commands to be executed on the > > channel, *through* the Manager interface. But even in this case, it's > > basically just an asynchronous version of AGI with Manager doing the > > message passing for AGI. > > > > Cheers, > > > > Martin > > > > > > Bruno.Konik wrote: > > > Hello, > > > > > > I am wondering about the Answer command of AGI. I understand that > it > > answers > > > a channel, right? Does it makes an auto-answer of a call on any > type > > of > > > device (excluding analog)? I guess that the device should support > > such a > > > function, shouldn't it? > > > > > > If I am not mistaken, this command is not available within the > > Manager API. > > > Does anybody knows why? If it is available from AGI why can't it be > > from > > > Manager API? > > > > > > Thanks for your help, > > > > > > Bruno Konik > > > > > > > > > > > > > > > ------------------------------------------------------------------- > -- > > --------- > > > Let Crystal Reports handle the reporting - Free Crystal Reports > 2008 > > 30-Day > > > trial. Simplify your report design, integration and deployment - > and > > focus on > > > what you do best, core application coding. Discover what's new with > > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > --------------------------------------------------------------------- > -- > > ------- > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > > 30-Day > > trial. Simplify your report design, integration and deployment - and > > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > --------------------------------------------------------------------- > -- > > ---------------- > > Orange vous informe que cet e-mail a ete controle par l'anti-virus > > mail. > > Aucun virus connu a ce jour par nos services n'a ete detecte. > > > > > > ----------------------------------------------------------------------- > ----- > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ----------------------------------------------------------------------- > ------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > ----------------------------------------------------------------------- > ---------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus > mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. |
From: aboulabbes y. <o.a...@me...> - 2009-08-01 15:41:51
|
In asterisk, you let an agent answer your call from ACD by pressing '#'(look at config asterisk) . By pressing '#',the sip client send a dtmf to asterisk and the call is answered. The sip client must configured is in autoanswered mode and pressing # answer the call. So to answer this call by AMI, you inject a frame dtmf in the right channel. But for any sip call, I don t know if when put a call like call from queue . Anyway, we can modify asterisk source to this by putting a new option. If you speak French , we can talk in French better than English. -----Message d'origine----- De : Bruno.Konik [mailto:bru...@un...] Envoyé : samedi 1 août 2009 15:17 À : ast...@li... Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI I don't understand what you mean. How sending dtmf to asterisk could force an answer of the call? Can you explain please? In my situation, an extension receives a call, a channel is created in the state 'ringing'. How can I force the phone to answer so that the channel would go in the state 'up'? BTW isn't there a PlayDtmfAction command in asterisk-java? > -----Message d'origine----- > De : aboulabbes younes [mailto:o.a...@me...] > Envoyé : samedi 1 août 2009 17:31 > À : ast...@li... > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > > > > You can answer your call by sending dtmf to asterisk. Asterisk manager > Interface don't contain any function to send dtmf digit into a specific > channel but you can add a new function to ami for inject a dtmf frame > in > your channel. > It s that you want to do ?? > > -----Message d'origine----- > De : Bruno.Konik [mailto:bru...@un...] > Envoyé : samedi 1 août 2009 14:00 > À : ast...@li... > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > Thanks for your answer Martin, > > I understand better why the answer() exists for the AGI script. > Actually, I > was mistaken about the command. > > My question remains then: how is it possible to force a phone to answer > a > call for which it is alerting. In standard CTI protocols, there is a > 'AnswerCall' command. When the PBX receives this command from an > application, it sends a specific (depending on the phone and on the > PBX) > command to the phone forcing it to answer the call. Of course, the > phone > must know how to treat this command even if the handset is not up. When > the > manufacturer of the phone is also the manufactuer of the PBX it is > easy. But > I think this is also possible for Asterisk. For example, SIP phones can > accept the NOTIFY talk/hold packages, which make them answer or put the > current call on hold. > I was then wondering if something like this could not be available in > the > Manager API. I know that we can force the addition of a SIP header when > originating calls. This can be used to add a specific header (with > auto-answer information) to force a SIP phone to make the call > originate > immediately without ringing first and waiting for the user to lift up > the > handset for making the call oringinate. Many SIP phone support this > today > (although the header seems to be phone specific). In your opinion, > couldn't > this be possible for answering alerting calls? > > And the last question: do you know how I could answer a call by the > manager > (not the AGI) currently (even if this requests a dialplan > modification)? > > Thanks for your help, > > Bruno > > > -----Message d'origine----- > > De : Martin B. Smith [mailto:ma...@mb...] > > Envoyé : samedi 1 août 2009 01:34 > > À : ast...@li... > > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > > > > > Hi Bruno, > > > > Answer, like many other features in AGI, correspond fairly directly > to > > applications in the dialplan. Also, many applications in the dialplan > > will immediately do an answer before they continue. > > > > In the case of the dialplan, there is a channel directly connected to > > the dialplan. In the case of AGI, there is a channel connected to the > > AGI script. > > > > In the case of the Manager API, no such channel exists. You can use > the > > Manager API even if there zero channels currently up. So it's not > > really > > clear what you'd answer. Furthermore, even if channels were up, the > > Manager API isn't providing an endpoint for them, it is an observer > of > > those channels. It can bridge channels, but it isn't an endpoint of > > that > > bridge. > > > > You might be interested in AsyncAGI(), which puts a channel into an > > empty holding state, and waits for AGI commands to be executed on the > > channel, *through* the Manager interface. But even in this case, it's > > basically just an asynchronous version of AGI with Manager doing the > > message passing for AGI. > > > > Cheers, > > > > Martin > > > > > > Bruno.Konik wrote: > > > Hello, > > > > > > I am wondering about the Answer command of AGI. I understand that > it > > answers > > > a channel, right? Does it makes an auto-answer of a call on any > type > > of > > > device (excluding analog)? I guess that the device should support > > such a > > > function, shouldn't it? > > > > > > If I am not mistaken, this command is not available within the > > Manager API. > > > Does anybody knows why? If it is available from AGI why can't it be > > from > > > Manager API? > > > > > > Thanks for your help, > > > > > > Bruno Konik > > > > > > > > > > > > > > > ------------------------------------------------------------------- > -- > > --------- > > > Let Crystal Reports handle the reporting - Free Crystal Reports > 2008 > > 30-Day > > > trial. Simplify your report design, integration and deployment - > and > > focus on > > > what you do best, core application coding. Discover what's new with > > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > --------------------------------------------------------------------- > -- > > ------- > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > > 30-Day > > trial. Simplify your report design, integration and deployment - and > > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > --------------------------------------------------------------------- > -- > > ---------------- > > Orange vous informe que cet e-mail a ete controle par l'anti-virus > > mail. > > Aucun virus connu a ce jour par nos services n'a ete detecte. > > > > > > ----------------------------------------------------------------------- > ----- > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ----------------------------------------------------------------------- > ------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > ----------------------------------------------------------------------- > ---------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus > mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Bruno.Konik <bru...@un...> - 2009-08-01 15:56:00
|
I have just noticed that the SipNotifyAction has been added in Asterisk 1.6. I guess this would help me, I need to try it. Of course the question remains for IAX phones. > -----Message d'origine----- > De : Bruno.Konik [mailto:bru...@un...] > Envoyé : samedi 1 août 2009 16:00 > À : ast...@li... > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > > Thanks for your answer Martin, > > I understand better why the answer() exists for the AGI script. > Actually, I > was mistaken about the command. > > My question remains then: how is it possible to force a phone to answer > a > call for which it is alerting. In standard CTI protocols, there is a > 'AnswerCall' command. When the PBX receives this command from an > application, it sends a specific (depending on the phone and on the > PBX) > command to the phone forcing it to answer the call. Of course, the > phone > must know how to treat this command even if the handset is not up. When > the > manufacturer of the phone is also the manufactuer of the PBX it is > easy. But > I think this is also possible for Asterisk. For example, SIP phones can > accept the NOTIFY talk/hold packages, which make them answer or put the > current call on hold. > I was then wondering if something like this could not be available in > the > Manager API. I know that we can force the addition of a SIP header when > originating calls. This can be used to add a specific header (with > auto-answer information) to force a SIP phone to make the call > originate > immediately without ringing first and waiting for the user to lift up > the > handset for making the call oringinate. Many SIP phone support this > today > (although the header seems to be phone specific). In your opinion, > couldn't > this be possible for answering alerting calls? > > And the last question: do you know how I could answer a call by the > manager > (not the AGI) currently (even if this requests a dialplan > modification)? > > Thanks for your help, > > Bruno > > > -----Message d'origine----- > > De : Martin B. Smith [mailto:ma...@mb...] > > Envoyé : samedi 1 août 2009 01:34 > > À : ast...@li... > > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > > > > > Hi Bruno, > > > > Answer, like many other features in AGI, correspond fairly directly > to > > applications in the dialplan. Also, many applications in the dialplan > > will immediately do an answer before they continue. > > > > In the case of the dialplan, there is a channel directly connected to > > the dialplan. In the case of AGI, there is a channel connected to the > > AGI script. > > > > In the case of the Manager API, no such channel exists. You can use > the > > Manager API even if there zero channels currently up. So it's not > > really > > clear what you'd answer. Furthermore, even if channels were up, the > > Manager API isn't providing an endpoint for them, it is an observer > of > > those channels. It can bridge channels, but it isn't an endpoint of > > that > > bridge. > > > > You might be interested in AsyncAGI(), which puts a channel into an > > empty holding state, and waits for AGI commands to be executed on the > > channel, *through* the Manager interface. But even in this case, it's > > basically just an asynchronous version of AGI with Manager doing the > > message passing for AGI. > > > > Cheers, > > > > Martin > > > > > > Bruno.Konik wrote: > > > Hello, > > > > > > I am wondering about the Answer command of AGI. I understand that > it > > answers > > > a channel, right? Does it makes an auto-answer of a call on any > type > > of > > > device (excluding analog)? I guess that the device should support > > such a > > > function, shouldn't it? > > > > > > If I am not mistaken, this command is not available within the > > Manager API. > > > Does anybody knows why? If it is available from AGI why can't it be > > from > > > Manager API? > > > > > > Thanks for your help, > > > > > > Bruno Konik > > > > > > > > > > > > > > > ------------------------------------------------------------------- > -- > > --------- > > > Let Crystal Reports handle the reporting - Free Crystal Reports > 2008 > > 30-Day > > > trial. Simplify your report design, integration and deployment - > and > > focus on > > > what you do best, core application coding. Discover what's new with > > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > --------------------------------------------------------------------- > -- > > ------- > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > > 30-Day > > trial. Simplify your report design, integration and deployment - and > > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > --------------------------------------------------------------------- > -- > > ---------------- > > Orange vous informe que cet e-mail a ete controle par l'anti-virus > > mail. > > Aucun virus connu a ce jour par nos services n'a ete detecte. > > > > > > ----------------------------------------------------------------------- > ------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > ----------------------------------------------------------------------- > ---------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus > mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. |
From: Martin B. S. <ma...@mb...> - 2009-08-01 16:42:53
|
Hi Bruno, Your question is potentially out of the realm of the Asterisk-Java mailing list. Have you searched on voip-info.org? IIRC, there's a long list of phones and how to make them autoanswer. There's a bunch of different ways that work for various phones. Once you figure out how you want to do it, then we can talk Asterisk-Java for making it happen. Cheers, Martin Bruno.Konik wrote: > Thanks for your answer Martin, > > I understand better why the answer() exists for the AGI script. Actually, I > was mistaken about the command. > > My question remains then: how is it possible to force a phone to answer a > call for which it is alerting. In standard CTI protocols, there is a > 'AnswerCall' command. When the PBX receives this command from an > application, it sends a specific (depending on the phone and on the PBX) > command to the phone forcing it to answer the call. Of course, the phone > must know how to treat this command even if the handset is not up. When the > manufacturer of the phone is also the manufactuer of the PBX it is easy. But > I think this is also possible for Asterisk. For example, SIP phones can > accept the NOTIFY talk/hold packages, which make them answer or put the > current call on hold. > I was then wondering if something like this could not be available in the > Manager API. I know that we can force the addition of a SIP header when > originating calls. This can be used to add a specific header (with > auto-answer information) to force a SIP phone to make the call originate > immediately without ringing first and waiting for the user to lift up the > handset for making the call oringinate. Many SIP phone support this today > (although the header seems to be phone specific). In your opinion, couldn't > this be possible for answering alerting calls? > > And the last question: do you know how I could answer a call by the manager > (not the AGI) currently (even if this requests a dialplan modification)? > > Thanks for your help, > > Bruno > >> -----Message d'origine----- >> De : Martin B. Smith [mailto:ma...@mb...] >> Envoyé : samedi 1 août 2009 01:34 >> À : ast...@li... >> Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI >> >> >> Hi Bruno, >> >> Answer, like many other features in AGI, correspond fairly directly to >> applications in the dialplan. Also, many applications in the dialplan >> will immediately do an answer before they continue. >> >> In the case of the dialplan, there is a channel directly connected to >> the dialplan. In the case of AGI, there is a channel connected to the >> AGI script. >> >> In the case of the Manager API, no such channel exists. You can use the >> Manager API even if there zero channels currently up. So it's not >> really >> clear what you'd answer. Furthermore, even if channels were up, the >> Manager API isn't providing an endpoint for them, it is an observer of >> those channels. It can bridge channels, but it isn't an endpoint of >> that >> bridge. >> >> You might be interested in AsyncAGI(), which puts a channel into an >> empty holding state, and waits for AGI commands to be executed on the >> channel, *through* the Manager interface. But even in this case, it's >> basically just an asynchronous version of AGI with Manager doing the >> message passing for AGI. >> >> Cheers, >> >> Martin >> >> >> Bruno.Konik wrote: >>> Hello, >>> >>> I am wondering about the Answer command of AGI. I understand that it >> answers >>> a channel, right? Does it makes an auto-answer of a call on any type >> of >>> device (excluding analog)? I guess that the device should support >> such a >>> function, shouldn't it? >>> >>> If I am not mistaken, this command is not available within the >> Manager API. >>> Does anybody knows why? If it is available from AGI why can't it be >> from >>> Manager API? >>> >>> Thanks for your help, >>> >>> Bruno Konik >>> >>> >>> >>> >>> --------------------------------------------------------------------- >> --------- >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >>> trial. Simplify your report design, integration and deployment - and >> focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> ----------------------------------------------------------------------- >> ------- >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and >> focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> ----------------------------------------------------------------------- >> ---------------- >> Orange vous informe que cet e-mail a ete controle par l'anti-virus >> mail. >> Aucun virus connu a ce jour par nos services n'a ete detecte. > > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Bruno.Konik <bru...@un...> - 2009-08-01 17:14:32
|
I agree with you Martin. The subject is rather on Asterisk's side. For the time being, SipNotifyAction may be a first step! Best Regards, Bruno > -----Message d'origine----- > De : Martin B. Smith [mailto:ma...@mb...] > Envoyé : samedi 1 août 2009 18:43 > À : ast...@li... > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > > Hi Bruno, > > Your question is potentially out of the realm of the Asterisk-Java > mailing list. Have you searched on voip-info.org? IIRC, there's a long > list of phones and how to make them autoanswer. There's a bunch of > different ways that work for various phones. Once you figure out how > you > want to do it, then we can talk Asterisk-Java for making it happen. > > Cheers, > > Martin > > > Bruno.Konik wrote: > > Thanks for your answer Martin, > > > > I understand better why the answer() exists for the AGI script. > Actually, I > > was mistaken about the command. > > > > My question remains then: how is it possible to force a phone to > answer a > > call for which it is alerting. In standard CTI protocols, there is a > > 'AnswerCall' command. When the PBX receives this command from an > > application, it sends a specific (depending on the phone and on the > PBX) > > command to the phone forcing it to answer the call. Of course, the > phone > > must know how to treat this command even if the handset is not up. > When the > > manufacturer of the phone is also the manufactuer of the PBX it is > easy. But > > I think this is also possible for Asterisk. For example, SIP phones > can > > accept the NOTIFY talk/hold packages, which make them answer or put > the > > current call on hold. > > I was then wondering if something like this could not be available in > the > > Manager API. I know that we can force the addition of a SIP header > when > > originating calls. This can be used to add a specific header (with > > auto-answer information) to force a SIP phone to make the call > originate > > immediately without ringing first and waiting for the user to lift up > the > > handset for making the call oringinate. Many SIP phone support this > today > > (although the header seems to be phone specific). In your opinion, > couldn't > > this be possible for answering alerting calls? > > > > And the last question: do you know how I could answer a call by the > manager > > (not the AGI) currently (even if this requests a dialplan > modification)? > > > > Thanks for your help, > > > > Bruno > > > >> -----Message d'origine----- > >> De : Martin B. Smith [mailto:ma...@mb...] > >> Envoyé : samedi 1 août 2009 01:34 > >> À : ast...@li... > >> Objet : Re: [Asterisk-java-users] About the Answer command of > FastAGI > >> > >> > >> Hi Bruno, > >> > >> Answer, like many other features in AGI, correspond fairly directly > to > >> applications in the dialplan. Also, many applications in the > dialplan > >> will immediately do an answer before they continue. > >> > >> In the case of the dialplan, there is a channel directly connected > to > >> the dialplan. In the case of AGI, there is a channel connected to > the > >> AGI script. > >> > >> In the case of the Manager API, no such channel exists. You can use > the > >> Manager API even if there zero channels currently up. So it's not > >> really > >> clear what you'd answer. Furthermore, even if channels were up, the > >> Manager API isn't providing an endpoint for them, it is an observer > of > >> those channels. It can bridge channels, but it isn't an endpoint of > >> that > >> bridge. > >> > >> You might be interested in AsyncAGI(), which puts a channel into an > >> empty holding state, and waits for AGI commands to be executed on > the > >> channel, *through* the Manager interface. But even in this case, > it's > >> basically just an asynchronous version of AGI with Manager doing the > >> message passing for AGI. > >> > >> Cheers, > >> > >> Martin > >> > >> > >> Bruno.Konik wrote: > >>> Hello, > >>> > >>> I am wondering about the Answer command of AGI. I understand that > it > >> answers > >>> a channel, right? Does it makes an auto-answer of a call on any > type > >> of > >>> device (excluding analog)? I guess that the device should support > >> such a > >>> function, shouldn't it? > >>> > >>> If I am not mistaken, this command is not available within the > >> Manager API. > >>> Does anybody knows why? If it is available from AGI why can't it be > >> from > >>> Manager API? > >>> > >>> Thanks for your help, > >>> > >>> Bruno Konik > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------- > -- > >> --------- > >>> Let Crystal Reports handle the reporting - Free Crystal Reports > 2008 > >> 30-Day > >>> trial. Simplify your report design, integration and deployment - > and > >> focus on > >>> what you do best, core application coding. Discover what's new with > >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >>> _______________________________________________ > >>> Asterisk-java-users mailing list > >>> Ast...@li... > >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > >> > >> -------------------------------------------------------------------- > --- > >> ------- > >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > >> 30-Day > >> trial. Simplify your report design, integration and deployment - and > >> focus on > >> what you do best, core application coding. Discover what's new with > >> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >> _______________________________________________ > >> Asterisk-java-users mailing list > >> Ast...@li... > >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > >> > >> -------------------------------------------------------------------- > --- > >> ---------------- > >> Orange vous informe que cet e-mail a ete controle par l'anti-virus > >> mail. > >> Aucun virus connu a ce jour par nos services n'a ete detecte. > > > > > > > > > > > > --------------------------------------------------------------------- > --------- > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ----------------------------------------------------------------------- > ------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > ----------------------------------------------------------------------- > ---------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus > mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. |
From: johnny_xing <joh...@ba...> - 2009-09-01 03:28:56
|
Hi, I noticed that asterisk manager interface will only accept the originate commands in sequential order. For example, if I want to ring two extensions through the AMI, and while first extension is ringing, AMI won't execute and ring second extension until first extension has answered the call. Anybody has any ideas as I had the same results even tested with telnet commands to AMI interface. Thanks & Best Regards, Johnny Xing -----Original Message----- From: Bruno.Konik [mailto:bru...@un...] Sent: 2009年8月2日 1:14 To: ast...@li... Subject: Re: [Asterisk-java-users] About the Answer command of FastAGI I agree with you Martin. The subject is rather on Asterisk's side. For the time being, SipNotifyAction may be a first step! Best Regards, Bruno > -----Message d'origine----- > De : Martin B. Smith [mailto:ma...@mb...] > Envoyé : samedi 1 août 2009 18:43 > À : ast...@li... > Objet : Re: [Asterisk-java-users] About the Answer command of FastAGI > > > Hi Bruno, > > Your question is potentially out of the realm of the Asterisk-Java > mailing list. Have you searched on voip-info.org? IIRC, there's a long > list of phones and how to make them autoanswer. There's a bunch of > different ways that work for various phones. Once you figure out how > you > want to do it, then we can talk Asterisk-Java for making it happen. > > Cheers, > > Martin > > > Bruno.Konik wrote: > > Thanks for your answer Martin, > > > > I understand better why the answer() exists for the AGI script. > Actually, I > > was mistaken about the command. > > > > My question remains then: how is it possible to force a phone to > answer a > > call for which it is alerting. In standard CTI protocols, there is a > > 'AnswerCall' command. When the PBX receives this command from an > > application, it sends a specific (depending on the phone and on the > PBX) > > command to the phone forcing it to answer the call. Of course, the > phone > > must know how to treat this command even if the handset is not up. > When the > > manufacturer of the phone is also the manufactuer of the PBX it is > easy. But > > I think this is also possible for Asterisk. For example, SIP phones > can > > accept the NOTIFY talk/hold packages, which make them answer or put > the > > current call on hold. > > I was then wondering if something like this could not be available in > the > > Manager API. I know that we can force the addition of a SIP header > when > > originating calls. This can be used to add a specific header (with > > auto-answer information) to force a SIP phone to make the call > originate > > immediately without ringing first and waiting for the user to lift up > the > > handset for making the call oringinate. Many SIP phone support this > today > > (although the header seems to be phone specific). In your opinion, > couldn't > > this be possible for answering alerting calls? > > > > And the last question: do you know how I could answer a call by the > manager > > (not the AGI) currently (even if this requests a dialplan > modification)? > > > > Thanks for your help, > > > > Bruno > > > >> -----Message d'origine----- > >> De : Martin B. Smith [mailto:ma...@mb...] > >> Envoyé : samedi 1 août 2009 01:34 > >> À : ast...@li... > >> Objet : Re: [Asterisk-java-users] About the Answer command of > FastAGI > >> > >> > >> Hi Bruno, > >> > >> Answer, like many other features in AGI, correspond fairly directly > to > >> applications in the dialplan. Also, many applications in the > dialplan > >> will immediately do an answer before they continue. > >> > >> In the case of the dialplan, there is a channel directly connected > to > >> the dialplan. In the case of AGI, there is a channel connected to > the > >> AGI script. > >> > >> In the case of the Manager API, no such channel exists. You can use > the > >> Manager API even if there zero channels currently up. So it's not > >> really > >> clear what you'd answer. Furthermore, even if channels were up, the > >> Manager API isn't providing an endpoint for them, it is an observer > of > >> those channels. It can bridge channels, but it isn't an endpoint of > >> that > >> bridge. > >> > >> You might be interested in AsyncAGI(), which puts a channel into an > >> empty holding state, and waits for AGI commands to be executed on > the > >> channel, *through* the Manager interface. But even in this case, > it's > >> basically just an asynchronous version of AGI with Manager doing the > >> message passing for AGI. > >> > >> Cheers, > >> > >> Martin > >> > >> > >> Bruno.Konik wrote: > >>> Hello, > >>> > >>> I am wondering about the Answer command of AGI. I understand that > it > >> answers > >>> a channel, right? Does it makes an auto-answer of a call on any > type > >> of > >>> device (excluding analog)? I guess that the device should support > >> such a > >>> function, shouldn't it? > >>> > >>> If I am not mistaken, this command is not available within the > >> Manager API. > >>> Does anybody knows why? If it is available from AGI why can't it be > >> from > >>> Manager API? > >>> > >>> Thanks for your help, > >>> > >>> Bruno Konik > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------- > -- > >> --------- > >>> Let Crystal Reports handle the reporting - Free Crystal Reports > 2008 > >> 30-Day > >>> trial. Simplify your report design, integration and deployment - > and > >> focus on > >>> what you do best, core application coding. Discover what's new with > >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >>> _______________________________________________ > >>> Asterisk-java-users mailing list > >>> Ast...@li... > >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > >> > >> -------------------------------------------------------------------- > --- > >> ------- > >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > >> 30-Day > >> trial. Simplify your report design, integration and deployment - and > >> focus on > >> what you do best, core application coding. Discover what's new with > >> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >> _______________________________________________ > >> Asterisk-java-users mailing list > >> Ast...@li... > >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > >> > >> -------------------------------------------------------------------- > --- > >> ---------------- > >> Orange vous informe que cet e-mail a ete controle par l'anti-virus > >> mail. > >> Aucun virus connu a ce jour par nos services n'a ete detecte. > > > > > > > > > > > > --------------------------------------------------------------------- > --------- > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ----------------------------------------------------------------------- > ------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > ----------------------------------------------------------------------- > ---------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus > mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users __________ Information from ESET NOD32 Antivirus, version of virus signature database 4299 (20090802) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4376 (20090828) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |
From: Miguel M. <mm...@mi...> - 2009-09-01 16:25:48
|
johnny_xing escribió: > > Hi, I noticed that asterisk manager interface will only accept the > originate commands in sequential order. For example, if I want to ring > two extensions through the AMI, and while first extension is ringing, > AMI won't execute and ring second extension until first extension has > answered the call. > > Anybody has any ideas as I had the same results even tested with > telnet commands to AMI interface. > > Thanks & Best Regards, > Hi, Did you try using OriginateAction with the async option? Cheers, -- Ing. Miguel Molina Grupo de Tecnología Millenium Phone Center PBX: (+57 1)6500800 ext. 1201 Fax: (+57 1)6500816 Móvil: (+57)3138873587 |
From: Bruno.Konik <bru...@un...> - 2010-02-03 13:55:58
|
Hello, asterisk-java-1.0.0-M3 and Asterisk 1.6.1.4. I have problems sending the PingAction: PingAction pingAction = new PingAction(); pingAction.setActionId("#ping"); ManagerResponse response = managerConnection.sendAction(pingAction, 1000); Gives: 2010-02-03 14:08:02,350 [Asterisk-Java ManagerConnection-0-Reader-0] WARN ResponseBuilderImpl - Unable to set property 'ping' to 'Pong' on org.asteriskjava.manager.response.ManagerResponse: no setter. Please report at http://jira.reucon.org/browse/AJ 2010-02-03 14:08:02,350 [Asterisk-Java ManagerConnection-0-Reader-0] DEBUG ManagerConnectionImpl - Dispatching response with internalActionId 'null': org.asteriskjava.manager.response.ManagerResponse: actionId='null'; message='null'; response='Success'; uniqueId='null'; systemHashcode=10626673 2010-02-03 14:08:02,350 [Asterisk-Java ManagerConnection-0-Reader-0] ERROR ManagerConnectionImpl - Unable to retrieve internalActionId from response: actionId 'null': org.asteriskjava.manager.response.ManagerResponse: actionId='null'; message='null'; response='Success'; uniqueId='null'; systemHashcode=10626673 then org.asteriskjava.manager.TimeoutException: Timeout waiting for response to Ping (actionId: #ping) and I never get the response. Is there a way to workaround this? Note that the PingThread fails the same way. Thanks for helping. Bruno Konik - uniGone |
From: Stefan R. <ste...@re...> - 2010-02-03 14:00:09
|
Bruno, This is known bug in Asterisk 1.6. The action id is missing in the response so there is no way to relate the ping response to the ping request. The bug is fixed in Asterisk 1.6.2. Best regards, Stefan -- reuter network consulting Neusser Str. 110 50670 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Bruno.Konik <bru...@un...> - 2010-02-03 14:25:41
|
Than you very much. > -----Message d'origine----- > De : Stefan Reuter [mailto:ste...@re...] > Envoyé : mercredi 3 février 2010 15:01 > À : ast...@li... > Objet : Re: [Asterisk-java-users] Problem with the PingAction > > > Bruno, > > This is known bug in Asterisk 1.6. The action id is missing in the > response so there is no way to relate the ping response to the ping > request. > The bug is fixed in Asterisk 1.6.2. > > Best regards, > > Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50670 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: ste...@re... > Jabber: ste...@re... > WWW: http://www.reucon.com > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > ----------------------------------------------------------------------- > ------- > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term > contracts > Personal 24x7 support from experience hosting pros just a phone call > away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > ----------------------------------------------------------------------- > ---------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus > mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. |