After literally MONTHS of research, testing, trial, and error…I have FINALLY figured out a working configuration for a Cisco 7960 SIP Phone on FreePBX.
You can use a res_pjsip extension, but you’ll need to make sure the following 2 options are set:
The Winning Combination
In the FreePBX Admin control panel, go to the extension you’re working with, then go to the Advanced tab and set these:
Force rport = No
Rewrite Contact = No
The Force rport setting allows the phone to register with Asterisk, and the Rewrite Contact setting allows calls to be made to the Cisco phone. Before changing Rewrite Contact to “No”, I was able to dial out from the Cisco 7960, but I could not make calls TO that device.
Once you change these settings, save and Apply Config, then also reboot your phone.
Special thanks to zirophyz on this thread for the last piece of the puzzle for me (Rewrite Contact).
Other Settings and Things To Note
Each FreePBX configuration is somewhat unique, so I won’t be able to go into enough detail here to tell you what your complete setup should look like. However, here are some things to keep in mind:
- Max Contacts – Each res_pjsip extension has a setting that allows multiple concurrent registrations (multiple devices) for a single extension. This is useful for users with a desk phone and a softphone, but you’ll need to make sure you increase this number as you add simultaneous connections (devices) to the res_pjsip extension.
- SIP Port – By default, newer versions of Asterisk use “PJSIP” (or res_pjsip) as the default SIP driver instead of the older “SIP” (or chan_sip) driver. (You can read more about that here and here and watch a good talk here.) I decided to stay with res_pjsip because of the above Max Contacts setup, which fits our use cases pretty well. If you do this, just note that res_pjsip will use port 5060 and chan_sip will use 5160.
I hope this saves someone hours, weeks, and months of troubleshooting. I wish I would have found this information sooner than I did, and that’s why I decided to post this for you.
Comment below or mail me if you have more questions on this topic! 🙂
Shout-out to one of our readers, Avikovych, in the comments below. They put a link to a download for the firmware for these phones. Feel free to try the link they provided below in the comments, or you can check out this one from Cisco. Updating firmware is beyond the scope of this post, but Avikovych makes a good point that this could be useful. Thanks!
Thank you! Been tearing my hair out for days trying to get my 7960 to register the line properly with FreePBX and having no luck. These two simple switches fixed everything. You are a god among men.
I know the feeling 🙂 Glad that helped!
Thanks, this did the trick
Glad this helped you!
How can I thank you enough! Solved my problem with 7940 phones, Freepbx was working fine with a soft phone, not showing even an error message with my Cisco 7940s
Glad I could help!
Thanks, that saved me hours ../Steve
Glad this helped!
Thanks! This saved me a lot of time. Much appreciated!
Great! Glad this helped save you some time!
This DID save a lot of hastle. It didn’t work at first, went out to dinner and worked like a charm when I got back. I added another extension, and get the “number or code” etc… message on that line. I did increase max contacts to 6 on both extensions. I Can’t find much else in the way of anyone else having trouble along these lines. Pardon both puns.
Glad this seems to have helped. Are you still having any problems now, or are you good? Also, never apologize for puns! Haha! They’re all great.
Hi, now it is working. It was very helpful
Great! I’m so glad this helped you 🙂
this works also for me, Thanks a lot bro.
here i have other questions.
How to set up Mitel’s IP phone, please help us, bro. we have been in trouble for the last 3 weeks and still not yet.
Glad this was helpful! If you want, you can email me through the Contact form on this site, and give me more info on the problem you’re facing. I’ll see what I can do to help.
It works !!!
I share working files for Cisco 7940/7960 SIP-PjSip Asterisk FreePBX – you can search on the Internet how to download Tftpd64 to your phone. Firmware version P0S3-8-12-00
www [dot] mediafire [dot] com/file/uklxuga4gjkaz2j/Cisco_7940-7960_SIP-PjSip_Conf [dot] rar/file
[Moderator edit: If you want to use the above URL, do so at your own risk. That site is not endorsed by madbray.com. I have removed the URL functionality, but you can copy & paste the address, replacing ” [dot] ” with “.” ]
Glad this helped you! Thanks for the great point about the firmware. I added a shout-out to you at the end of this post. Thanks!