Christian Peter
2005-Aug-13 02:59 UTC
[Asterisk-Users] Identify call flow from manager events
Hi again, next problem I have is: I want to write an application which connects via manager api and displays the current telephone state. I know I have the action id to identify events which belong together. But if I have a call going inside asterisk and asterisk rings a phone these are two channels with different action ids. How can I know that these channels belong together? I know there are link events but what if the phone doesn't answer? Then I have two separate channels. Can I rely on the number in the action id after the dot? Eg. 111111111111111.0 is the incoming channel and 111111111111111.1 is the next channel belonging to the incoming call action I mean if the next channel which starts with 111111111111111. is created, can I assume that this channel belongs to the incoming channel? Background: My other problem was that MISDN displays the wrong callerid. I want to check if an incoming call is via MISDN and display the fixed callerid in my application (eg. a missing incoming call without a link event). Thanks Christian
Stefan Reuter
2005-Aug-13 03:53 UTC
[Asterisk-Users] Identify call flow from manager events
On Sat, 2005-08-13 at 11:59 +0200, Christian Peter wrote:> I know I have the action id to identify events which belong together. > But if I have a call going inside asterisk and asterisk rings a phone > these are two channels with different action ids. How can I know that > these channels belong together? > > I know there are link events but what if the phone doesn't answer? Then > I have two separate channels.With Asterisk stable all you get are the link events when the channels are linked. With Asterisk CVS-HEAD there is a dial event that informs your Manager application at dial time about the caller ids and the ids of the channels.> Can I rely on the number in the action id after the dot? Eg. > 111111111111111.0 is the incoming channel and > 111111111111111.1 is the next channel belonging to the incoming call > actionnot if other channels are created around that time. =Stefan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050813/a95ee0f9/attachment.pgp