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><![CDATA[
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>
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);
}}
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.