QSIG tunneling configuration example
Network requirements
As shown in Figure 25, connect Router A and Router B each to a PBX through QSIG signaling. The SIP protocol runs between Router A and Router B.
The requirements are as follows:
When a call is placed from 010-1001 to 0755-2001, the ingress gateway Router A encapsulates the received QSIG signaling messages into SIP messages, and sends the SIP messages to the egress gateway Router B over the SIP network. This extracts the QSIG signaling messages from the SIP messages and sends them to the receiving end at the ISDN side.
Figure 25: Network diagram
Configuration procedure
Configure Router A:
# Configure IP address 1.1.1.1/24 for interface Ethernet 2/1.
<RouterA> system-view [RouterA] interface ethernet 2/1 [RouterA-Ethernet2/1] ip address 1.1.1.1 255.255.255.0 [RouterA-Ethernet2/1] quit
# Create an ISDN PRI group on interface E1 1/1.
[RouterA] system-view [RouterA] controller e1 1/1 [RouterA-E1 1/1] pri-set [RouterA-E1 1/1] quit
# Set the ISDN protocol type and protocol mode for the ISDN interface serial 1/1:15.
[RouterA] interface serial 1/1:15 [RouterA-Serial1/1:15] isdn protocol-type qsig [RouterA-Serial1/1:15] quit
# Create a POTS voice entity for the ISDN PRI interface.
[RouterA] voice-setup [RouterA-voice] dial-program [RouterA-voice-dial] entity 1001 pots
# Configure a target match-template pointing to telephone number 010-1001 for the POTS voice entity.
[RouterA-voice-dial-entity1001] match-template 0101001
# Associate the POTS voice entity with subscriber line 1/1:15.
[RouterA-voice-dial-entity1001] line 1/1:15 [RouterA-voice-dial-entity1001] send-number all [RouterA-voice-dial-entity1001] quit [RouterA-voice-dial] quit [RouterA-voice] quit
# Enable the QSIG tunneling function on the subscriber line associated with the POTS voice entity.
[RouterA] subscriber-line 1/1:15 [RouterA-subscriber-line1/1:15] qsig-tunnel enable [RouterA-subscriber-line1/1:15] quit
# Create a VoIP voice entity.
[RouterA-voice] dial-program [RouterA-voice-dial] entity 0755 voip
# Configure a target match-template for the VoIP voice entity.
[RouterA-voice-dial-entity755] match-template 0755....
# Configure the target address of the VoIP voice entity.
[RouterA-voice-dial-entity755] address sip ip 2.2.2.2
Configure Router B:
# Configure the IP address 2.2.2.2/24 for the interface Ethernet 2/1.
<RouterB> system-view [RouterB] interface ethernet 2/1 [RouterB-Ethernet2/1] ip address 2.2.2.2 255.255.255.0 [RouterB-Ethernet2/1] quit
# Create an ISDN PRI group on interface E1 1/1.
[RouterB] controller e1 1/1 [RouterB-E1 1/1] pri-set [RouterB-E1 1/1] quit
# Set the ISDN protocol type and protocol mode for the ISDN interface serial 1/1:15.
[RouterB] interface serial 1/1:15 [RouterB-Serial1/1:15] isdn protocol-type qsig [RouterB-Serial1/1:15] quit
# Create a POTS voice entity for the ISDN PRI interface.
[RouterB] voice-setup [RouterB-voice] dial-program [RouterB-voice-dial] entity 2001 pots
# Configure a target match-template pointing to telephone number 0755-2001 for the POTS voice entity.
[RouterB-voice-dial-entity2001] match-template 07552001
# Associate the POTS voice entity with subscriber line 1/1:15.
[RouterB-voice-dial-entity2001] line 1/1:15 [RouterB-voice-dial-entity2001] send-number all [RouterB-voice-dial-entity2001] quit [RouterB-voice-dial] quit
# Enable the QSIG tunneling function on the subscriber line associated with the POTS voice entity.
[RouterB] subscriber-line 1/1:15 [RouterB-subscriber-line1/1:15] qsig-tunnel enable [RouterB-subscriber-line1/1:15] quit
# Create a VoIP voice entity.
[RouterB-voice] dial-program [RouterB-voice-dial] entity 010 voip
# Configure a target match-template for the VoIP voice entity.
[RouterB-voice-dial-entity10] match-template 010....
# Configure the target address of the VoIP voice entity.
[RouterB-voice-dial-entity10] address sip ip 1.1.1.1