[asterisk-dev] can i send proper DNID to manager on hangup

Kamran Ahmad p_kami at yahoo.com
Wed Jul 12 09:27:09 MST 2006


i am sending DNID to manager on hangup(channel.c line
1341) so that any application using manager can catch
this DNID. for each call two Hangup events are fired
at manager(one for caller 2nd for callee). the problem
is that On first hangup event DNID is empty and in
second event DNID is OK. secondly can i send last
destination number in this DNID (like if call is
forwarded to more then one EXTENSION which one
received this call)

any comments

------i am doing like this----------------
        manager_event(EVENT_FLAG_CALL, "Hangup",
                        "Channel: %s\r\n"
                        "DNID: %s\r\n"
                        "Uniqueid: %s\r\n"
                        "Cause: %d\r\n"
                        "Cause-txt: %s\r\n",
                        chan->name,
                        chan->cid.cid_dnid,
                        chan->uniqueid,
                        chan->hangupcause,
                       
ast_cause2str(chan->hangupcause)
                        );


thanks

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the asterisk-dev mailing list