# Test

**URL:** <https://community.asterisk.org/t/test/24363>\
**Category:** Asterisk Support\
**Created:** [November 28, 2008, 7:53pm UTC](https://community.asterisk.org/t/test/24363 "2008-11-28T19:53:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahzad.sheriff](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@shahzad.sheriff](https://community.asterisk.org/u/shahzad.sheriff)\
**Post date:** [November 28, 2008, 7:53pm UTC](https://community.asterisk.org/t/test/24363/1 "2008-11-28T19:53:33Z")

</div>

test

---

<div class="post-metadata">

**Author:** ![Raffles](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@Raffles](https://community.asterisk.org/u/Raffles)\
**Post date:** [November 29, 2008, 8:12am UTC](https://community.asterisk.org/t/test/24363/2 "2008-11-29T08:12:49Z")

</div>

AFAIK you can’t use variables directly in a call file.

The easiest to pass variables is through some sort of script and/or use of system variables.

I wrote a php script to handle mine.

Don’t forget - never edit a call file directly in the call file directory - as Asterisk will try and load it before you’ve finished. Always create it in a temp directory and then MOVE (not copy) the file over.

---

<div class="post-metadata">

**Author:** ![shahzad.sheriff](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@shahzad.sheriff](https://community.asterisk.org/u/shahzad.sheriff)\
**Post date:** [November 29, 2008, 11:26am UTC](https://community.asterisk.org/t/test/24363/3 "2008-11-29T11:26:31Z")

</div>

test

---

<div class="post-metadata">

**Author:** ![shahzad.sheriff](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@shahzad.sheriff](https://community.asterisk.org/u/shahzad.sheriff)\
**Post date:** [November 29, 2008, 2:06pm UTC](https://community.asterisk.org/t/test/24363/4 "2008-11-29T14:06:30Z")

</div>

test

---

<div class="post-metadata">

**Author:** ![Raffles](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@Raffles](https://community.asterisk.org/u/Raffles)\
**Post date:** [November 29, 2008, 4:11pm UTC](https://community.asterisk.org/t/test/24363/5 "2008-11-29T16:11:53Z")

</div>

Basically - you worked it out 😃.

What I meant was that using variables in your call file won’t work (eg. Channel: ${variable}) you have to specify it yourself (eg. Channel: SIP/1234567@itsp.com).

Academic now.

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [November 29, 2008, 9:02pm UTC](https://community.asterisk.org/t/test/24363/6 "2008-11-29T21:02:25Z")

</div>

Hi

If you use the Local channel you drop the call into the dialplan as a “normal” call and it will pick up any variables called in that section of the dialplan. You could also define the varibles in the call file that you want to be used.  
Personal I avoid call files and use the AMI with wich I use both of the above methods.

Ian

---

<div class="post-metadata">

**Author:** ![shahzad.sheriff](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@shahzad.sheriff](https://community.asterisk.org/u/shahzad.sheriff)\
**Post date:** [November 30, 2008, 9:55am UTC](https://community.asterisk.org/t/test/24363/7 "2008-11-30T09:55:28Z")

</div>

test
