[macro-stdexten] ;ARG1 = Device(s) to ring (Default SIP/${MACRO_EXTEN} ;ARG2 = Voicemail Box to go to (Default ${MACRO_EXTEN} ;ARG3 = Timeout in seconds (divide be 5 for number of rings) default 20 exten => s,1,NoOp exten => s,n,Set(DIALSTRING=${IF($[ "${ARG1}" = "" ]?SIP/${MACRO_EXTEN}:${ARG1})}) exten => s,n,Set(VMAILBOX=${IF($[ "${ARG2}" = "" ]?${MACRO_EXTEN}:${ARG2})}) exten => s,n,Set(TIMEOUT=${IF($[ "${ARG3}" = "" ]?20:${ARG3})}) exten => s,n,Dial(${DIALSTRING},${TIMEOUT},twk) exten => s,n,Goto(s-${DIALSTATUS},1) exten => s-,1,Goto(s-BUSY,1) exten => _s-.,1,Goto(s-BUSY,1) exten => s-CONGESTION,1,Goto(s-BUSY,1) exten => s-BUSY,1,Voicemail(${VMAILBOX}@default,b) exten => s-BUSY,n,Hangup() exten => s-CHANUNAVAIL,1,Goto(s-NOANSWER,1) exten => s-NOANSWER,1,Voicemail(${VMAILBOX}@default,u) exten => s-NOANSWER,n,Hangup
Rambling about Django, Python, Ansible and sometimes PHP and Wordpress. I enjoy talking about all technologies, and offer help when I can.
Friday, December 07, 2007
My stdexten macro
I always forget this so I figure I will post it and update it when I improve it.
Wednesday, November 28, 2007
Document Design for Search Engine Optimization



Saturday, October 20, 2007
Mythtv Distro Evaluations
It is a tough time for Mythtv distros right now with Zap2it cancelling their services is August. There are 4 major mythtv distro communities right now, knoppmyth, mythdora, mythbuntn and linuxmce. Today I tried all but knoppmyth and here is what I have found.
LinuxMCE
I first tried LinuxMCE as the demo video they have on their site shows some amazing features. They do have an update for the new Schedules direct service but the link to the script was down. The thing that I found about LinuxMCE was that because it is a bunch of custom changes on top of Kubuntu Feisty, updating myth from the Kubuntu repository would break it. This is a cool system but is a bit behind when on changes.
Mythdora
Mythdora acutally looked good, they have some myth specific questions at install. The downside I found was the myth version was still the older one and there was no Schedules direct support, also the links for the update at the atrpms site was down as well.
Mythbuntu
Mythbuntu is a supported ubuntu distro and is kept almost as up to date as ubuntu is. Right now they have a 7.10 release candidate and the 7.10 version has only been released for a few days at this point. The good thing is it has the newest version of myth and the Schedules Direct is supported right out of the box, no updates needs.
Ubuntu again comes through leading the pack with the most up to date distro in mythbuntu.
If anyone has comments on these distros or any other I would love to hear them.
Thursday, April 19, 2007
Polycom Presence and SIP 500 errors
I finally got someone at Polycom support that knew what they were talking about and were very helpful. I have been getting a lot of these errors from the Polycoms on my asterisk servers Incoming call: Got SIP response 500 "Internal Server Error" back from 192.168.0.100
The problem was the transport was set to "DNSnaptr" by default. So if you set it to "TCPpreferred" it should fix any issues you are having with presence and also any sip 500 errors.
EDIT*
I am still getting sip 500 errors if I restart asterisk and not the polycom phones. On a side note for asterisk 1.4 make sure call-limit is set to something. I set it to 8.
Thursday, March 22, 2007
Provisioning Polycom phones
Provisioning Polycom SIP phones can be a pain. There are some good examples on www.voip-info.org but I think a explanation would be a good idea.
For an internal LAN setup TFTP is easiest, so I have everything setup as so:
/tftpboot
/tftpboot/contacts
/tftpboot/logs
/tftpboot/overrides
The important thing is DO NOT touch sip.cfg, phone1.cfg and 000000000000.cfg, use it as reference only. Why you ask, so when new firmware comes out you just drop in the new file.
So where do you make your changes then????
- MAC.cfg
- EXTEN.cfg
- 00000000000-directory.cfg
- contacts/MAC-directory.cfg
- /tftpboot/contacts/00000000000-directory.xml does not get used it gets pulled from the /tftpboot/000000000000-directory.xml file (as of bootrom v3.2.2)
- The dhcp option to set the tftp server is option tftp-sever-name "tftp://192.168.41.1"
Monday, February 05, 2007
Linux still not a good desktop
So I figured I would bite the bullet and give Kubuntu another go as my desktop. The install was easy, it supported all my hardware out of the box and I was happy.
I even spent a bunch of time getting Beryl to work and that was sweet, but then the bugs started.
A list of tasks I needed to be able to accoplish
- I wanted to connect to Exchange and Evolution is pretty good at that now.
- I can get to the file server at work fine, but I can't open anything in openoffice directly, ouch.
- Firefox locked up and crashed many times.
- Wireless configuration is painful for a roaming laptop.
- Dual monitors are a must but getting xorg to work with both, good luck.
Friday, January 12, 2007
Asterisk 1.4
With asterisk 1.4 finally out of beta I figured I would give it a whirl. They have now stepped up to the "distro" market to compete with trixbox and probably do a better job.
You do have to register on the asterisk site to download it but oh well. The wizard is easy to use and the asterisk web GUI is very very nice. Things that are missing is voicemail, call recording, a reception module and phone provisioning. Hopefully I can get that intergrated sooner rather then later.
Trixbox is still using an old version of asterisk 1.2.13 I think. That is not going to work with the amount of changes that have been done for 1.4.0. Trixbox just doesn't make things much easier if you know what you are doing.
Tuesday, January 09, 2007
Windows Home Server will live in your closet, simplify your life | Jesse D. Lewin | Microsoft 10
Check out the new windows home server. This will finally will make having multiple computers at home convenient. Check out the backup feature, that alone makes it worth it. M$ is doing things right for once.
Link
Subscribe to:
Posts (Atom)