рд╕рд┐рд╕реНрдХреЛ рдЖрдИрдкреА рдлреЛрди CP-7925G (WiFi), рд╕рд┐рд╕реНрдХреЛ рдЖрдИрдкреА рд╕рдореНрдореЗрд▓рди рд╕реНрдЯреЗрд╢рди CP-7937G, CP-3905G рдФрд░ рдПрдХреАрдХреГрдд IP рдлреЛрди CP-7965 рдХреЗ рдорд┐рддреНрд░

рдкреНрд░рд╕реНрддрд╛рд╡рдирд╛


рдПрдХ рдмрд╛рд░ рд╕рд┐рд╕реНрдХреЛ рдиреЗрдЯрд╡рд░реНрдХ рдЙрдкрдХрд░рдг рдХреЛ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдЖрд╡рд╢реНрдпрдХ рдерд╛, рдлрд┐рд░ рдореИрдВрдиреЗ рдкрд╛рдареНрдпрдХреНрд░рдо рдкреВрд░рд╛ рдХрд┐рдпрд╛ рдФрд░ рд╕рд┐рд╕реНрдХреЛ рд╕реАрд╕реАрдПрдирдП рдбрд┐рд╕реНрдХрд╡рд░реА рдкреНрд░рдорд╛рдгрдкрддреНрд░ рдкреНрд░рд╛рдкреНрдд рдХрд┐рдпрд╛ред рд░рд╛рдЙрдЯрд░ рдФрд░ рд╕реНрд╡рд┐рдЪ рдкрд░ рдХрдВрд╕реЛрд▓ рдореЗрдВ рдХрд╛рдо рдХрд░рдиреЗ рдХреА рдЦреБрд╢реА рдХреЛрдИ рд╕реАрдорд╛ рдирд╣реАрдВ рдереАред рд╡реЗ рд╕рдордп рдЦреБрд╢реА рд╕реЗ рд╕рдорд╛рдкреНрдд рд╣реЛ рдЧрдП, рдФрд░ рдкрд┐рдЫрд▓реЗ рдХреБрдЫ рд╡рд░реНрд╖реЛрдВ рдореЗрдВ рдореИрдВрдиреЗ рд╢рд╛рдпрдж рд╣реА рдХрднреА рдЙрдирдХреЗ рдЙрдкрдХрд░рдгреЛрдВ рдХреЛ рджреЗрдЦрд╛ рд╣реИ, рдФрд░ рдпрд╣рд╛рдВ рддрдХ тАЛтАЛрдХрд┐ рдХрдо рдмрд╛рд░ рд╕реЗрдЯ рдЕрдк рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╣реИред рд▓реЗрдХрд┐рди, рд╣рд╛рд▓ рд╣реА рдореЗрдВ рдкреВрд░реЗ рдЧреНрд░рд╛рд╣рдХ рдХреЗ рдХрд╛рд░реНрдпрд╛рд▓рдп рдХреЛ рдЖрдИрдкреА рдЯреЗрд▓реАрдлреЛрдиреА рдореЗрдВ рд╕реНрдерд╛рдирд╛рдВрддрд░рд┐рдд рдХрд░рдирд╛ рдЖрд╡рд╢реНрдпрдХ рдерд╛, рдФрд░ рдЙрдиреНрд╣реЛрдВрдиреЗ рдЬреЛрд░ рджреЗрдХрд░ рдХрд╣рд╛ рдХрд┐ рдЙрдиреНрд╣реЗрдВ рд╕рд┐рд╕реНрдХреЛ рдлреЛрди рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИ рдФрд░ рдХреБрдЫ рдирд╣реАрдВред рд╕рд╛рде рд╣реА, рдЖрдкрдХреЛ рдореАрдЯрд┐рдВрдЧ рд░реВрдо рдореЗрдВ рдПрдХ рд╕рдореНрдореЗрд▓рди рдХреЙрд▓ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИред рдЪреВрдВрдХрд┐ рдмрд╣реБрдд рд╕рд╛рд░реЗ рд╡рд┐рдХрд▓реНрдк рдирд╣реАрдВ рдереЗ, рдФрд░ рдмрдЬрдЯ рднреА, рдореБрдЭреЗ рдЯреЗрд▓реАрдлрд╝реЛрди рдПрдХреНрд╕рдЪреЗрдВрдЬ рдХрд╛ рддреНрдпрд╛рдЧ рдХрд░рдирд╛ рдкрдбрд╝рд╛, рддрд╛рд░рд╛рдВрдХрди рдХреЗ рдкрдХреНрд╖ рдореЗрдВред рдпрд╣ рдЙрддрдирд╛ рдЖрд╕рд╛рди рдирд╣реАрдВ рдерд╛ рдЬрд┐рддрдирд╛ рд╣рдо рдЪрд╛рд╣рддреЗ рд╣реИрдВред


рдЪрд░рдг 1


рдкрд╣рд▓рд╛ рдХрджрдо, рдирд┐рд╢реНрдЪрд┐рдд рд░реВрдк рд╕реЗ, рдЪрдпрди рдФрд░ рдЦрд░реАрдж рд╣реИред рдпрд╣ рдХрджрдо рдмрд╣реБрдд рд▓рдВрдмреЗ рд╕рдордп рдХреЗ рд▓рд┐рдП рдЕрд╕рдВрднрд╡ рд▓рдЧ рд░рд╣рд╛ рдерд╛ред рддреЛ рд╣рдореЗрдВ рдХреНрдпрд╛ рдЪрд╛рд╣рд┐рдП:
- рд╕рд┐рд╕реНрдХреЛ рдЖрдИрдкреА рдлреЛрди CP-7925G - рдПрдХ рдорд╛рдирдХ рдкреИрдирд╛рд╕реЛрдирд┐рдХ DECT рдХреЗ рдЪрд┐рддреНрд░реЛрдВ рдХреЗ рд╕рдорд╛рди рдПрдХ рддрд╛рд░рд░рд╣рд┐рдд рдлреЛрди, рдХреЗрд╡рд▓ рдПрдХ рд░рдВрдЧ рдкреНрд░рджрд░реНрд╢рди рдХреЗ рд╕рд╛рдеред (рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ рдпрд╣ рдкрддрд╛ рдЪрд▓рд╛ рд╣реИ рдХрд┐ рд╣рддреНрдпрд╛ рдирд╣реАрдВ рдХреА рдЧрдИ, рд░рдмрд░рдпреБрдХреНрдд рдлрд╛рд╡рдбрд╝рд╛)
- рд╕рд┐рд╕реНрдХреЛ рдПрдХреАрдХреГрдд рдЖрдИрдкреА рд╕рдореНрдореЗрд▓рди рд╕реНрдЯреЗрд╢рди 7937G - рдПрдХ рд╕рдореНрдореЗрд▓рди рд╕реНрдЯреЗрд╢рди, рдмрд╣реБрдд рд╕реБрдВрджрд░ рдФрд░ рдкреНрд░рднрд╛рд╡рд╢рд╛рд▓реАред рдХрд╛рд▓реЗ рдФрд░ рд╕рдлреЗрдж рдкреНрд░рджрд░реНрд╢рдиред рдореИрдВрдиреЗ 2 рдЕрддрд┐рд░рд┐рдХреНрдд рдорд╛рдЗрдХреНрд░реЛрдлреЛрди рдирд╣реАрдВ рд▓рд┐рдП, рдмрдЬрдЯ рдореЗрдВ рдлрд┐рдЯ рдирд╣реАрдВ рд╣реБрдП, рдФрд░ рдмреИрдардХ рдХрдХреНрд╖ рдмрд╣реБрдд рдмрдбрд╝рд╛ рдирд╣реАрдВ рдерд╛ред
- рд╕рд┐рд╕реНрдХреЛ рдЖрдИрдкреА рдлреЛрди CP-3905G - рджрд┐рдЦрдиреЗ рдореЗрдВ рдХреБрдЫ рдЦрд╛рд╕ рдирд╣реАрдВ, рдПрдХ рдмреНрд▓реИрдХ рдПрдВрдб рд╡реНрд╣рд╛рдЗрдЯ рдбрд┐рд╕реНрдкреНрд▓реЗ рд╡рд╛рд▓рд╛ рдПрдХ рд╕рд╛рдорд╛рдиреНрдп рдлреЛрдиред
- рдпреВрдиреАрдлрд╛рдЗрдб рдЖрдИрдкреА рдлреЛрди рд╕реАрдкреА -7965 - рд╕рдЪрд┐рд╡ рдХреЗ рд▓рд┐рдП рдЙрдкрдпреЛрдЧреА рд╕реБрд╡рд┐рдзрд╛рдУрдВ рдХрд╛ рдПрдХ рд╕рдореВрд╣ рдХреЗ рд╕рд╛рде рдПрдХ рдмрдбрд╝рд╛ рдлреЛрдиред рдЗрд╕рдореЗрдВ 5 рдЗрдВрдЪ рдХрд╛ TFT рдбрд┐рд╕реНрдкреНрд▓реЗ, 16-рдмрд┐рдЯ рдХрд▓рд░ рдбреЗрдкреНрде (рдЖрдк рд╡реАрдбрд┐рдпреЛ рднреА рджреЗрдЦ рд╕рдХрддреЗ рд╣реИрдВ) рдФрд░ рд╕рднреА рдкреНрд░рдХрд╛рд░ рдХреА рдЙрдкрдпреЛрдЧреА рд╡рд┐рд╢реЗрд╖рддрд╛рдУрдВ рдХрд╛ рдПрдХ рдЧреБрдЪреНрдЫрд╛ рд╣реИред

рд╡рд╛рд╣, рдХрд┐рддрдиреЗ рдорд╛рд▓, рдЪрд▓реЛ рдЦрд░реАрджрддреЗ рд╣реИрдВ!

рдореИрдВ рдХрд┐рд╕реА рднреА рд╕рдВрдЧрдарди рдХрд╛ рдЙрд▓реНрд▓реЗрдЦ рдирд╣реАрдВ рдХрд░реВрдВрдЧрд╛, рд▓реЗрдХрд┐рди рд╣рдордиреЗ рд╕рдорд╕реНрдпрд╛рдУрдВ рдХреЗ рд╕рд╛рде рдЦрд░реАрджрд╛ред рдпрд╣ рд╕реНрдкрд╖реНрдЯ рд╣реЛрдиреЗ рдХреЗ рдмрд╛рдж рдХрд┐ рд╣рдо рдХреМрди рд╕реЗ рдЙрдкрдХрд░рдг рдЦрд░реАрджреЗрдВрдЧреЗ, рдордВрдЪреЛрдВ рдФрд░ рд╡рд┐рднрд┐рдиреНрди рд╕рдореАрдХреНрд╖рд╛рдУрдВ рдХрд╛ рдЕрдзреНрдпрдпрди рдХрд┐рдпрд╛ рдЧрдпрд╛ред рдИрдорд╛рдирджрд╛рд░реА рд╕реЗ - рдореИрдВрдиреЗ рдкрд╣рд▓реА рдмрд╛рд░ рд╕рд┐рд╕реНрдХреЛ рдХреЛ рдЦрд░реАрджрд╛ рдерд╛, рдкрд╣рд▓реЗ рдореИрдВ рдХреЗрд╡рд▓ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░реЗрд╢рди рдореЗрдВ рд╢рд╛рдорд┐рд▓ рдерд╛, рдореБрдЭреЗ рдирд╣реАрдВ рдкрддрд╛ рдХрд┐ рдЕрдиреНрдп рдЙрдкрдХрд░рдг рдХреИрд╕реЗ рд╣реИрдВ, рд▓реЗрдХрд┐рди рд╕рднреА рдлреЛрди рдХреЗ рд╕рд╛рде рдареАрдХ рдирд╣реАрдВ рд╣реИред
рдпрд╣ рдкрддрд╛ рдЪрд▓рд╛ рдХрд┐ рд╕рд┐рд░реНрдл рдПрдХ рдлреЛрди рдЦрд░реАрджрдиреЗ рдХреЗ рд▓рд┐рдП - рдпрд╣ рдХрд╛рдо рдирд╣реАрдВ рдХрд░реЗрдЧрд╛, рдкреНрд░рддреНрдпреЗрдХ рдлреЛрди рдХреЛ рдХрд╛рдо рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рд╕рднреА рдкреНрд░рдХрд╛рд░ рдХреЗ рддрд╛рд░реЛрдВ рдФрд░ рдЫреЛрдЯреЗ рдЙрдкрдХрд░рдгреЛрдВ рдХрд╛ рдПрдХ рдЧреБрдЪреНрдЫрд╛ рдЦрд░реАрджрдирд╛ рдЖрд╡рд╢реНрдпрдХ рд╣реИред рд╕рдорд╕реНрдпрд╛ рдпрд╣ рд╣реИ рдХрд┐ рдЗрдВрдЯрд░рдиреЗрдЯ рдкрд░ рдЗрди рдЙрдкрдХрд░рдгреЛрдВ рдХреА рдХреЛрдИ рддрд╕реНрд╡реАрд░ рдирд╣реАрдВ рд╣реИ, рд╡рд┐рд╡рд░рдг рдирд╣реАрдВ рд╣реИрдВред рд╣рдордиреЗ рд╕реЛрдЪрд╛ рдХрд┐ рдРрд╕рд╛ рдХрд░рдирд╛ рдПрдХ рдмрд╣реБрдд рд▓рдВрдмрд╛ рдФрд░ рджрд░реНрджрдирд╛рдХ рдХрд╛рдо рд╣реЛрдЧрд╛, рдЗрд╕рд▓рд┐рдП рдЙрдиреНрд╣реЛрдВрдиреЗ рдореЙрд╕реНрдХреЛ рдореЗрдВ рдПрдХ рд╕рд┐рд╕реНрдХреЛ рдкреНрд░рддрд┐рдирд┐рдзрд┐рдпреЛрдВ рдХреЛ рдмреБрд▓рд╛рдпрд╛ рдФрд░ рдЙрдкрд░реЛрдХреНрдд рд▓реЛрд╣реЗ рдХреЗ рдХрдиреЗрдХреНрд╢рди рдФрд░ рд╕реНрдерд╛рдкрдирд╛ рдХреЗ рд▓рд┐рдП рдПрдХ рдЕрдиреБрдорд╛рди рднреЗрдЬрдиреЗ рдХреЗ рд▓рд┐рдП рдХрд╣рд╛ред рд╣рд╛рдВ, рд╣рд╛рдВ, рдореИрдВ рд╕рдордЭрддрд╛ рд╣реВрдВ рдХрд┐ рдпрд╣ рдЙрдЪрд┐рдд рдирд╣реАрдВ рд╣реИ, рд▓реЗрдХрд┐рди рдЖрдк рдХреНрдпрд╛ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВ? рдЕрдиреБрдорд╛рди рдмрд╣реБрдд рд▓рдВрдмреЗ рд╕рдордп рдХреЗ рд▓рд┐рдП рддреИрдпрд╛рд░ рдХрд┐рдпрд╛ рдЧрдпрд╛ рдерд╛, рдХреБрдЫ рджрд┐рдиреЛрдВ рдмрд╛рдж рд╣рдордиреЗ рдЗрд╕реЗ рдкреНрд░рд╛рдкреНрдд рдХрд┐рдпрд╛ рдФрд░ рдЖрд╢реНрдЪрд░реНрдпрдЪрдХрд┐рдд рдереЗ:
- рдпрд╣ рд╕рдм рд╕рд╛рдорд╛рди рд╕реЗрдЯ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдЕрдиреБрдорд╛рди рдореЗрдВ рдЖрдВрдХрдбрд╝рд╛ рдорд╣рддреНрд╡рдкреВрд░реНрдг рдерд╛ред рд╣рд╛рд▓рд╛рдБрдХрд┐ рд╡рд╣ рд╣рдордореЗрдВ рдмрд╣реБрдд рджрд┐рд▓рдЪрд╕реНрдкреА рдирд╣реАрдВ рд░рдЦрддреА рдереАред
- рд╡реЗ рдЕрдиреБрдорд╛рди рдореЗрдВ рдЙрдкрдХрд░рдгреЛрдВ рдХреЛ рдЬреБрджрд╛ рдХрд░рдирд╛ рд╢реБрд░реВ рдХрд░ рджрд┐рдпрд╛ рдФрд░ рдпрд╣ рдкрддрд╛ рдЪрд▓рд╛ рдХрд┐ рдХреБрдЫ рдкрд░рд┐рд╡рд░реНрддрд┐рдд рдирд╣реАрдВ рд╣реЛ рд░рд╣рд╛ рдерд╛ред рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, CP-7925G рдлреЛрди 2 рд╣реЛрдирд╛ рдЪрд╛рд╣рд┐рдП, рдФрд░ рдЙрдирдХреЗ рд▓рд┐рдП 2 рдмреИрдЯрд░реА рдкреНрд░рд╛рдкреНрдд рдХрд░рдирд╛ рддрд░реНрдХрд╕рдВрдЧрдд рд╣реЛрдЧрд╛, рд▓реЗрдХрд┐рди рдЙрдирдореЗрдВ рд╕реЗ рддреАрди, рдЕрдЪреНрдЫреА рддрд░рд╣ рд╕реЗ, рдЙрд╕ рднрд╛рд╡рдирд╛ рдореЗрдВ рдереЗред рдХрдИ рдХреЙрд▓ рдХреЗ рдмрд╛рдж, рдпрд╣ рдкрддрд╛ рдЪрд▓рд╛ рдХрд┐ рд╡реЗ рдЦреБрдж рдирд╣реАрдВ рд╕рдордЭрддреЗ рд╣реИрдВ рдХрд┐ рдЙрдкрдХрд░рдгреЛрдВ рд╕реЗ рдХреНрдпрд╛ рдЬреБрдбрд╝рд╛ рд╣реИ рдФрд░ рдХреНрдпрд╛ рдЕрдиреБрдХреНрд░рдорд┐рдд рд╣реИред
рдмреАрдпрд░ рдХреА рдмреЛрддрд▓ рдХреЗ рд▓рд┐рдП, рдПрдХ рдЕрдиреБрдорд╛рди рдлрд┐рд░ рднреА рддреИрдпрд╛рд░ рдХрд┐рдпрд╛ рдЧрдпрд╛ рдерд╛ рдФрд░ рд╡реНрдпрд╡рд╕реНрдерд┐рдд рдХрд┐рдпрд╛ рдЧрдпрд╛ рдерд╛ред рдореИрдВ рдкреНрд░рддреНрдпреЗрдХ рдЙрдкрдХрд░рдг рдХреЗ рд▓рд┐рдП рдЖрд╡рд╢реНрдпрдХ рдШрдЯрдХ рджреВрдВрдЧрд╛ рдЬреЛ рд╣рдордиреЗ рдЦрд░реАрджрд╛ рдерд╛ред

CP-7925G

рд╕рд┐рд╕реНрдХреЛ IP рдлреЛрди CP-7925G рдлреЛрди рд╣реА + CP BATT - 7925 EXT рдмреИрдЯрд░реА + рд╕рд┐рд╕реНрдХреЛ 7925G рдкрд╛рд╡рд░ рд╕рдкреНрд▓рд╛рдИ рдЪрд╛рд░реНрдЬрд░ред рд╕рд╛рдзрд╛рд░рдг рдорд┐рдиреА рдпреВрдПрд╕рдмреА рдПрдбрд╛рдкреНрдЯрд░ рдирд┐рдХрд▓рд╛ ред (рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ, рдПрдХ рдбреЙрдХрд┐рдВрдЧ рд╕реНрдЯреЗрд╢рди рд╣реЛрдирд╛ рдЪрд╛рд╣рд┐рдП рдерд╛, рд▓реЗрдХрд┐рди рдпрд╛ рддреЛ рд╣рдордиреЗ рдХреБрдЫ рдЧрд┐рдирд╛ рдирд╣реАрдВ рдерд╛, рдпрд╛ рд╡реЗ рдкрд╣реБрдВрдЪреЗ, рдбреЙрдХрд┐рдВрдЧ рд╕реНрдЯреЗрд╢рди рдХреЗ рд▓рд┐рдП рдПрдбрд╛рдкреНрдЯрд░ рдЖрдпрд╛ рдерд╛, рд▓реЗрдХрд┐рди рд╕реНрдЯреЗрд╢рди рдиреЗ рдЦреБрдж рдХреЛ рдареАрдХ рдирд╣реАрдВ рдХрд┐рдпрд╛ред рдареАрдХ рд╣реИ, рдареАрдХ рд╣реИ)

CP-7937G

рд╕рд┐рд╕реНрдХреЛ рдПрдХреАрдХреГрдд рдЖрдИрдкреА рд╕рдореНрдореЗрд▓рди рд╕реНрдЯреЗрд╢рди 7937G рд╕рдореНрдореЗрд▓рди рд╕реНрдЯреЗрд╢рди рд╣реА + CP-7937-PWR-SPL рд╕рд┐рд╕реНрдХреЛ рдкрд╛рд╡рд░ рдЕрд▓рдЧрд╛рдиреЗрд╡рд╛рд▓рд╛ POE + рд╕реЗрдкрд░реЗрдЯрд░ рд╕рд┐рд╕реНрдХреЛ 7900 рд╢реНрд░реГрдВрдЦрд▓рд╛ рдЯреНрд░рд╛рдВрд╕рдлрд╛рд░реНрдорд░ рдкрд╛рд╡рд░ рдХреЙрд░реНрдб рдкрд╛рд╡рд░ рдХреЙрд░реНрдб рдкрд╛рд╡рд░ рдЖрдЙрдЯрд▓реЗрдЯ рдХреЗ рд▓рд┐рдПред рд╕рд╛рдзрд╛рд░рдгред рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ, рдЖрдк рдХрдВрдкреНрдпреВрдЯрд░ рд╕реЗ рдкрд╛рд╡рд░ рдХреЙрд░реНрдб рд▓реЗ рд╕рдХрддреЗ рд╣реИрдВ, рд▓реЗрдХрд┐рди рдХреМрди рдЬрд╛рдирддрд╛ рдерд╛? 7900 рдлреЛрди рд╢реНрд░реГрдВрдЦрд▓рд╛ рдХреЗ рд▓рд┐рдП + рд╕рд┐рд╕реНрдХреЛ рдЖрдИрдкреА рдлреЛрди рдмрд┐рдЬрд▓реА рдЯреНрд░рд╛рдВрд╕рдлрд╛рд░реНрдорд░ред рдмрд┐рдЬрд▓реА рдХреА рдЖрдкреВрд░реНрддрд┐

CP-3905G

рд╕рд┐рд╕реНрдХреЛ рдЖрдИрдкреА рдлреЛрди CP-3905G рдлреЛрди рд╣реА ред рдлреЛрди 3905G рдХреЗ рд▓рд┐рдП + CP3905 -PWR-CE рд╕рд┐рд╕реНрдХреЛ рдкрд╛рд╡рд░ рдПрдбрд╛рдкреНрдЯрд░ред рдкрд╛рд╡рд░ рдПрдбрд╛рдкреНрдЯрд░

CP-7965

рдПрдХреАрдХреГрдд рдЖрдИрдкреА рдлреЛрди рд╕реАрдкреА -7965 рдлреЛрди рд╣реА ред + рд╕рд┐рд╕реНрдХреЛ 7900 рд╢реНрд░реГрдВрдЦрд▓рд╛ рдЯреНрд░рд╛рдВрд╕рдлрд╛рд░реНрдорд░ рдкрд╛рд╡рд░ рдХреЙрд░реНрдб рдкрд╛рд╡рд░ рдХреЙрд░реНрдб рдкрд╛рд╡рд░ рдЖрдЙрдЯрд▓реЗрдЯ рдХреЗ рд▓рд┐рдП рдмрд┐рдЬрд▓реА рдХреА рдЖрдкреВрд░реНрддрд┐ рд╕реЗред рд╕рд╛рдзрд╛рд░рдгред 7900 рдлреЛрди рд╢реНрд░реГрдВрдЦрд▓рд╛ рдХреЗ рд▓рд┐рдП + рд╕рд┐рд╕реНрдХреЛ рдЖрдИрдкреА рдлреЛрди рдмрд┐рдЬрд▓реА рдЯреНрд░рд╛рдВрд╕рдлрд╛рд░реНрдорд░ред рдмрд┐рдЬрд▓реА рдХреА рдЖрдкреВрд░реНрддрд┐

рдЪрд░рдг 2


рдЦреИрд░, рдЖрдЦрд┐рд░рдХрд╛рд░! рд╣рдо рдЙрдкрдХрд░рдг рд▓рд╛рдП, рдЫреЛрдЯреЗ, рдмрдбрд╝реЗ рд╕рднреА рдкреНрд░рдХрд╛рд░ рдХреЗ рдмрдХреНрд╕реЗред рдпрд╣рд╛рдВ рдЗрд╕реЗ рдлреЛрдЯреЛ рдЦрд┐рдВрдЪрд╛рдиреЗ рдХреЗ рд▓рд┐рдП рдиреАрдЪреЗ рдЖрдирд╛ рдЪрд╛рд╣рд┐рдП рдерд╛, рд▓реЗрдХрд┐рди рд╕рдордп рдирд╣реАрдВ рдерд╛, рд╣рд╛рде рдореЗрдВ рдХреЛрдИ рдЙрдкрдХрд░рдг рдирд╣реАрдВ рдерд╛, рдлреЛрди рдкрд░ рдХреБрдЫ рддрд╕реНрд╡реАрд░реЗрдВ рд▓реАрдВ, рдФрд░ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░реЗрд╢рди рдХреЗ рдмрд╛рд░реЗ рдореЗрдВ рд╕реЗрдЯ рдХрд┐рдпрд╛, рд╕рдордп рд╕реАрдорд╛рдПрдВ рддрдВрдЧ рдереАрдВред рдЪрд┐рддреНрд░реЛрдВ рдХреА рдЧреБрдгрд╡рддреНрддрд╛ рдФрд░ рдорд╛рддреНрд░рд╛ рдХреЗ рд▓рд┐рдП рдХрд┐рдХ рди рдХрд░реЗрдВред






рдФрд░, рд╣рд╛рдВ, рд╡реЗ рдЗрд╕ рддрдереНрдп рд╕реЗ рднреА рд╣рдВрд╕реЗ рдХрд┐ 7925 рдПрдХ рдмреЙрдХреНрд╕ рдореЗрдВ рдЖрдпрд╛ рдерд╛, рдЬрд┐рддрдиреА рдЫреЛрдЯреА рдмреИрдЯрд░реА рдЖрдИ рдереАред

рдЪрд▓реЛ рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рдЕрдиреБрдХреВрд▓рд┐рдд!

рдореИрдВ рддрд╛рд░рд╛рдВрдХрди рдХреЗ рд▓рд┐рдП рд▓реЛрд╣реЗ рдХреЗ рдмрд╛рд░реЗ рдореЗрдВ рдбреЗрдореЛрдЧреЛрдЧреЗрд░реА рд╢реБрд░реВ рдирд╣реАрдВ рдХрд░рдирд╛ рдЪрд╛рд╣рддрд╛, рдЗрд╕рд▓рд┐рдП рдореИрдВрдиреЗ рд╣рд╛рде рдореЗрдВ рдЬреЛ рд▓рд┐рдпрд╛ рдерд╛ред рдореИрдВрдиреЗ FreePBX Distro рдХреЛ рдЪреБрдирд╛ рдХреНрдпреЛрдВрдХрд┐ рдореБрдЭреЗ рдЗрд╕реЗ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рдХрд╛ рдЕрдиреБрднрд╡ рд╣реИ рдФрд░ рдпрд╣ рддреБрд░рдВрдд рдХрд╛рдо рдХрд░рддрд╛ рд╣реИред рдореИрдВрдиреЗ рдЗрд╕реЗ рдпреВрдПрд╕рдмреА рдкрд░ рд░рд┐рдХреЙрд░реНрдб рдХрд┐рдпрд╛, рдЗрд╕реЗ рдЪрд┐рдкрдХрд╛ рджрд┐рдпрд╛, рдЗрд╕реЗ рд╕реНрдерд╛рдкрд┐рдд рдХрд┐рдпрд╛ред рдЗрд╕ рдЪрд░рдг рдореЗрдВ рдХреЛрдИ рд╕рдорд╕реНрдпрд╛ рдирд╣реАрдВ рд╣реЛрдиреА рдЪрд╛рд╣рд┐рдПред рдХреЗрд╡рд▓ рдПрдХ рдЪреАрдЬ рдЬреЛ рдореИрдВ рдкрд╣рд▓реЗ рд╕реЗ рдХрд╣реВрдВрдЧрд╛ рдХрд┐ рд╡реНрдпрд░реНрде рдореЗрдВ рдореИрдВрдиреЗ рдбрд┐рд╕реНрдЯреНрд░реЛ рдХреЛ рдЪреБрдирд╛ рд╣реИ, рдЕрдЧрд░ рдореИрдВ рдЗрд╕реЗ рдлрд┐рд░ рд╕реЗ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░рддрд╛ рд╣реВрдВ, рддреЛ рдЕрдЧрд▓реА рдмрд╛рд░ рдореИрдВ рд╢реБрджреНрдз рд╕реЗрдВрдЯреЛ рдХрд╛ рдЪрдпрди рдХрд░реВрдВрдЧрд╛ред рдПрдХрдорд╛рддреНрд░ рдЕрдВрддрд░ рдпрд╣ рд╣реЛрдЧрд╛ рдХрд┐ рдореБрдЭреЗ рдпрдХреАрди рдирд╣реАрдВ рд╣реИ рдХрд┐ ntp рд╕рд░реНрд╡рд░ рдФрд░ tftp рд╕рд░реНрд╡рд░ рд╢реБрд░реВ рдореЗрдВ CentOS рдкрд░ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд┐рдП рдЧрдП рд╣реИрдВред рдпрджрд┐ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдирд╣реАрдВ рд╣реИ - рдорджрдж рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП Googleред

рд╕реНрдерд╛рдкрдирд╛ рдХреЗ рдмрд╛рдж, рд╕рд┐рд╕реНрдЯрдо рдСрдкрд░реЗрд╢рди рдХреЗ рд▓рд┐рдП рдкреВрд░реА рддрд░рд╣ рд╕реЗ рддреИрдпрд╛рд░ рд╣реИ, рд▓реЗрдХрд┐рди рдпрд╣рд╛рдВ рдПрдХ рдмрдбрд╝рд╛ "рдмрдЯ" рд╣реИред рдЪреВрдВрдХрд┐ рдореИрдВрдиреЗ рдкрд╣рд▓реЗ рдПрд╕реНрдЯрд░рд┐рд╕реНрдХ рдФрд░ рдПрд╕рд╕реАрдкреАрд╕реА рдХреЗ рд╕рд╛рде рдХрд╛рдо рдирд╣реАрдВ рдХрд┐рдпрд╛ рдерд╛ (рдФрд░ рдпрд╣рд╛рдВ рдкреНрд░рд╕реНрддреБрдд рд▓рдЧрднрдЧ рд╕рднреА рдлреЛрди рдПрд╕рд╕реАрдкреАрд╕реА рдкрд░ рдХрд╛рдо рдХрд░рддреЗ рд╣реИрдВ), рдореБрдЭреЗ рдореИрдиреБрдЕрд▓ рдкрдврд╝рдирд╛ рдерд╛ред рдЙрдирд╕реЗ рдпрд╣ рд╕реНрдкрд╖реНрдЯ рд╣реЛ рдЧрдпрд╛ рдХрд┐ рдПрд╕реНрдЯреЗрд░рд┐рд╕ рдореЗрдВ SCCP рдкреНрд░реЛрдЯреЛрдХреЙрд▓ рдХреЛ chan_skinny.so рдореЙрдбреНрдпреВрд▓ рдХреЗ рд░реВрдк рдореЗрдВ рдкреНрд░рд╕реНрддреБрдд рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╣реИ, рд▓реЗрдХрд┐рди рдЗрди рдлреЛрди рдХреЗ рд╕рд╛рде рдЗрд╕рдХреЗ рдХрд╛рд░реНрдп рдХреА рдЬрд╛рдирдХрд╛рд░реА рдкрд░реНрдпрд╛рдкреНрдд рдирд╣реАрдВ рд╣реИ, рдФрд░ рд╡реЗ рдЕрдХреНрд╕рд░ chan-sccp.so рдХреЛ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдХрд╣рддреЗ рд╣реИрдВ, рд╣рд╛рд▓рд╛рдВрдХрд┐ рдкреНрд░рд╢реНрди "рдХреНрдпреЛрдВ?" рдХреЗ рд▓рд┐рдП рдПрдХ рд╕реНрдкрд╖реНрдЯ рд╡реНрдпрд╛рдЦреНрдпрд╛ рд╣реИред рдХрднреА рдирд╣реАрдВ рдорд┐рд▓рд╛ рдерд╛ред рдореИрдВрдиреЗ рд╕реВрдЯ рдХрд╛ рдкрд╛рд▓рди рдХрд░рдиреЗ рдХрд╛ рдлреИрд╕рд▓рд╛ рдХрд┐рдпрд╛ рддрд╛рдХрд┐ рд╕рдордп рдмрд░реНрдмрд╛рдж рди рд╣реЛред

Chan_sccp рд╣реА рд░рд┐рдкреЙрдЬрд┐рдЯрд░реА рдореЗрдВ рдирд╣реАрдВ рдкрд╛рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ, рдпрд╣ рд╕реНрд░реЛрдд рд╕реЗ рд╕реНрдерд╛рдкрд┐рдд рдХрд┐рдпрд╛ рдЬрд╛рдирд╛ рдЪрд╛рд╣рд┐рдПред рдХреБрдЫ рднреА рдЬрдЯрд┐рд▓ рдирд╣реАрдВ рд╣реИ, рдпрд╣рд╛рдБ рд╕реЗ рдбрд╛рдЙрдирд▓реЛрдб рдХрд░реЗрдВ:
# wget downloads.sourceforge.net/project/chan-sccp-b/V4/Chan_SCCP-4.1.0_RC1.tar.gz
рдирд┐рдХрд╛рд▓реЗрдВ:
# tar xvfz Chan_SCCP-4.1.0_RC1.tar.gz
рдФрд░ рдлрд┐рд░ рдЖрдкрдХреЛ рдЗрдВрд╕реНрдЯреЙрд▓ рдХрд░рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИ, рд▓реЗрдХрд┐рди рдЖрдЧреЗ рджреЗрдЦрддреЗ рд╣реБрдП, рдореИрдВ рдХрд╣рддрд╛ рд╣реВрдВ рдХрд┐ рдбрд┐рд╕реНрдЯреНрд░реЛ рдкрд░ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдирд╛ рд╕рдВрднрд╡ рдирд╣реАрдВ рд╣реИ, рдХреНрдпреЛрдВрдХрд┐ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░рддреЗ рд╕рдордп рдпрд╣ рдХрд╣рддрд╛ рд╣реИ рдХрд┐ рддрд╛рд░рд╛рдВрдХрди рд╕реНрдерд╛рдкрд┐рдд рдирд╣реАрдВ рд╣реИред рдпрд╣реА рд╣реИ, рд╕рд┐рд╕реНрдЯрдо рдореЗрдВ asterisk11-core-x64 рд╕реНрдерд╛рдкрд┐рдд рд╣реИред рдХреНрдпрд╛ рдХрд░реЗрдВ? рд╕рдм рдХреБрдЫ рд╕рд░рд▓ рд╣реЛ рдЧрдпрд╛:
рд╣рдо рдЖрд░рдкреАрдПрдо рдХреЗ рдЖрдзрд╛рд░ рдореЗрдВ рдЬрд╛рддреЗ рд╣реИрдВ рдФрд░ рд╡рд╛рдВрдЫрд┐рдд рдУрдПрд╕ рдХреЗ рд▓рд┐рдП рд╣рдореЗрдВ рдЖрд╡рд╢реНрдпрдХ рдкреИрдХреЗрдЬ рдбрд╛рдЙрдирд▓реЛрдб рдХрд░рддреЗ рд╣реИрдВред рдореЗрд░реЗ рдкрд╛рд╕ CentOS6 рд╣реИред
рддрд╛рд░рд╛рдВрдХрди рдЪрд┐рд╣реНрди- devel -> рддрд╛рд░рд╛рдВрдХрди рдЪрд┐рд╣реНрди- 11.3.0-1.1.x86_64.rpm
рддрд╛рд░рд╛рдВрдХрди рдЪрд┐рд╣реНрди- mysql -> рддрд╛рд░рд╛рдВрдХрди рдЪрд┐рд╣реНрди- mysql-11.3.0-1.1.x86_64.rpm (рдХрд╛рдо рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП CDR рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛)
рддрд╛рд░рд╛рдВрдХрди рдЪрд┐рд╣реНрди -> рддрд╛рд░рд╛рдВрдХрди рдЪрд┐рд╣реНрди -11.3.0-1.1.x86_64.rpm (рдЙрдиреНрдирдд рдЦреЛрдЬ рдкрд░ рдЬрд╛рдПрдВ рдФрд░ рд╡рд╛рдВрдЫрд┐рдд рдУрдПрд╕ рдкрд░ рдПрдХ рдкрдВрдЬрд╛ рдбрд╛рд▓реЗрдВред рд▓рдВрдмреЗ рд╕рдордп рддрдХ рджреВрд╕рд░реЗ рддрд░реАрдХреЗ рд╕реЗ рджреЗрдЦреЗрдВред)


рдЕрдЧрд▓рд╛, рдЖрдкрдХреЛ рд╕рд┐рд╕реНрдЯрдо рд╕реЗ рддрд╛рд░рд╛рдВрдХрди рдЪрд┐рд╣реНрди рдХреЛ рдХрд╛рдЯрдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИред
# yum erase asterisk*
рдФрд░ рдбрд╛рдЙрдирд▓реЛрдб рдХрд┐рдП рдЧрдП рдЖрд░рдПрдордкреА рдХреЛ рдЗрдВрд╕реНрдЯреЙрд▓ рдХрд░реЗрдВ
# yum install asterisk-devel-11.3.0-1.1.x86_64.rpm
# yum install asterisk-mysql-11.3.0-1.1.x86_64.rpm
# yum install asterisk-11.3.0-1.1.x86_64.rpm

рдЕрдзрд┐рднрд╛рд░ amportal
# /usr/bin/amportal restart

рдФрд░ рдЖрдк SCCP рдПрдХрддреНрд░ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВ
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !

# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !

# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
 # cd Chan_SCCP-4.1.0_RC1 
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
 # cd Chan_SCCP-4.1.0_RC1 
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
 # cd Chan_SCCP-4.1.0_RC1 
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
 # cd Chan_SCCP-4.1.0_RC1 
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
 # cd Chan_SCCP-4.1.0_RC1 
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !

# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !

# cd Chan_SCCP-4.1.0_RC1
# yum install make

# ./configure
# make
# make install

, modules.conf
# nano /etc/asterisk/modules.conf

Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so


Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices

. . )

, SCCP , .

3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages

! tftp DHCP. 1-2 , , "Network". **#* .

DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";

* - - .

, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .

.

, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>

*

- PBX Extension c .

Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :

;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17

hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111

:

;=========================================================================================

[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0

[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>

# nano /etc/asterisk/sccp.conf

[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0

[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off

"imageversion = apps37sccp.1-4-4-0"

Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).

- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .

8(5)SIP

SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>

Extension. NAT.

XMLDefault.cnf.xml
. :

<loadInformation436 model=тАЭCisco 7965тА│>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!тАФ . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!тАФ Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!тАФ --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>

* . . .

, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .

, 3 , , - . !

Source: https://habr.com/ru/post/In182798/


All Articles