Spawn extension ... exited non-zero on

Hey,

First of all, as this is my first post on Asterisk forums so I’d like to say hello to all of the forum members :smile:

I’m quite new to Asterisk. I’m running it on CentOS and here’s my problem:

I’ve got two extensions registred in sip.conf ([125] and [126] - X-Lite clients). When I make a call my log looks like this:

== Using SIP RTP CoS mark 5 -- Executing [125@test:1] Dial("SIP/126-00000000", "SIP/125") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/125 -- SIP/125-00000001 is ringing -- SIP/125-00000001 answered SIP/126-00000000 -- Locally bridging SIP/126-00000000 and SIP/125-00000001 == Spawn extension (test, 125, 1) exited non-zero on 'SIP/126-00000000'

Line from debug:

pbx.c:5064 __ast_pbx_run: Spawn extension (test,125,1) exited non-zero on 'SIP/126-00000000' == Spawn extension (test, 125, 1) exited non-zero on 'SIP/126-00000000'

pbx.c:5064:

05050 if (chan->_state == AST_STATE_UP) { 05051 if (!ast_strlen_zero(as->app)) { 05052 app = pbx_findapp(as->app); 05053 if (app) { 05054 if (option_verbose > 2) 05055 ast_verbose(VERBOSE_PREFIX_3 "Launching %s(%s) on %s\n", as->app, as->appdata, chan->name); 05056 pbx_exec(chan, app, as->appdata); 05057 } else 05058 ast_log(LOG_WARNING, "No such application '%s'\n", as->app); 05059 } else { 05060 if (!ast_strlen_zero(as->context)) 05061 ast_copy_string(chan->context, as->context, sizeof(chan->context)); 05062 if (!ast_strlen_zero(as->exten)) 05063 ast_copy_string(chan->exten, as->exten, sizeof(chan->exten)); 05064 if (as->priority > 0) 05065 chan->priority = as->priority; 05066 /* Run the PBX */ 05067 if (ast_pbx_run(chan)) { 05068 ast_log(LOG_ERROR, "Failed to start PBX on %s\n", chan->name); 05069 } else { 05070 /* PBX will have taken care of this */ 05071 chan = NULL; 05072 } 05073 } 05074 }

Call works just fine - I can hear both sides etc. but log says that something isn’t right and I just can’t figure out what that could be. SELinux is disabled, so is firewall. All modules are loaded, .conf files are also all in place.

Sip.conf:

[code][125]
deny=0.0.0.0/0.0.0.0
type=friend
secret=1234
qualify=no
port=5060
pickupgroup=
permit=0.0.0.0/0.0.0.0
nat=no
mailbox=125@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/125
context=test
canreinvite=no
callgroup=
callerid=device <125>
accountcode=
call-limit=1000
allow=ulaw

[126]
deny=0.0.0.0/0.0.0.0
type=friend
secret=1234
qualify=no
port=5060
pickupgroup=
permit=0.0.0.0/0.0.0.0
nat=no
mailbox=126@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/126
context=test
canreinvite=no
callgroup=
callerid=device <126>
accountcode=
call-limit=1000
allow=ulaw[/code]

Extensions.conf:

[test] exten => _1XX,1,Dial(SIP/${EXTEN})

Any suggestions how to solve that error issue would be appreciated :smile:

I see a completely successful call in that log. There are no error messages.