Skip to content

Instantly share code, notes, and snippets.

@sboily
Last active October 6, 2015 17:07
Show Gist options
  • Save sboily/937537e0e6607feb2fd1 to your computer and use it in GitHub Desktop.
Save sboily/937537e0e6607feb2fd1 to your computer and use it in GitHub Desktop.
[txfax]
exten = s,1,Set(TIMEOUT(absolute)=5400)
same = n,SendFax(${XIVO_FAX_PATH})
same = n,Set(XIVO_DSTID=${XIVO_USERID})
same = n,AGI(agi://${XIVO_AGID_IP}/incoming_user_set_features)
same = n,Set(EXTEN_GSM=XIVO_MOBILEPHONENUMBER)
same = n,Set(EXTEN_CONTEXT=default)
same = n,Agi(originate)
same = n,System(rm ${XIVO_FAX_PATH})
exten = T,1,Hangup()
exten = h,1,Hangup()
[fax-loop]
exten = s,1,Answer()
same = n,Playback(hello-world)
same = n,Wait(10)
same = n,Goto(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment