Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

SIP profile configuration algorithm

Step

Description

Command

Keys

1

Configure SIP profile.

esr(config)# sip profile <NUM>

<NUM> – SIP profile number, set in the form of a digit from 1 to 5.

2

Configure primary SIP proxy server and registration server.

esr(config-sip-profile)# proxy primary


3

Configure SIP proxy server.

esr(config-voip-sip-proxy)# ip address proxy-server <IP>

<IP> – proxy server IP address

4

Configure a SIP proxy server port.

esr(config-voip-sip-proxy)# ip port proxy-server <PORT>

<PORT> – number of proxy server UDP port, takes values of [1..65535]. If standard 5060 port is used, there is no need to specify it.

5

Configure a registration server address.

esr(config-voip-sip-proxy)# ip address registration-server <IP>

<IP> – registration server IP address.

6

Configure a registration server port.

esr(config-voip-sip-proxy)# ip portregistration-server <PORT>

<PORT> – number of registration server UDP port, takes values of [1..65535].

If standard 5060 port is used, there is no need to specify it.

7

Enable registration.

esr(config-voip-sip-proxy)# registration


8

Enable proxy server and registration server.

esr(config-voip-sip-proxy)# enable


9

Configure a registration server address.

esr(config-voip-sip-proxy)# ip address registration-server <IP>

<IP> – registration server IP address.

10

Configure a registration server port.

esr(config-voip-sip-proxy)# ip portregistration-server <PORT>

<PORT> – number of registration server UDP port, takes values of [1..65535]. If standard 5060 port is used, there is no need to specify it.

11

Specify SIP domain in which the device is located.

esr(config-sip-profile)# sip-domain address <ADDRESS>

<ADDRESS> – SIP domain in which the device is located, set by ipv4 address or domain name.

12

Enable the use of SIP domain when registering.

esr(config-sip-profile)# sip-domain registration enable


13

Configure a SIP profile.

esr(config)# sip profile <NUM>

<NUM> – SIP profile number, set in the form of a digit from 1 to 5.

14

Assign a dial plan to the current SIP profile.

esr(config-sip-profile)# dialplan pattern <DNAME>

<DNAME> – name of the dial plan, set by the string of up to 31 characters.

15

Enable SIP profile.

esr(config-sip-profile)# enable


FXS/FXO ports configuration algorithm

Step

Description

Command

Keys

1

Switch to the FXO/FXS ports configuration mode.

esr(config)# interface voice-port <NUM>

<NUM> – port number, takes values of [1..4].

2

Assign a subscriber number reserved for a telephone port.

esr(config-voice-port-fxs)# sip user phone <PHONE>

<PHONE> – subscriber number reserved for a telephone port, set by the string of up to 50 characters.

3

Assign the user name matched with the port.

esr-12v(config-voice-port-fxs)# sip user display-name <LOGIN>

<LOGIN> – user name displayed in the Display-Name field, set by the string of up to 31 characters.

4

Select SIP profile for a certain port.

esr(config-voice-port-fxs)# profile sip <PROFILE>

<PROFILE> – SIP profile number, set in the form of a digit from 1 to 5.

5

Configure a login for authentication.

esr(config-voice-port-fxs)# authentication name <LOGIN>

<LOGIN> – login for authentication, set by the string of up to 31 characters

6

Configure a password for authentication.

esr(config-voice-port-fxs)# authentication password <PASS>

<PASS> – authentication password, set by the string of up to 16 characters.

7

Enable FXO port.

esr(config)# interface voice-port <NUM>

<NUM> – FXO port number, takes values of [1..4].

8

Assign a subscriber number reserved for a telephone port.

esr(config-voice-port-fxo)# sip user phone <PHONE>

<PHONE> – subscriber number reserved for a telephone port.

9

Specify UDP port from which and to which the FXO set will send and receive SIP messages.

esr(config-voice-port-fxo)# sip port <PORT>

<PORT> – UDP port number.

10

Assign the user name matched with the port.

esr(config-voice-port-fxo)# sip user display-name <LOGIN>

<LOGIN> – user name displayed in the Display-Name field, set by the string of up to 31 characters.

11

Configure a login for authentication.

esr(config-voice-port-fxo)# authentication name <LOGIN>

<LOGIN> – login for authentication, set by the string of up to 31 characters.

12

Configure a password for authentication.

esr(config-voice-port-fxo)# authentication password <PASS>

<PASS> – authentication password, set by the string of up to 16 characters.

13

Enable the number transmission to PSTN.

esr(config-voice-port-fxo)# pstn transmit-number


14

Disable prefix transmission.

esr(config-voice-port-fxo)# no pstn transmit-prefix


15

Enable the 'Hostline PSTN to IP' service.

esr(config-voice-port-fxo)# hotline ipt


16

Number of the subscriber that will receive calls from PSTN.

esr(config-voice-port-fxo)# hotline number ipt <PHONE>

<PHONE> – phone number that calls are made to when using the service, takes the value from 1 to 50.

'Hot/Warm line' in the direction from analogue telephone line to VoIP.

Dial plan configuration algorithm

Step

Description

Command

Keys

1

Create a dial plan.

esr(config)# dialplan pattern <DNAME>

<DNAME> – name of the dial plan, set by the string of up to 31 characters.

2

Add dial rules.

esr(config-dial-ruleset)# pattern <REGEXP>

<REGEXP> - regular expression specifying the dial plan. Set by the string of up to 1024 characters. The rules for creating regular expressions are described in section Dial plan configuration example.

3

Enable the dial plan.

esr(config-dial-ruleset)# enable


PBX server configuration algorithm

Step

Description

Command

Keys

1

PBX server configuration.

esr(config)# pbx


2

Enable PBX server.

esr(config-pbx)# enable


3

Create a routing plan.

esr(config-pbx)# ruleset <rule_name>

<rule_name> – name of the routing plan, set by the string of up to 31 characters.

4

Create a routing rule.

esr(config-pbx-ruleset)# rule <rule_index>

<rule_index> – number of the rule in the routing plan, takes values from 1 to 1000.

5

Create a pattern in a routing rule.

esr(config-pbx-rule)# pattern <REGEXP>

<REGEXP> – regular expression specifying the routing rule. Set by the string of up to 256 characters. The rules for creating regular expressions are described in section Dial plan configuration example.

6

Apply a routing rule.

esr(config-pbx-rule)# enable


7

Create a SIP profile on a PBX Server.

esr(config-pbx)# profile <PROFILE>

<PROFILE> – name of the SIP profile, that used by PBX server, set by the string of 31 character.

8

Select a codec supported by a SIP profile.

esr(config-pbx-profile)# codec allow { G711A(alaw) |
G711U(ulaw) | G722 | G726 }


9

Select SIP profile type.

esr(config-pbx-profile)# client { peer | user | friend }

  • peer – incoming and outgoing calls are allowed without authorization.
  • user – only incoming calls are allowed.
  • friend – combines peer and user profile types.

10

Choose a NAT interaction policy (optional).

esr(config-pbx-profile)# nat { comedia | force-port | both }

  • comedia – send media stream to PBX port, regardless of SDP instructions.
  • force-port – use rport even if it is not present.
  • both – combines comedia and force-port.

11

Select a SIP profile routing plan.

esr(config-pbx-profile)# ruleset <NAME>

<NAME> – name of the routing plan, set by the string of up to 31 characters.

12

Create a subscriber.

esr(config-pbx)# user <user>

<user> – phone number or username, set by the string of up to 31 characters.

13

Create a password for the subscriber (optional).

esr(config-pbx-user)# password <password>

<password> – password that will be used by the user for authentication, set by the string of up to 16 characters.

14

Use of SIP profile for the subscriber.

esr(config-pbx-user)# profile <SIPPROFILE>

<SIPPROFILE> – SIP profile used for this subscriber, set by the string of up to 31 characters.

Registration trunk creation algorithm

Step

Description

Command

Keys

1

Configure PBX server.

esr(config)# pbx


2

Create trunk.

esr(config-pbx)# register-server <name>

<name> – trunk name, set by the string of up to 31 characters.

3

Configure registration server address.

esr(config-pbx-reg-server)# ip address <IP>

<IP> – address of the server on which registration proceeds, takes values of an IP address or can be specified by the string of up to 31 characters.

4

Configure registration server port.

esr(config-pbx-reg-server)# ip port <PORT>

<PORT> – number of registration server UDP port, takes values of [1..65535]. If standard 5060 port is used, you do not need to specify it.

5

Specify the authentication name.

esr(config-pbx-reg-server)# username <user>

<user> – username for this trunk on the upstream domain, set by the string of up to 31 characters.

6

Specify the authentication password.

esr(config-pbx-reg-server)# authentication password <password>

<user> – password for this trunk on the upstream domain, set by the string of up to 16 characters.

7

Use of SIP profile for the trunk.

esr(config-pbx-reg-server)# profile <PROFILE>

<PROFILE> – name of the SIP profile, that used for this trunk, set by the string of 31 character.

8

Select the transport protocol (optional).

esr(config-pbx-reg-server)# protocol {tcp | udp }

The default is udp.

9

Enable trunk.

esr(config-pbx-reg-server)# enable


VoIP configuration example

...

Блок кода
esr(config)# interface voice-port 4
esr(config-voice-port-fxo)# sip user phone 333
esr(config-voice-port-fxo)# profile pbx fxo_ports
esr(config-voice-port-fxo)# caller-id mode off
esr(config-voice-port-fxo)# hotline ipt
esr(config-voice-port-fxo)# hotline number ipt 5200
esr(config-voice-port-fxo)# exit
esr(config)# 

Scroll Pagebreak