Skip to main content

exited non-zero

Posted by basisit on Wed, 01/21/2015

Good Morning,

I would like to manage th excption "exited non-zero" on asterisk.

in particolar I can see that sometimes asterisk recall the h@from-inside-redir:1] Hangup

where I can modify the behavior of this?

I have try to modify the extension_base.include file, but not seems to do nothing.

Best Regards
Giuliano


Submitted by thirdlane on Sat, 01/24/2015 Permalink

Hi Giuliano,

You should not modify configuration files or scripts directly. Could you please describe what you are trying to do?

Submitted by basisit on Mon, 01/26/2015 Permalink

We have developed an app for android smartphone.
this app emulate an internal extension of the PBX using gsm, this is not a sip connection.
users can receive call from the phone, from the smartphone or both.
users can do call from the phone, from the smartphone as well.

in addition we can manage some particular status from this app, for example out of office, busy, DND.

we have created specific script to manage outbound and inbound call.

on these script we initialize some variable on the asterisk DB.

for example:

exten => USER00,1,Set(DB(CALLERID/${ARG01})=${CALLERID(num)}|${CALLERID(name)})
exten => USER00,n,Set(DB(CHANNELTRF/${USER00})=${CHANNEL})

depending on the section where this variable are recalled, we need to reset to empty aftar a call is received.

if the call is answered we don't have any problem.
if the caller interrupt the call, asterisk give us a exited non-zero message, and didn't continue with the script.

we see that it is possible to call exten => h,1, on these particular message.

so we want to add the reset of these variable on the exten => h,1 command.

can you help us?

Best Regards
Giuliano

Submitted by thirdlane on Wed, 02/04/2015 Permalink

Hi Giuliano,

We can look into that - but as I mentioned in the email I sent to you some time ago - you need a support contract. Please contact me if you are not clear on how to get it.

Best regards,
Alex