# Can I redefine embedded AT command?

**URL:** <https://forum.sierrawireless.com/t/can-i-redefine-embedded-at-command/6380>\
**Category:** Legacy AirPrime modules\
**Created:** [June 20, 2013, 7:49am UTC](https://forum.sierrawireless.com/t/can-i-redefine-embedded-at-command/6380 "2013-06-20T07:49:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TakafusaMiura](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@TakafusaMiura](https://forum.sierrawireless.com/u/TakafusaMiura)\
**Post date:** [June 20, 2013, 7:49am UTC](https://forum.sierrawireless.com/t/can-i-redefine-embedded-at-command/6380/1 "2013-06-20T07:49:15Z")

</div>

Can I redefine the action of an AT command embedded in OpenAT?

I want to overwrite or hook the action of the ATD command.  
When I registered ATD command and call “ATD=”, It does the action that I expected.  
However, when I call “ATD”, embedded ATD is called and does not do the action that I expected.

My development environment is following.

Developer Studio : version 2.3.1  
LSI of communication unit : SL8084T  
Communication unit : AX8084NE

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forum.sierrawireless.com/u/tobias)\
**Post date:** [June 20, 2013, 8:48am UTC](https://forum.sierrawireless.com/t/can-i-redefine-embedded-at-command/6380/2 "2013-06-20T08:48:49Z")

</div>

In what way do you register the command?

---

<div class="post-metadata">

**Author:** ![TakafusaMiura](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@TakafusaMiura](https://forum.sierrawireless.com/u/TakafusaMiura)\
**Post date:** [June 20, 2013, 11:47am UTC](https://forum.sierrawireless.com/t/can-i-redefine-embedded-at-command/6380/3 "2013-06-20T11:47:10Z")

</div>

> [@tobias](#):
>
> In what way do you register the command?

I registered an AT command using “adl\_atCmdSubscribeExt()”.  
I want to customize the action of embedded “ATD”.

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forum.sierrawireless.com/u/tobias)\
**Post date:** [June 24, 2013, 7:21am UTC](https://forum.sierrawireless.com/t/can-i-redefine-embedded-at-command/6380/4 "2013-06-24T07:21:15Z")

</div>

Can you give the full call to the subscribe function?

---

<div class="post-metadata">

**Author:** ![ado1](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@ado1](https://forum.sierrawireless.com/u/ado1)\
**Post date:** [July 3, 2013, 7:24am UTC](https://forum.sierrawireless.com/t/can-i-redefine-embedded-at-command/6380/5 "2013-07-03T07:24:42Z")

</div>

ATD command is very special and doesn’t follow the general format defined into the AT commandz specification.

I suggest this:

- subscribe to all AT commands starting by ATD using adl\_atCmdSubscribe or adl\_atCmdSubscribeExt: use ADL\_CMD\_TYPE\_ROOT\_EXT option into the API.

- Into the command handler, use the StrData field of the structure adl\_atCmdPreParser\_t to get the full command and parse it to get the phone number (the phone number will not be present into the ParaList).

- I think the final “;” will be filtered so you will certainly loose this indication.
