Re: [Asterisk-java-users] Originating calls for automatic messaging
Brought to you by:
srt
From: Carlos G M. <tr...@ac...> - 2006-09-29 22:29:09
|
Stefan, I've been testing this, mainly using originateToExtensionAsync() because it's easier to tell apart what's going on. "success" is returned as soon as the first (originating) channel is instantiated. Also, using Local channels to originate is not giving any real reason for the error, I guess because the channel is lost right away. I did many test extensions like: ; Test answer and hold exten => 8506,1,Answer exten => 8506,n,Wait,300 ; Test N/A exten=> 8507,1,Ringing() exten=> 8507,n,Wait(60) ; Test congestion exten=> 8508,1,Congestion() ; Test busy exten=> 8509,1,Busy() and by calling from/to different ones it's easy to see the behaviour. I will fall back to manager API (instead of live) and see if I can understand how to do it. -Carlos Stefan Reuter @ 29/09/2006 11:58 -0300 dixit: > Carlos G Mendioroz wrote: >> Yes, and it sort of works, but I don't get access to the failure >> conditions. (i.e. Busy becomes channel unavailable) :( >> >> Hmm, I thought it was going to be an easy one ... > > no. detecting the cause for a failure is one of the most complicated > things with the originate stuff and the current implementation in > Asterisk-Java is probably far from excellent in this regard. > You can do me a favor and provide me with a detailed description of the > situations (i.e. what you did in your code and whether the caller/callee > is busy an), a dump of the events received through the Manager API (see > http://asterisk-java.org/page/aj?entry=debugging_manager_api) and the > logs. Then I can further investigate and possibly enhance the detection. > > =Stefan > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- Carlos G Mendioroz <tr...@ac...> |