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

 

 

_______________________________________________
Asterisk-Dev mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to