[Asterisk-Dev] Asterisk Manager and app_dial challenge.
Brian Roy
b.t.roy at brianandkelly.ws
Tue Oct 12 15:35:17 MST 2004
Thanks - I was going to head down the channel path, but I think I have
found an even easier way. It should be possible in the do loop in
app_dial execute function to insert a manager_event command with both
unique ids like the Link event.
I was hoping to avoid modifying Asterisk any further. but what the heck.
I would also like to talk to you about your JAsterisk project and your
plan for VXML and CCXML. I have developed an architecture for a
non-intrusive solution which solves for what you are doing, what I am
doing and multiple other uses. It would be pure sip and only requires a
sip proxy (and gateway if needed).
Brian
That's exactly the issue I ran into while working on Jasterisk. My
solution was to modify pbx.ast_request to take an additional optional
parameter that could act as a call identifier and set a predefined
variable in the newly created channel to that variable. Then, when I
receive a "newchannel" or "newstate" event, I can find the channel and
check to see if it's already associated with a "call" object. Or, I
suppose you could modify the event to include a "Call_UID" field so you
wouldn't have to grab the variable from the channel directly (hey why
didn't I do that?).
Zac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20041012/fa9f252b/attachment.htm
More information about the asterisk-dev
mailing list