New Code on my FLOW
Using ZAPTEL
Im USING THE LATEST FREEPBX but not sure where to put this and what file and how to call it ..... Heres the Flow
CALLER on
Mitel PBX users Dials 1001 > LS-GS Trunk > (asterisk) Zaptel Inbound Trunk > inbound DID OF 1001 > BEEP > Recording Temp Page> Dial Ext 2001 > Outbound Route > FXS Ring Mitel PBX > Analog code 2001 paging Zone to Speaker)
exten => 1001,1,Answer
exten => 1001,2,Wait(1)
exten => 1001,n,set(pageext="zaptel/1001")
exten => 1001,1,playback(beep)
exten => 1001,2,Wait(1)
exten => 1001,n,record(asterisk-recording:ulaw)
exten => 1001,n,system(echo "Channel: ${pageext}" > /var/spool/asterisk/tmp/1001-1.pg)
exten => 1001,n,system(echo "WaitTime: 1" >> /var/spool/asterisk/tmp/1001-1.pg)
exten => 1001,n,system(echo "Context: from-internal" >> /var/spool/asterisk/tmp/1001-1.pg)
exten => 1001,n,system(echo "Extension: 2001" >> /var/spool/asterisk/tmp/1001-1.pg)
exten => 1001,n,system(echo "Priority: 1" >> /var/spool/asterisk/tmp/1001-1.pg)
exten => 1001,n,system(chmod 777 /var/spool/asterisk/outgoing/1001-1.pg)
exten => 1001,n,system(mv /var/spool/asterisk/tmp/1001-1.pg /var/spool/asterisk/outgoing/)
exten => 1001,n,hangup()
exten => 2001,1,dial(Zaptel/2001)
exten => 2001,n,Wait(2)
exten => 2001,1,dial(2001) (After Connected to teh PBX Dial 2001)
exten => 2001,n,Wait(2)
exten => 2001,n,playback(asterisk-recording)
exten => 2001,n,Hangup
Shall i think of creating a huntgroup of 1001 and have 4 members in it and repeat this code 4 times IM not sure if i got the ZAPTEL context right or the Dialing
2. Your exten 2001, has two "1" priorities. This is problematic right off the bat. The second dial statement is missing the technology parameter, which is no good also.