Interesting.  I had the exact error in my cw-aio app-servers.json file, as I 
too started with the docs example, missing the ConditionTypeCNF value.  The 
triggers worked, however, with two SPTs within a group being AND'd, resulting 
in an overall match only when both SPTs were matched, just as though there was 
a 0 in the CNF value.  I had also tested with my SPTs in different groups, and 
they were OR'd, matching on either SPT.  I've added the CNF value 0 now, and it 
works the same.  No value must somehow default to 0.

On another similar note, it seems that if changes are made to app-servers.json 
without first removing all application server check boxes from the lines in 
Ellis, the IFCs previously assigned to lines by the file, are stuck there 
forever.  My solution has been to delete the lines that I fouled up.  Maybe 
there is a way to edit something in Homestead, to get rid of the old IFCs?  Is 
this a cw-aio bug, maybe?

Thanks!

Roger

-----Original Message-----
From: Clearwater [mailto:[email protected]] On 
Behalf Of Ying Huang
Sent: Tuesday, November 21, 2017 8:36 AM
To: [email protected]
Subject: Re: [Project Clearwater] Application In clear water

[External Email]

Hi Timothy,

I imagine you are (rightly) following the example at 
https://clearwater.readthedocs.io/en/stable/Configuring_an_Application_Server.html.
 Unfortunately the JSON file has an error that ConditionTypeCNF is missing its 
value. It can be set to 0 or 1 in the format of 
<ConditionTypeCNF>0</ConditionTypeCNF>.

The iFC matches on the request by checking if each SPT condition is satisfied. 
When the CNF is set to 1, the logic is to OR all SPT within a group to get 
group result, and then AND all group result within this iFC to decide if it's 
an overall match. When CNF is 0 it's the other way round. When the iFC is an 
overall match, the request will be forwarded to the AS specified. A good 
explanation of iFC can be found at 
https://docs.opencloud.com/ocdoc/books/sentinel-volte-documentation/2.5.0/sentinel-volte-public-administration-guide/session-processing/initial-filter-criteria.html#mmtel-conferencing-service-point-triggers.

Also, how do you check that the AS has/hasn't been setup correctly? 


Thanks,
Ying

-----Original Message-----
From: Clearwater [mailto:[email protected]] On 
Behalf Of [email protected]
Sent: 20 November 2017 14:14
To: [email protected]
Subject: [Project Clearwater] Application In clear water


Hello All,

Can someone help me with a sample of how to define Application server in clear 
water using /usr/share/clearwater/ellis/web-content/js/app-servers.json file.

I have put the Json file here.

{
"MMTEL" : "<InitialFilterCriteria><Priority>0</Priority><TriggerPoint>
˓→<ConditionTypeCNF></ConditionTypeCNF><SPT><ConditionNegated>0</ConditionNegated>
˓→<Group>0</Group><Method>INVITE</Method><Extension></Extension></SPT></TriggerPoint>
˓→<ApplicationServer><ServerName>sip:mmtel.example.com</ServerName><DefaultHandling>0
˓→</DefaultHandling></ApplicationServer></InitialFilterCriteria>",
"Voicemail" : "<InitialFilterCriteria><Priority>1</Priority><TriggerPoint>
˓→<ConditionTypeCNF></ConditionTypeCNF><SPT><ConditionNegated>0</ConditionNegated>
˓→<Group>0</Group><Method>INVITE</Method><Extension></Extension></SPT></TriggerPoint>
˓→<ApplicationServer><ServerName>sip:vm.example.com</ServerName><DefaultHandling>0</
˓→DefaultHandling></ApplicationServer></InitialFilterCriteria>"
}


Thanks in Advance

Timothy



_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org

_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org

Reply via email to