[asterisk-users] Gosubs broken since r160626 (1.6.0 SVN) ?

Gary Hawkins asterisk.users at garyhawkins.me.uk
Fri Dec 5 14:28:11 CST 2008


Hi all,

I've just upgraded to latest 1.6.0 SVN from a few days ago and my Gosubs
have stopped working.

This is from the verbose logs:

-- Executing [03333407271 at incoming-aaisp:4] GotoIf("IAX2/aaisp-3802",
"1?5:7") in new stack
    -- Goto (incoming-aaisp,03333407271,5)
    -- Executing [03333407271 at incoming-aaisp:5] Gosub("IAX2/aaisp-3802",
"macro-announcement,s,1(anonymous_call_rejection,22)") in new stack
  == Spawn extension (incoming-aaisp, 03333407271, 6) exited non-zero on
'IAX2/aaisp-3802'
    -- Hungup 'IAX2/aaisp-3802'

This was the original AEL2 code:

03333407271 => {
    Verbose("We got here");
    AGI(caller_id_rewriter/caller_id_rewriter.py);
    Set(CALLERID(name)="1 ${CALLERID(name)}");
    if ("${WITHHELD}" = "yes") {
      &macro-announcement(anonymous_call_rejection,22);
      Hangup(22);
    }
    Dial(${ALLPHONES},20);
    if ("${DIALSTATUS}" = "BUSY") {
      VoiceMail(201,b);
    }
    else
    {
      VoiceMail(201,u);
    }
    Hangup(${HANGUPCAUSE});
  }


This was working on 1.6.0 SVN before r160626 and I have not changed any
of the code.  The Gosubs were generated by the AEL parser.  In the AEL2
dialplan I am calling

&macro-announcement(anonymous_call_rejection,22);

Has anyone seen similar problems to this?


Thanks
Gary H

--
Gary Hawkins <gary.hawkins at garysoft.co.uk>



More information about the asterisk-users mailing list