> 17.4 | AT+CPBS Select phonebook memory storage

> AT+CPBS selects the active phonebook storage, i.e. the phonebook storage that all subsequent phonebook commands will be operating on.
> The read command returns the currently selected <storage>, the number of <used> entries and the <total> number of entries available for this storage. The test command returns all supported <storage>s as compound value.
> Syntax

> Test Command AT+CPBS=?
> Response(s)
> +CPBS: (list of supported <storage>s)
> OK
> +CME ERROR

> Read Command AT+CPBS?
> Response(s)
> +CPBS: <storage>, <used>, <total>
> OK
> +CME ERROR

> Write Command AT+CPBS=<storage>
> Response(s)
> OK
> +CME ERROR:

> Reference(s) |  | PIN |  | ASC0 | ASC1 | USB | MUX1 | MUX2 | MUX3 |  |  | Charge | Q | Last
> GSM07.07 |  | + |  | + | + | + | + | + | + |  |  | - | + | -

> Parameter Description

> <storage>(str)

> “FD“
> Fixed dialing phonebook
> Capacity: depending on SIM
> Location: SIM
> “SM“(&F)
> SIM phonebook
> Capacity: depending on SIM
> Location: SIM
> “ON“
> MSISDN list
> Capacity: depending on SIM
> Location: SIM
> “ME“
> Mobile Equipment Phonebook
> Capacity: max. 250 entries
> Location: ME
> “LD“
> Last number dialed phonebook. Stores all voice call numbers dialed with ATD, but no data call numbers.
> Capacity: max. 10 entries
> Location: ME
> AT+CPBW command is not applicable to this storage. The LD list can be deleted with AT^SDLD or with AT^SPBD.
> “MC“
> Missed (unanswered received) calls list
> Capacity: max. 10 entries
> Location: ME
> AT+CPBW command is not applicable to this storage. The MC list can be deleted with AT^SPBD.
> “RC“
> Received calls list
> Capacity: max. 10 entries
> Location: ME
> AT+CPBW command is not applicable to this storage. The RC list can be deleted with AT^SPBD.
> “VM“
> CPHS voice mailbox phonebook
> Capacity: 1 or 2 entries, depending on SIM
> 1 - Line 1 mailbox
> 2 - Line 2 mailbox
> Location: SIM

> <used>(num)

> Value indicating the number of used locations in selected memory storage.

> <total>(num)

> Value indicating the maximum number of locations allowed in the selected memory storage.
> Notes

> • | Users should be aware that when using this AT command quickly after SIM PIN authentication the SIM data may not yet be accessible, resulting in a short delay before the requested AT command response is returned. See Section 23.1, Restricted access to SIM data after SIM PIN authentication for further detail.

> • | If the SIM card is changed, all records of the "MC", "RC" and "LD" phonebooks stored on the ME will be deleted automatically. If the same SIM is removed and reinserted, no automatic deletion is performed. Calls made after last switch-on will be cleared from the "MC", "RC" and "LD" phonebook, if the SIM is removed and reinserted during normal operation.

> • | The following call history rule applies to the phonebook types "LD", "MC" and "RC": When the same number is dialed several times in direct succession the "LD" phonebook will store one single entry. When dialed several times, but in a row with different numbers, the same number will be logged each time after dialing, resulting in double or multiple "LD" phonebook entries related to this number. Likewise, the "MC" or "RC" phonebook will store only a single entry when calls from the same number are received in direct succession, and double or multiple entries when calls from the same number are received several times, but amongst other incoming calls from different numbers.