Asterisk installation

Hi Guys,

I am new in Asterisk. In my office we have an asterisk Box it is already running in Cent os with Zaptel. I have to installal a back up for that machine. So I installed a new machine with Cent OS and installed the same version of asterisk- and DAHDI dahdi-linux-complete- I have completed the installation and both asterisk and dahdi is running. I am using TE410P/TE405P (1st gen) card.

I can open the CLI mode in asterisk. I have copied SIP, IAX, Voicemail, Extensions.con from my Old server. I have conneted 2 phones on the new machine and it is got registered. But now if I am trying to make a call from one phone to other it shows the following in the asterisk CLI mode

[root@pbx1 jayesh]# asterisk -r
Asterisk, Copyright © 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Connected to Asterisk currently running on pbx1 (pid = 3022)
Verbosity is at least 3
– Accepting AUTHENTICATED call from
> requested format = ulaw,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (ulaw|alaw|gsm|ilbc|speex),
> priority = mine
– Executing [8802@external:1] Macro(“IAX2/8801-6728”, “stdexten|8802”) in new stack
– Executing [s@macro-stdexten:1] Set(“IAX2/8801-6728”, “INC=endo”) in new stack
[Nov 9 07:16:01] WARNING[23315]: pbx.c:1833 pbx_extension_helper: No application ‘SetVar’ for extension (macro-stdexten, s, 2)
== Spawn extension (macro-stdexten, s, 2) exited non-zero on ‘IAX2/8801-6728’ in macro ‘stdexten’
== Spawn extension (external, 8802, 1) exited non-zero on ‘IAX2/8801-6728’
– Hungup 'IAX2/8801-6728’

it is not ringing and phon says please hang up. I am using YUXIN ip phone.

Plaese help me to to solve this issue.

Thanks in Advance.