Re: [Asterisk-java-users] Channel Ringing time and ringtones number
Brought to you by:
srt
From: Zoumana T. <zou...@gm...> - 2014-04-26 09:46:21
|
Hi, Thanks for your answers. Yes the events dump is great. In fact i have just wrote the code. Will place calls later to see. Have a good weekend, Zoumana Le 26 avr. 2014 11:37, "Yves A." <yv...@gm...> a écrit : > hi, > > state ringing occurs only once per call... but as always there may be > exceptions... whenever the phone stops ringing after dial finished and > nobody picked up, > it will again fire "ringing" if it is dialed again during the same call... > this may happen e.g. if your extension is part of a queue or if your > dialplan says to call > a phone again after dial-timeout... so if dialplan reaches a dial command, > and the extension is available, it will give you an event. > > concerning channelstatedesc: yes, up means channel is picked up. depending > on what you do you´ll receive other events too signalling that the call is > "up" or "bridged" or "linked". I always recommend to write a catch all > listener and print out any event during a testcall to see what happens > when, because > sometime things really depend on dialpan and of course on version of > asterisk you´re using. > > yves > > > Am 25.04.2014 16:35, schrieb Zoumana TRAORE: > > Yes with CDR implementation i will be forced to wait the end of the > call. > For << realtime>> > i had a idea to put listener on NewStateEvent to look for channelStateDesc > Ringing value. > -But i don't know if this event comes up for every ringtone so i can > measure and even count. > -the other question: does channelStateDesc Up mean the call has been > picked -up ? If not, do you (or someone) know the event triggered by Answer > on a channel ? > > Zoumana > > > > *--- * > > *Zoumana TRAORE* > > mob. (+33)0699783622 > > > 2014-04-25 16:16 GMT+02:00 Yves A. <yv...@gm...>: > >> OK, i thought you would need that information in realtime or right in >> that moment when the call is picked up... >> >> yves >> >> >> Am 25.04.2014 16:07, schrieb Zoumana TRAORE: >> >> Hello Yves, >> >> Yes i was looking for native way. >> I think i will get CDR(duration|billsec) withing AJ to do so... it >> should work. >> >> Thank you for your answer. >> >> Regards, >> Zoumana >> >> >> >> >> *--- * >> >> *Zoumana TRAORE* >> >> mob. (+33)0699783622 >> >> >> 2014-04-25 15:58 GMT+02:00 Yves A. <yv...@gm...>: >> >>> Hi, >>> >>> natively...? no. >>> you could of course extend either asterisk or asterisk-java or use >>> listener to calculate the time yourself. >>> >>> or you move any call into a queue first... queues will give you the >>> ringtime, but have the disadvantage, >>> that the call is TAKEN immediately (and produces costs on the customers >>> / callers side). >>> >>> yves >>> >>> Am 25.04.2014 14:39, schrieb Zoumana TRAORE: >>> >>> Hello everybody, >>> >>> Is there a way on a channel to retrieve ringing time? >>> (through AMI or AGI APIs) >>> >>> Regards, >>> >>> >>> *--- * >>> >>> *Zoumana TRAORE* >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Start Your Social Network Today - Download eXo Platform >>> Build your Enterprise Intranet with eXo Platform Software >>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready >>> Get Started Now And Turn Your Intranet Into A Collaboration Platformhttp://p.sf.net/sfu/ExoPlatform >>> >>> >>> >>> _______________________________________________ >>> Asterisk-java-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Start Your Social Network Today - Download eXo Platform >>> Build your Enterprise Intranet with eXo Platform Software >>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready >>> Get Started Now And Turn Your Intranet Into A Collaboration Platform >>> http://p.sf.net/sfu/ExoPlatform >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Start Your Social Network Today - Download eXo Platform >> Build your Enterprise Intranet with eXo Platform Software >> Java Based Open Source Intranet - Social, Extensible, Cloud Ready >> Get Started Now And Turn Your Intranet Into A Collaboration Platformhttp://p.sf.net/sfu/ExoPlatform >> >> >> >> _______________________________________________ >> Asterisk-java-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> >> >> >> ------------------------------------------------------------------------------ >> Start Your Social Network Today - Download eXo Platform >> Build your Enterprise Intranet with eXo Platform Software >> Java Based Open Source Intranet - Social, Extensible, Cloud Ready >> Get Started Now And Turn Your Intranet Into A Collaboration Platform >> http://p.sf.net/sfu/ExoPlatform >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platformhttp://p.sf.net/sfu/ExoPlatform > > > > _______________________________________________ > Asterisk-java-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |