From Jens, 8 Years ago, written in Plain Text.
- view diff
Embed
  1.                 --wait for the file to be written before proceeding
  2.                         session:sleep(100);
  3.                 --end the call
  4.                         session:hangup();
  5.  
  6.                 local event = freeswitch.Event('PRESENCE_IN');
  7.               event:addHeader('proto', 'sip');
  8.               event:addHeader('from', presence_id..'@'..domain_name);
  9.               event:addHeader('event_type', 'presence');
  10.               event:addHeader('alt_event_type', 'dialog');
  11.               event:addHeader('presence-call-direction', 'inbound');
  12.               event:addHeader('answer-state', 'confirmed');
  13.               event:addHeader('unique-id', extension_uuid);
  14.               event:addHeader('Caller-Destination-Number', '*72');
  15.               event:fire();
  16.