[Asterisk-java-users] origination response.
Brought to you by:
srt
From: Jason W. <ja...@cl...> - 2007-06-20 13:21:34
|
Hello, I must apologize up front because I've asked this question before but I cannot locate the response. I am using Asterisk Java to originate calls through the manager interface, SIP and IAX. I use a PSTN termination provider and of course, the IAX and SIP channels are assigned dynamically. This means that when I send an originate action then only way I can know what channel the call is on is to 'register' it back to my program in the first line of the extensions, using a user event. Basically, I send an event from asterisk that tells java Manager the new channel with the recorded that I originally passed in a map. Then I can update a structure in my java program. So, big problem is this... when there is a busy, the extensions the program never enters the extensions, and therefore I don't know what channel it was, or that the call has failed. The response event doesn't tell me the call status. Is there a better way to handle this in the new version? Some new kind of origination that will keep some kind of communication between asterisk and java so that I know that the line was busy, and what channel was used? Thanks! Jason |