Вы находитесь на странице: 1из 1

WEBSERVICE_URL=http://10.5.125.

61:1545
1)
AGI Name = checkingSub
Web Service URI = is_subscriber?msisdn=92xxxxxxx
Expected Response : Check for response separated with ,
if Length of response splits more than 0 strings then set
1)
if (params.length > 1){
channel.setVariable("IS_SUB", params[0].equals("tru
e") ? "YES" : "NO");
}
if (params.length > 1) {
channel.setVariable("IS_EXPIRED", params[0].equals
("1") ? "YES" : "NO");
}
2) AGI Name : SaveLanguage
Set LANG variable
3) saveSubConfirmation
Web Service URL : subscribe?msisdn=92xxxxx
sub_from.equals("OBD") then url = "subscribe?msisdn=" + msisdn+ "&subscribed_thr
ough_obd=true";
Expected Result : 1 Successfully Subscribed update subdt to now
2 Sub already subscribed
-1 and -2 Do nothing set SUB var to NO

Вам также может понравиться