# CalleeExtNum Variable

**URL:** <https://community.asterisk.org/t/calleeextnum-variable/88117>\
**Category:** Asterisk Dialplan\
**Created:** [March 29, 2021, 4:15pm UTC](https://community.asterisk.org/t/calleeextnum-variable/88117 "2021-03-29T16:15:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![it\_manager](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@it\_manager](https://community.asterisk.org/u/it_manager)\
**Post date:** [March 29, 2021, 4:15pm UTC](https://community.asterisk.org/t/calleeextnum-variable/88117/1 "2021-03-29T16:15:29Z")

</div>

Hello,

In the dialplan by using DumpChan() function I can get a variable called CalleeExtNum, is there any way to get the value of this variable in the dialplan?

I couldn’t find it here: [Asterisk Standard Channel Variables - Asterisk Project - Asterisk Project Wiki](https://wiki.asterisk.org/wiki/display/AST/Asterisk+Standard+Channel+Variables)

Thanks

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 29, 2021, 4:22pm UTC](https://community.asterisk.org/t/calleeextnum-variable/88117/2 "2021-03-29T16:22:38Z")

</div>

It’s not a standard channel variable. It would be accessed the same as any other channel variable.

---

<div class="post-metadata">

**Author:** ![it\_manager](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@it\_manager](https://community.asterisk.org/u/it_manager)\
**Post date:** [March 29, 2021, 4:41pm UTC](https://community.asterisk.org/t/calleeextnum-variable/88117/3 "2021-03-29T16:41:35Z")

</div>

@jcolp you’re right, I’m able to get this variable by using just {CalleeExtNum}, what about this variable: ConnectedLineIDNum? I tried {ConnectedLineIDNum} - but not getting anything, is there any way to get his value as well?

Thank you

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 29, 2021, 4:42pm UTC](https://community.asterisk.org/t/calleeextnum-variable/88117/4 "2021-03-29T16:42:58Z")

</div>

You can use the CONNECTEDLINE dialplan function[1].

[1] [Asterisk 18 Function\_CONNECTEDLINE - Asterisk Project - Asterisk Project Wiki](https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Function_CONNECTEDLINE)

---

<div class="post-metadata">

**Author:** ![it\_manager](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@it\_manager](https://community.asterisk.org/u/it_manager)\
**Post date:** [March 29, 2021, 5:22pm UTC](https://community.asterisk.org/t/calleeextnum-variable/88117/5 "2021-03-29T17:22:53Z")

</div>

@jcolp, I can’t find how to get that value by using this function, I found just how to set - but nothing about how to get his value.

Thanks

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 29, 2021, 5:26pm UTC](https://community.asterisk.org/t/calleeextnum-variable/88117/6 "2021-03-29T17:26:30Z")

</div>

The same as any other dialplan function. Example:

```auto
${CONNECTEDLINE(num)}

```

---

<div class="post-metadata">

**Author:** ![it\_manager](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@it\_manager](https://community.asterisk.org/u/it_manager)\
**Post date:** [March 29, 2021, 9:17pm UTC](https://community.asterisk.org/t/calleeextnum-variable/88117/7 "2021-03-29T21:17:37Z")

</div>

That works perfectly.  
Thank you @jcolp

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [April 28, 2021, 9:18pm UTC](https://community.asterisk.org/t/calleeextnum-variable/88117/8 "2021-04-28T21:18:23Z")

</div>

Closed on April 28, 2021, 9:18pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
