Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Adding an Event on chan_sip.c (asterisk 1.8.22)


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
valter at fastway.com.br
Guest





PostPosted: Wed Jan 07, 2015 2:18 pm    Post subject: [asterisk-users] Adding an Event on chan_sip.c (asterisk 1.8 Reply with quote

In some situations I got the following message on asterisk console:


 Autodestruct on dialog '857128833@192.168.2.129 (857128833@192.168.2.129)' with owner SIP/1015-00000002 in place (Method: BYE). Rescheduling destruction for 10000 ms



I would like to raise a manager event, to take some action when it is happening.


To do so, I believed that was just a matter of adding an manger_event call as follows:


owner = sip_pvt_lock_full(p);
if (owner) {
ast_log(LOG_WARNING, "Autodestruct on dialog '%s' with owner %s in place (Method: %s). Rescheduling destruction for 10000 ms\n", p->callid, owner->name, sip_methods[p->method].text);
manager_event(EVENT_FLAG_SYSTEM, "MY-HANGUP-ALERT", "channel: %s\r\n", owner->name);




But for some reason, I don't get such event on my ami client.


What is going wrong?


Thanks,


Valter
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services