Spawn extension ... exited non-zero on ...

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Spawn extension ... exited non-zero on ...

Postby robi1a » Fri Feb 13, 2009 4:05 am

I've maybe a stupid question but I have an understanding problem. At Hangup() I always receive the message "Span extension ..."
Code: Select all
    -- Executing [18@IPPhone:6] Hangup("SIP/11-08214e98", "") in new stack
  == Spawn extension (IPPhone, 18, 6) exited non-zero on 'SIP/11-08214e98'

I think this msg occurs if an dialplan appl ends with non zero. Hangup() normally ends with 16 and so on the dialplan end prematurely. But my dialplan shall continue after Hangup().
An example:
Code: Select all
exten => 18,1,Noop()
exten => 18,n,Answer()
exten => 18,n,Macro(RSsetcallerid)
exten => 18,n,Macro(RSsendtext)
exten => 18,n,Playback(nbdy-avail-to-take-call&goodbye)
exten => 18,n,Hangup()
exten => 18,n,Macro(RScleartext)

The same happens at the end of a call if the partner hangs up. Immediately "Span extension ..." is displayed and the dialplan exits.

The h-Extension isn't suitable, because I have several extensions in the context with different endings.

Do I understand something wrong at Hangup() or can I avoid/suppress "Span extension ..."?

Asterisk 1.4 on OpenSuSE 10.3
Posts: 1
Joined: Fri Feb 13, 2009 3:49 am

Postby mbruni » Fri Feb 13, 2009 4:22 am

After hangup only h extension can be used, you can try use different contexts or in the h extension check a variable where you saved the extension called and then do different things based upon its value.


Marco Bruni
Posts: 957
Joined: Thu Dec 21, 2006 10:56 pm
Location: Arezzo, Italy

Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 18 guests