[HELP] Message forwarding


#1

I am trying to get Asterisk to call a DTMF pager after a message has been left.
I have a working Asterisk / TDM setup running Sarge.
I am calling in from a POTS phone into Asterisk
Messages are viewed on a Reomte console (ssh into server)

If i hang up the phone regardless of pressing # then i get the massage:
== Spawn extension (pots_1, s, 2) exited non-zero on ‘Zap/4-1’
– Hungup 'Zap/4-1’
and lines 3 - 6 never execute (see below)

If i stay on the line, then, 3 - 6 execute but on the POTS line i am calling in from and i hear the DTMF tones being dialed. Not what i wanted.

I tried adding this line after 2 (changing all numbering to keep in order)
exten => x,3,hangup(0)
but as soon as i hang up the POTS line i get the non-zero error and all line execution stops.

[pots_1] ;from zapata.conf
exten => s,1,Dial(IAX2/192.168.5.102,15) ;this works
exten => s,2,Voicemail(u1) ;this works also
/**** Problems start here ***/
exten => s,3,Wait(5) ;wait for channel to hang up
exten => s,4,Dial(Zap/4/962-5616) ;
exten => s,5,SendDTMF(*111111111) ; the * stops pager voice prompts
exten => s,6,Hangup

Any help would be nice.
James.


#2

I am trying to do the same thing, any progress?