Blogs

Check out the new content on the Cisco Developer Network reflecting the New & Enhanced features in Cisco Unified Communication Manager 9.1.

See the 9.1 XML Developer Guide ...Read More

 

The Unified Communications 9.0 Partner Bundle packages Cisco’s Collaboration application software for our Collaboration partner community to leverage for their internal lab or demonstration systems. The 9.0 version is now available for order. Learn More >> ...Read More

 

Cisco Routing Rule Developers:

Check out the new content on the Cisco Developer Network reflecting the New & Enhanced features in Cisco Unified Communication Manager 9.0(1).

Click here to find the ...Read More

 

Developer Partners,

Cisco announces the availability of our 2012 Developer Partner presentations shared at CiscoLive San Diego.

Please log into the Cisco Developer Network using your Partner UserID to download this content.

Access these presentations here: http://developer.cisco.com/web/cdc/devforumpreso PARTNER LOGIN REQUIRED
...Read More

 

Developer Partners,

Cisco announces the availability of our 2012 Developer Partner presentations shared at CiscoLive London.

Please log into the Cisco Developer Network using your Partner UserID to download this content.

Access these presentations here: http://developer.cisco.com/web/cdc/devforumpreso PARTNER LOGIN REQUIRED
...Read More

 

Showing 1 - 5 of 16 results.
Items per Page 5
of 4

Forums

« Back to Routing Rules API Questions

CUCM recieve the http response,but not work

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi Teams,
i use nodejs to build a http server for testing the external call routing featrue. CUCM has established a connection to the http server through the http head.
i want call a number 913958049385 to trigger a traslation pattern which have a external call routing profile.my http server send back the response to tell cucm divert to 81130110.
my http server recieves the post message and send back a  response message. i confirm the cucm revieves the response message by rtmt. the below is  sdi trace infomation:
16:51:47.602 |HttpHandler - wait_RoutingReq enqueue work data Tid=16777219 (xmlData=<?xml version="1.0" encoding="UTF-8"?>
<Request xmlns="urn:oasis:names:tc:xacml:2.0:context:schema:os">
<Subject SubjectCategory="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject">
<Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:role-id"
DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="requestor">
<AttributeValue>CISCO:UC:UCMPolicy</AttributeValue>
</Attribute>
<Attribute AttributeId="urn:Cisco:uc:1.0:callingnumber"
DataType="http://www.w3.org/2001/XMLSchema#string">
<AttributeValue>81134780</AttributeValue>
</Attribute>
<Attribute AttributeId="urn:Cisco:uc:1.0:callednumber"
DataType="http://www.w3.org/2001/XMLSchema#string">
<AttributeValue>913958049385</AttributeValue>
</Attribute>
<Attribute AttributeId="urn:Cisco:uc:1.0:transformedcgpn"
DataType="http://www.w3.org/2001/XMLSchema#string">
<AttributeValue>81134780</AttributeValue>
</Attribute>
<Attribute AttributeId="urn:Cisco:uc:1.0:transformedcdpn"
DataType="http://www.w3.org/2001/XMLSchema#string">
<AttributeValue>913958049385</AttributeValue>
</Attribute>
</Subject>
<Resource>
<Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id"
DataType="http://www.w3.org/2001/XMLSchema#anyURI">
<AttributeValue>CISCO:UCemoticonoiceOrVideoCall</AttributeValue>
</Attribute>
</Resource>
<Action>
<Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id"
DataType="http://www.w3.org/2001/XMLSchema#anyURI">
<AttributeValue>any</AttributeValue>
</Attribute>
</Action>
<Environment>
<Attribute AttributeId="urn:Cisco:uc:1.0:triggerpointtype"
DataType="http://www.w3.org/2001/XMLSchema#string">
<AttributeValue>translationpattern</AttributeValue>
</Attribute>
</Environment>
</Request>
)
 and lastSender(PRIMARY)|1,100,230,1.740^10.12.1.161^*
16:51:47.605 |HttpHandler - processHttpRes response from url (http://10.20.4.170:8080/eri), directive (1), routing result code (0x1), Tid (16777219)|0,0,0,0.0^*^*
16:51:47.605 |HttpHandler - processHttpRes xacml (<Response><Result ResourceId="CISCO:UCemoticonoiceOrVideoCall"><Decision>Permit</Decision><Obligations><Obligation FulfillOn="Permit" ObligationId="urn:cisco:cepm:3.3:xacml:policy-attribute"><AttributeAssignment AttributeId="Policy:continue.simple"><AtributeValue DataType="http://www.w3.org/2001/XMLSchema#string"><cixml version="1.0"><divert><destination>81138586</destination></divert></cixml></AtributeValue></AttributeAssignment></Obligation></Obligations></Result></Response>
)|0,0,0,0.0^*^*
16:51:47.605 |Da::RoutingRes directive CONTINUE , td =16777219|0,0,0,0.0^*^*
16:51:47.605 |Digit Analysis: star_DaReq: daReq.partitionSearchSpace(d990bf70-6e06-0da5-fe3e-42fd675d7a72emoticon, filteredPartitionSearchSpaceString(), partitionSearchSpaceString()|0,0,0,0.0^*^*
16:51:47.605 |Digit Analysis: star_DaReq: Matching Legacy Numeric, digits=913958049385|0,0,0,0.0^*^*
16:51:47.605 |Digit Analysis: getDaRes data: daRes.ssType=[16777248] Intercept DAMR.sstype=[0], TPcount=[0], DAMR.NotifyCount=[0], DaRes.NotifyCount=[1]|0,0,0,0.0^*^*
16:51:47.605 |Digit analysis: match(pi="1",fqcn="81134780", cn="81134780", plv="5", pss="", TodFilteredPss="", dd="913958049385",dac="0")|0,0,0,0.0^*^*
but cucm is not working for the divert.
please help me!

Hi Yaohua,
 
Try escaping your entire CIXML in the Response.
 
So this:
<cixml version="1.0"><divert><destination>81138586</destination></divert></cixml>
 
Will become:
&lt;cixml version="1.0"&gt;&lt;divert&gt;&lt;destination&gt;81138586&lt;/destination&gt;&lt;/divert&gt;&lt;/cixml&gt;
 
Check out this thread, this is how I was able to resolve my issue:
http://developer.cisco.com/web/curri/community/-/message_boards/message/6262827
 
 

Hi Gery
thanks for your answer as first.
i have change the cixml fomat as your suggestion. the response message is below:
<Response>
   <Result ResourceId="CISCO:UCemoticonoiceOrVideoCall">
     <Decision>Permit</Decision>
     <Obligations>
       <Obligation FulfillOn="Permit" ObligationId="urn:cisco:cepm:3.3:xacml:policy-attribute">
         <AttributeAssignment AttributeId="Policy:continue.simple">
           <AtributeValue DataType="http://www.w3.org/2001/XMLSchema#string">
              &lt;cixml version="1.0"&gt;
                &lt;divert&gt;
                 &lt;destination&gt;
                   81130110
                 &lt;/destination&gt;
                &lt;/divert&gt;
             &lt;/cixml&gt;
        </AtributeValue>
      </AttributeAssignment>
    </Obligation>
   </Obligations>
  </Result>
</Response>
i use RTMT to confirm that cucm recieved the response, but cucm does't divert the call what i expect and reject the call as i configure.
|HttpHandler - processHttpRes response from url (http://10.20.4.170:8080/eri), directive (1), routing result code (0x1), Tid (16777228)|0,0,0,0.0^*^*
above is SDI Log
so i don't know how to fix the issue.
please

Does the TP that triggers the ECC have a CSS that allows you to reach the number you're attempting to Divert to?

Thanks gery and mark.
I hit a bug at CUCM 8.6.2-20000-2. the bug ID is CSCtx40767. the workaround is reset CM service every time when making change to ECC profile.

Yes, it is an annoying bug. It is fixed in 9.0. The good news is that it only happens if you make changes to an inservice profile; Running services aren't impacted.
Mark

Hi Mark;
i want the call routes simply normally continue. according to the xml developer guide, the cixml is below:
&lt;cixml version="1.0"&gt;&lt;continue&gt;&lt;/continue&gt;&lt;/cixml&gt;

but the cucm can't work correctly. the call fails.
help me check the cixml formt.

Yaohua,
 
The CIXML looks fine. Can you post the entire response?
 
Mark

Collateral


No files available