Texas Gov. Rick Perry (R) said he plans to meet with President Obama to discuss the influx of women and children at the southwest border.

Perry will meet with Obama and local faith and elected leaders in Dallas on Wednesday. Obama adviser Valerie Jarrett invited Perry to the Dallas meeting.

"Governor Perry is pleased that President Obama has accepted his invitation to discuss the humanitarian and national security crises along our southern border, and he looks forward to meeting with the president tomorrow," Perry spokesman Felix Browne wrote in an e-mail.

Perry wrote Obama a letter Monday requesting a "substantive" meeting  on what Perry called the "humanitarian and national security crises enveloping the Rio Grande Valley in South Texas." Perry said he appreciated an offer to meet Obama at the Austin airport, but "a quick handshake on the tarmac will not allow for a thoughtful discussion."

White House Press Secretary Josh Earnest said the administration thought it "made sense" to invite Perry to the Dallas meeting after it received his letter.

"We're looking forward to Gov. Perry participating in that meeting," Earnest said.

Earnest said the president will meet with religious leaders and others who are working with children who were detained at the border.

"Governor Perry indicated a desire to speak to the president about this, and the president extended an invitation for Governor Perry to join this meeting with other Texans” who are working on the issue, Earnest said.