freeswitch事件
@Override
public void eventReceived(EslEvent event) {
String type = event.getEventHeaders().get("variable_originate_type");
if ("auto".equals(type)) {
freeSwitchUtil.autoEventReceived(event);
} else if ("manual".equals(type)) {
freeSwitchUtil.manualEventReceived(event);
}else if("auto".equals(type)){
String eventName = event.getEventName();
System.out.println("===========1X"+eventName);
Map<String, String> map = event.getEventHeaders();
for (String key :map.keySet()) {
System.out.println("key= "+ key + " and value= " + map.get(key));
}
System.out.println("===========2X");
Map<EslHeaders.Name, String> map1 = event.getMessageHeaders();
for (EslHeaders.Name key :map1.keySet()) {
System.out.println("key1= "+ key.toString() + " and value= " + map1.get(key));
}
System.out.println("===========3X");
}
}