Here is a compressive solution that has four parts and all need to put in place .
1 . India should strike inside Pakistan, like Israel, and remove all the terrorists training camps, groups etc... As Pakistan is unable or does not want to do it. When pakistan has no control of over what operates on and from its country it forfeits it sovereignty. Indian armed forces must at all times maintain 10 to 1 superiority against pakistan just to employ this policy.
2. Remove article 370 and move all landless people from all over India to Kashmir and bring about a demographic change. This will reverses all that pak terrorists have worked for in last 20years to consolidate muslim majority . (Example: Tibet- China moves Han chinees to tibet and Xizang / POK -Pakistan -Pakistan settels ex-pak army people in POK)
3. Have hard core POTA re-instated, and Gitmo type system created to house terrorists. Have oversight to be immune from political whims.
4. India should be tracking all people entering over land , sea and air.