Support
FAQs
Asterisk Topics
- Asterisk Tip: SIP Installation Instructions
Asterisk Tip: SIP Installation Instructions |
Typical SIP Phone ConfigurationIn order to install a SIP phone you will need to edit the /etc/asterisk/sip.conf and /etc/asterisk/extensions.conf files. Add the following lines to the sip.conf (these configuration parameters work with most SIP phones): context_name –> Phone type (example: office, SIP, front_desk, etc.) extension_number –> The extension number of the phone name –> The name of your phone (example: john, mike, basement, etc.) ---------------------------------- [extension_number] context=context_name reinvite=no canreinvite=no disallow=all allow=alaw allaw=ulaw dtmfmode=rfc2833 type=friend host=dynamic callerid="name" ---------------------------------- Add the following line to the extensions.conf file: First, make sure you add the extension lines under the context you specified in the sip.conf. If there is no such section, add a new context section as follows: ------------------ [context_name] include => default ------------------ If a context name has been specified, add the following lines beneath it: ------------------------------------------------------------- exten => extension_number,1,Dial(SIP/extension_number,20,tr) exten => extension_number,2,Hangup ------------------------------------------------------------- If Asterisk is running, reload the configuration so that your changes will take effect. On your SIP phone, specify the SIP proxy’s IP and set the phone’s extension number. Then try placing a call to another phone connected to the SIP proxy (Asterisk). ---------------------------------- [extension_number] context=context_name reinvite=no canreinvite=no disallow=all allow=alaw allaw=ulaw dtmfmode=rfc2833 type=friend host=dynamic callerid="name" =========================================== ExampleTo add a SIP phone on extension 520 with voicemailbox 520 and SIP peer name 520, use the following script (can be run from the Linux CLI): ------------------------- echo “exten => 520,1,Macro(stdexten,520,,)” /etc/asterisk/extensions-phones.d/520.conf echo “520=>,,” > /etc/asterisk/voicemail-phones.d/520.conf echo -n “[520]\n;type=friend\nsecret=\nmailbox=520\nhost=dynamic” /etc/asterisk/sip-phones.d/520.conf -------------------------- and then reload Asterisk. |
|
| Last Updated ( Tuesday, 17 August 2010 ) |

