blob: b84c9a742412e404ff16a50e07d793c1c70f3ea4 [file] [log] [blame]
#!/bin/bash
#Copyright (c) 2016, MediaTek Inc. All rights reserved.
#This software/firmware and related documentation ("MediaTek Software") are protected under relevant copyright laws.
#The information contained herein is confidential and proprietary to MediaTek Inc. and/or its licensors.
#Except as otherwise provided in the applicable licensing terms with MediaTek Inc. and/or its licensors, any reproduction,
#modification, use or disclosure of MediaTek Software, and information contained herein, in whole or in part, shall be strictly prohibited.
echo "dial a call"
if [ $# -lt 1 ]
then
echo "paramter is invaild!"
exit 1
fi
CallNum="$1"
#echo "call number is ${CallNum}"
#open a socket, communicated with Service.
exec 9<> /dev/udp/127.0.0.1/8000
if [ "$?" != "0" ];
then
echo "open socket fail!"
exit 1
fi
#handup a Call ,clir mode set as 0
echo "RIL_REQUEST_DIAL ${CallNum} 0" >&9
#echo "read socket"
#cat <&9 &
#sleep 1
#close socket R/W
exec 9>&-
exec 9<&-
exit 0