SIP / 2.0 481呼叫支路/交易不退出 [英] SIP/2.0 481 Call Leg/Transaction Does Not Exit

查看:266
本文介绍了SIP / 2.0 481呼叫支路/交易不退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai



我创建mspl以将调用重新路由到ucma应用程序端点



以下是我的MSPL代码

Hai

I create the mspl to transfer reroute the calls to ucma application endpoint

Below is my code for MSPL

<?xml version="1.0" ?>
<lc:applicationManifest

appUri="http://"Domain NAme"/AltRGS"

xmlns:lc="http://schemas.microsoft.com/lcs/2006/05">
<lc:allowRegistrationBeforeUserServices action="true" />
<lc:requestFilter methodNames="INVITE"

strictRoute="false"

registrarGenerated="true"

domainSupported="true" />
<lc:responseFilter reasonCodes="NONE" />
<lc:proxyByDefault action="true" />
<lc:scriptOnly />
<lc:splScript><




fromUri = GetUri( sipRequest.From );
fromUser = Concatenate( GetUserName( fromUri ) );
toUri = GetUri( sipRequest.To );
toUserAtHost = Concatenate( GetUserName( toUri ), "@", GetHostName( toUri ) );

foreach ( sessionExpires in GetHeaderValues( "Session-Expires" ) ) {
if ( ContainsString( sessionExpires, "refresher", true ) ) {
Log( "Debug", false, "RespondWithRinging: * skipped; This is a session refreshing invite" );
return;
}
}

foreach ( userAgent in GetHeaderValues( "USER-AGENT" ) ) {
if ( ! ContainsString( userAgent, "mediation", true ) ) {
Log( "Debug", false, "RespondWithRinging: * skipped; not a mediation server request" );
return;
}
}

if (sipRequest && sipRequest.Method == "INVITE")

{
ProxyRequest("sip:lync1.sti.ksac.com@ksac.com;gruu;opaque=srvr:app1:nKftzU4ORVGCO9Nqq3-m3QAA");
}
else {
// Forward the call to the UCMA app.
Log("Debugr", 1, "Forwarded caller to UCMA app: ", sipRequest.From);
Respond("302", "Moved Temporarily", "Contact=");
}

]]>

</lc:splScript>

</lc:applicationManifest>



我使用电源外壳注册我的MSPl

New-Csserver应用程序



和我的c#代码是


I register my MSPl By Using power shell
New-Csserver application

and my c# code is

private void Run()
{
try
{
_helper = new UCMASampleHelper();

_appEndpoint = _helper.CreateAutoProvisionedApplicationEndpoint();
_appEndpoint.RegisterForIncomingCall<AudioVideoCall>(AudioVideoCall_Received);

void AudioVideoCall_Received(object sender, CallReceivedEventArgs<AudioVideoCall> e)
{
try
{
string _originalRecipientUri = e.RequestData.ToHeader.Uri;

_inboundAVCall.StateChanged += new EventHandler<CallStateChangedEventArgs>(_inboundAVCall_StateChanged);
_inboundAVCall.AudioVideoFlowConfigurationRequested += new EventHandler<AudioVideoFlowConfigurationRequestedEventArgs>(_inboundAVCall_AudioVideoFlowConfigurationRequested);

Console.WriteLine("Call Received!");

_inboundAVCall.BeginAccept(BeginAcceptCB, _inboundAVCall);

}}



当我接到电话 MSPL 将电话路由到 UCMA 应用程序并转移到代理商,但当代理接受呼叫时,它没有建立,我发现以下错误在ocs logger中找到




When i get the call MSPL route the call to the UCMA application and transfer to the agents but when agent accepts the call it is not establishing and i am gettimg the following error find in ocs logger

SIP/2.0 481 Call Leg/Transaction Does Not Exit





可以任意一个请帮帮我



谢谢。



Can Any one please help me

Thanks.

推荐答案

Hai All



最后我得到了解决方案。当我们使用MSPl时,我们在转移呼叫时获得重新邀请,同时它也会路由呼叫。我只是在第一次请求时给出了一个条件,然后只有它转到重定目标,否则它会接受请求。



谢谢
Hai All

Finally i got the solution. When using the MSPl we are getting the Re-Invite when we transfer the call at that time also it route the call. i just gave a condition when it is first request then only it goes to the retarget other wise it takes the request as it is.

Thanks


这篇关于SIP / 2.0 481呼叫支路/交易不退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆