本文整理了Java中jain.protocol.ip.mgcp.message.Notify.getTransactionHandle()
方法的一些代码示例,展示了Notify.getTransactionHandle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Notify.getTransactionHandle()
方法的具体详情如下:
包路径:jain.protocol.ip.mgcp.message.Notify
类名称:Notify
方法名:getTransactionHandle
暂无
代码示例来源:origin: org.restcomm/restcomm-connect.mgcp
final int transaction = notification.getTransactionHandle();
response.setTransactionHandle(transaction);
gateway.tell(response, self);
代码示例来源:origin: org.mobicents.examples/call-controller2-sbbs
response.setTransactionHandle(event.getTransactionHandle());
log.info("########## VOICE MAIL SBB: Sending Notify response["+response+"] to ["+event+"]["+event.getTransactionHandle()+"] ["+response.getTransactionHandle()+"]##########");
代码示例来源:origin: org.mobicents.examples/mgcp-demo-tts-sbb
public void onNotifyRequest(Notify event, ActivityContextInterface aci) {
logger.info("onNotifyRequest");
NotificationRequestResponse response = new NotificationRequestResponse(event.getSource(),
ReturnCode.Transaction_Executed_Normally);
response.setTransactionHandle(event.getTransactionHandle());
mgcpProvider.sendMgcpEvents(new JainMgcpEvent[] { response });
EventName[] observedEvents = event.getObservedEvents();
for (EventName observedEvent : observedEvents) {
switch (observedEvent.getEventIdentifier().intValue()) {
case MgcpEvent.REPORT_ON_COMPLETION:
logger.info("Announcemnet Completed NTFY received");
break;
case MgcpEvent.REPORT_FAILURE:
logger.info("Announcemnet Failed received");
// TODO : Send DLCX and Send BYE to UA
break;
default:
//MGCP RI expects D/dtmfX, but correct is D/X ... hence it fails to match on
//MgcpEvent.DTMF_X .... Thus event ID is wrong....
if(observedEvent.getPackageName().toString().equals("D"))
{
int decodedId = decodeDTMF(observedEvent);
processDTMF(decodedId);
}
}
}
}
代码示例来源:origin: org.mobicents.examples/mgcp-demo-recorder-sbb
response.setTransactionHandle(event.getTransactionHandle());
内容来源于网络,如有侵权,请联系作者删除!