[asterisk-users] Echo() app doesn't work

Mindaugas Kezys mkezys at gmail.com
Mon Feb 4 02:14:45 CST 2008


Hello,

Seems you do not answer your channel before executing Echo():

-----cut here-----------------------------------
Asterisk Ready.
*CLI>     -- Registered IAX2 'yassen' (UNAUTHENTICATED) at
 192.168.2.3:4569
    -- Accepting UNAUTHENTICATED call from 192.168.2.3:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = gsm,
       > host prefs = (),
       > priority = mine
    -- Executing [500 at phones:1] Verbose("IAX2/yassen-2", "1|Echo test
application") in new stack
 Echo test application
    -- Executing [500 at phones:2] Echo("IAX2/yassen-2", "") in new stack
  == Spawn extension (phones, 500, 2) exited non-zero on  'IAX2/yassen-2'
    -- Hungup 'IAX2/yassen-2'
-----cut here-----------------------------------


Try this dialplan:

exten => _X.,1,Playback(demo-echotest)
exten => _X.,2,Echo()
exten => _X.,3,Hangup

or

exten => _X.,1,Answer
exten => _X.,2,Echo()
exten => _X.,3,Hangup

Regards,
Mindaugas Kezys
http://www.kolmisoft.com
MOR - Advanced Billing for Asterisk PBX


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Yassen Damyanov
Sent: Saturday, February 02, 2008 10:08 AM
To: Asterisk Users Mailing List
Subject: Re: [asterisk-users] Echo() app doesn't work


--- Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:

> >     -- Executing [500 at phones:2] Echo("IAX2/yassen-2", "") in new stack
> >   == Spawn extension (phones, 500, 2) exited non-zero on 'IAX2/yassen-2'
> >     -- Hungup 'IAX2/yassen-2'
> 
> On which platform is that? Echo is executed, and exists without an
> error.

Tzafrir, thank you very much for responding!

Logs look the same everywhere (on all 32-bit platforms where Echo() doesn't
work) and on the 64-bit xubuntu (where it does). The log says it exited
non-zero, which does not seem normal to me, but nevertheless the log has that
on the only working setup already mentioned. I guess it is not the platform but
maybe some kernel stuff that breaks the thing... Please anyone, any hint? 
Thanks in advance!

I paste here my original message for reference (no broken lines this time):

-----Original Message------------------------------
Date:	 Fri, 1 Feb 2008 17:01:56 -0800 (PST)
From:	"Yassen Damyanov" <yassen_tis at yahoo.com>  Add to Address BookAdd to
Address Book  Add Mobile Alert
Subject: Echo() app doesn't work
To:	"Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>


Hello list,

New to asterisk and to the list (although experienced in Unix/Linux
administration).

Short problem description:
--------------------------
I cannot get the Echo() application to run on any 32bit platform I can get my
hands on. In contrast, the only 64-bit (amd64 aka x86_64) setup that I have
runs just fine. In all cases asterisk log shows the same -- that Echo() is
executed.

Details:
--------
A. Platforms:

-- AsteriskNOW 0.6 beta 32bit, updated;

-- Debian Etch 32bit with stock kernel and native debian-packaged asterisk 1.2

-- Debian Etch 32bit with custom compiled kernel ("Timer frequency" 1000 Hz and
couple more tweaks) and latest stable asterisk (1.4.17) compiled from source

-- Ubuntiu 7.10 Server with native ubuntu packages (1.4.10)

-- xUbuntu 7.10 Desktop on x86_64 (=amd64) with native ubuntu packages (1.4.10)

Echo() works only on the 64-bit setup. Does not work for all other cases.

The Playback() app works fine in *all* cases.

(The microphone is tested and works fine, so it's not that simple!)

For some of the setups I established two separate extensions and they could
talk to each other (so important things work, yes).

The logs show the same, that is, just what would be normal:

-----cut here-----------------------------------
Asterisk Ready.
*CLI>     -- Registered IAX2 'yassen' (UNAUTHENTICATED) at
 192.168.2.3:4569
    -- Accepting UNAUTHENTICATED call from 192.168.2.3:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = gsm,
       > host prefs = (),
       > priority = mine
    -- Executing [500 at phones:1] Verbose("IAX2/yassen-2", "1|Echo test
application") in new stack
 Echo test application
    -- Executing [500 at phones:2] Echo("IAX2/yassen-2", "") in new stack
  == Spawn extension (phones, 500, 2) exited non-zero on
 'IAX2/yassen-2'
    -- Hungup 'IAX2/yassen-2'
-----cut here-----------------------------------

My extentions.conf:
-----cut here-----------------------------------
[globals]

[general]

[default]
exten => s,1,Verbose(1|Unrouted call handler)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(tt-weasels)
exten => s,n,Hangup()

[outgoing_calls]

[incoming_calls]

[internal]
exten => 500,1,Verbose(1|Echo test application)
exten => 500,n,Echo()
exten => 500,n,Hangup()

exten => 501,1,Verbose(1|Playback test application)
exten => 501,n,Playback(vm-review)
exten => 501,n,Wait(1)
exten => 501,n,Hangup()

[phones]
include => internal
-----cut here-----------------------------------

My iax.conf:
-----cut here-----------------------------------
[general]
bandwidth=low
disallow=lpc10
jitterbuffer=no
forcejitterbuffer=no
autokill=yes

[yassen]
type=friend
host=dynamic
context=phones
-----cut here-----------------------------------

Anyone having a suggestion what might be the reason for the nonworking Echo() ?
I am really stuck; Google could not really help. Any ideas would be highly
appreciated!

Thanks in advance,
Yassen

--

Yassen Damyanov
Adelie Ltd.



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list