If medications are not successful in controlling the pain, surgery may be indicated.