<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
<br>
I have new information from a newly created test environment :<br>
<br>
<br>
[Sep 16 13:41:01]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@macro-vakantie:1]
MYSQL("SIP/test1-00000008", "Connect connid localhost username passwd
AsteriskHosted") in new stack<br>
[Sep 16 13:41:01]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@macro-vakantie:2]
MYSQL("SIP/test1-00000008", "Query resultid 1 SELECT ast1, ast2, na,
naID FROM vakantiedata where ID=59") in new stack<br>
asterisk16*CLI&gt; <br>
Disconnected from Asterisk server<br>
[Sep 16 13:41:01] Executing last minute cleanups<br>
/usr/sbin/safe_asterisk: line 145:&nbsp; 3508 Segmentation fault&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (core
dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS}
${ASTARGS} &gt; /dev/${TTY} 2&gt;&amp;1 &lt; /dev/${TTY}<br>
Asterisk ended with exit status 139<br>
Asterisk exited on signal 11.<br>
<br>
<br>
Does this shine new light to the problem ?!<br>
<br>
Kind regards,<br>
Jonas.<br>
<br>
</font><br>
On 09/15/2010 06:49 PM, jon pounder wrote:
<blockquote cite="mid:4C90F90F.3030700@inline.net" type="cite">
  <pre wrap="">On 09/15/2010 12:42 PM, Leif Madsen wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On 10-09-15 05:25 AM, Jonas Kellens wrote:
   
    </pre>
    <blockquote type="cite">
      <pre wrap="">I think I've found it :

Asterisk always reboots on this part :

[Sep 15 11:16:32] -- Goto (azura,pbx,1)
[Sep 15 11:16:32] -- Executing [pbx@azura:1]
NoOp("SIP/INTERTELin-00000000", "3252480333 = pbx formule") in new stack
[Sep 15 11:16:32] -- Executing [pbx@azura:2]
Set("SIP/INTERTELin-00000000", "CDR(accountcode)=AZURAin") in new stack
[Sep 15 11:16:32] -- Executing [pbx@azura:3]
Set("SIP/INTERTELin-00000000", "BRON="473555006"&lt;473555006&gt;") in new stack
[Sep 15 11:16:32] -- Executing [pbx@azura:4]
Goto("SIP/INTERTELin-00000000", "vakantie") in new stack
[Sep 15 11:16:32] -- Goto (azura,pbx,5)
[Sep 15 11:16:32] -- Executing [pbx@azura:5]
Macro("SIP/INTERTELin-00000000", "vakantie,58") in new stack
[Sep 15 11:16:32] -- Executing [s@macro-vakantie:1]
MYSQL("SIP/INTERTELin-00000000", "Connect connid localhost username
passwd AsteriskHosted") in new stack
[Sep 15 11:16:32] -- Executing [s@macro-vakantie:2]
MYSQL("SIP/INTERTELin-00000000", "Query resultid 1 SELECT ast1 , ast2 ,
na , naID FROM vakantiedata where ID=58") in new stack
vps2301*CLI&gt;
Disconnected from Asterisk server
[Sep 15 11:16:32] Executing last minute cleanups


Dialplan :

[macro-vakantie]
exten =&gt;  s,1,MYSQL(Connect connid localhost username passwd AsteriskHosted)
exten =&gt;  s,n,MYSQL(Query resultid ${connid} SELECT ast1 , ast2 , na ,
naID FROM vakantiedata where ID=${ARG1})
exten =&gt;  s,n,MYSQL(Fetch fetchid ${resultid} AST1 AST2 NA naID )
exten =&gt;  s,n,NoOp(vakantie-ast1 = ${AST1} vakantie-ast2 = ${AST2} na =
${NA} naID = ${naID})
exten =&gt;  s,n,MYSQL(Clear ${resultid})
exten =&gt;  s,n,MYSQL(Disconnect ${connid})

exten =&gt;  s,n,NoOp(fetchid = ${fetchid})
exten =&gt;  s,n,GoToIf($["${fetchid}"=="0"]?exit)

exten =&gt;  s,n,NoOp()
exten =&gt;  s,n,GoToIfTime(${AST1}?opvakantie)
exten =&gt;  s,n,GoToIfTime(${AST2}?opvakantie)

exten =&gt;  s,n(exit),NoOp()
exten =&gt;  s,n,Set(vakantieresult=continue)
exten =&gt;  s,n,MacroExit

exten =&gt;  s,n(opvakantie),NoOp(op vakantie !)
exten =&gt;  s,n,GoToIf($["${NA}"="hangup"]?hangup:route)


Do you guys see why Asterisk has problems with this part of the dialplan ?!     
      </pre>
    </blockquote>
  </blockquote>
</blockquote>
<br>
</body>
</html>