Patent ID: 8792392

Claim:
A method for facilitating in-band closed subscriber group (CSG) provisioning, comprising: receiving a request from a device to establish a packet data context for an access point name; determining that the device is requesting in-band CSG provisioning based on the request, wherein in-band CSG provisioning enables at least a temporary connection between the device and an access point associated with the access point name for initiating registration with the access point where such access would otherwise be restricted; selecting a gateway for establishing the packet data context based at least in part on the access point name, wherein the selecting the gateway comprises obtaining an internet protocol (IP) address of the gateway related to the access point name based at least in part on performing a domain name server (DNS) query for the gateway with a DNS server; and sending a session request message to the gateway to establish the packet data context for the device, wherein the session request message includes an identifier that indicates the session request message is for in-band CSG provisioning.