# Custom AT Subscriptions

**URL:** <https://forum.sierrawireless.com/t/custom-at-subscriptions/7951>\
**Category:** Open AT\
**Created:** [May 14, 2015, 3:16pm UTC](https://forum.sierrawireless.com/t/custom-at-subscriptions/7951 "2015-05-14T15:16:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdmara](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jdmara](https://forum.sierrawireless.com/u/jdmara)\
**Post date:** [May 14, 2015, 3:16pm UTC](https://forum.sierrawireless.com/t/custom-at-subscriptions/7951/1 "2015-05-14T15:16:18Z")

</div>

I just have a question about getting a custom AT command to work. I’m using the SL808x. I’ve used this code to initialize:

```auto
void pretendCommand(adl_atResponse_t *param)
{
	adl_atSendResponse( ADL_AT_UNS, (ascii*)"Received AT\n" );
}
	
//... later in main
	s16 err = adl_atCmdSubscribeExt("AT+SPOOF",
			pretendCommand,
			ADL_CMD_TYPE_PARA|0x0011,
			NULL,
			ADL_CMD_SUBSCRIPTION_ONLY_EXTERNAL_PORT);

	if(err != OK)
	{
		adl_atSendResponse ( ADL_AT_UNS, "Not good.\n" );
	}
```

However, when I then try to use “AT\_SPOOF=test” on the console, I just get ERROR back. Any obvious issue here? Thanks again!

---

<div class="post-metadata">

**Author:** ![Rex\_alex](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rex\_alex](https://forum.sierrawireless.com/u/Rex_alex)\
**Post date:** [May 20, 2015, 5:49am UTC](https://forum.sierrawireless.com/t/custom-at-subscriptions/7951/2 "2015-05-20T05:49:14Z")

</div>

hi,  
AT\_SPOOF or AT+SPOOF???

---

<div class="post-metadata">

**Author:** ![aliceta](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@aliceta](https://forum.sierrawireless.com/u/aliceta)\
**Post date:** [December 29, 2017, 9:41am UTC](https://forum.sierrawireless.com/t/custom-at-subscriptions/7951/3 "2017-12-29T09:41:26Z")

</div>

Chargebee provides the option of creating custom fields for the Customer and Subscription objects. You can use this option to track additional information about a customer or their subscription. Once the custom fields are created, they can be added to the hosted checkout pages and invoices.
