Distributed IP-PBX

44
Distributed IP-PBX An Approach in Establishing Distributed communication using Multi Platform Voice Registers & integration of Packet & Circuit switched communication

Transcript of Distributed IP-PBX

Page 1: Distributed IP-PBX

Distributed IP-PBXAn Approach in Establishing Distributed communication using

Multi Platform Voice Registers &

integration of Packet & Circuit switched communication

Page 2: Distributed IP-PBX

AL FARUQ IBNA NAZIMLink3 Technologies Ltd.

[email protected]

Contributor AcknowledgementAhmed Sobhan – Link3 Technologies Ltd.

Adnan Howlader – Bangladesh Microtechnology Ltd.

Page 3: Distributed IP-PBX

AGENDA

• Background

• Application and Appliances

• Architecture & Benefits

• Case Study

• Key Findings

Page 4: Distributed IP-PBX

BACKGROUND

Page 5: Distributed IP-PBX

BACKGROUND : Telecommunication

• A huge mix of evolved technologies.

• Divided in circuit and packet switched network.

Visualization is from

the Opte Project of the

various routes through a

portion of the Internet.

Page 6: Distributed IP-PBX

BACKGROUND : Circuit Vs Packet switching

Page 7: Distributed IP-PBX

BACKGROUND : PABX, PSTN & IP-PBX

• PBX: Switchboard operator managed system using cord circuits.

• PABX (Private Automatic Branch Exchange): Availability of electromechanical switches gradually replaced manual switchboard –PBX.

• PSTN (Public Switched Telephone Network): Aggregates circuit-switched telephone networks that are operated by national, regional, or local telephony operators.

• IP PBX: Handles voice signals over Internet protocol, bringing benefits for computer telephony integration (CTI).

Page 8: Distributed IP-PBX

BACKGROUND: PSTN Circuits

Core network is fully digitized with two variants

• Analog (Rarely used now a days).

• ISDN (Widely used in various aspect of communication network).

Page 9: Distributed IP-PBX

BACKGROUND: ISDN (Integrated Services for Digital Network)

ISDN is a set of communication standards for simultaneous digital transmission of voice, video, data, and other network services over the traditional circuits of the public switched telephone network.

• Basic Rate Interface (BRI)

The entry level interface (BRI), a 128 kbit/s service delivered over a pair of standard telephone copper wires. The 144 kbit/s payload rate is broken down into two 64 kbit/s bearer channels ('B' channels) and one 16 kbit/s signalling channel ('D' channel or data channel).

This is sometimes referred to as 2B+D.

• Primary Rate Interface (PRI)

PRI has an E1 (2048 kbit/s) which is carried in most part of the world. An E1 is 30 'B' channels of 64 kbit/s, one 'D' channel of 64 kbit/s and a timing and alarm channel of 64 kbit/s.

In North America it is T1 (1544 kbit/s). It has 23 ‘B’ channels & 1 ‘D’ channels.

Japan uses J1 which similar to T1.

• Narrowband ISDN (N-ISDN)

N-ISDN was introduce to replace analog to digital telephone system. It used a 64 kbit/s channel. Due to longer time to process standardization and growth and demand of capacity its was turned obsolete.

• Broadband ISDN (B-ISDN)

B-ISDN is considered using a better capacity bandwidth that is more than 1.544 Mbps. It is widely provided to use ATM at subscriber ends for better capacity. We can consider STM1 to STM4 in its genre. Later on the term broadband is taken to use for larger capable network capacity use for internet interfaces.

Page 10: Distributed IP-PBX

BACKGROUND: Codecs

Codecs Payload Bitrate

G.711 64 kbit/s

G.726 16, 24 or 32 kbit/s

G.723.1 5.3 or 6.3 kbit/s

G.729 8 kbit/s

GSM 13 kbit/s

iLBC 13.3 or 15.2 kbit/s

Speex 2.15 to 22.4 kbit/s

G.711 is freely available as well gives

highest quality.

GSM is very popular due to good CPU

and bandwidth tradeoff.

iLBC & Speex is commonly used for

voice transport over internet.

Page 11: Distributed IP-PBX

BACKGROUND: Signaling Protocol

Signalling protocol is used to identify the state of connection between telephones or VOIP terminals (IP telephone or PCs or VoWLAN units).

Common protocols:

• H.323

• MGCP (Media Gateway Control Protocol)

• SCCP (Skinny Client Control Protocol)

• IAX (Inter Asterisk eXchange)

• SIP (Session Initiation Protocol)

Page 12: Distributed IP-PBX

BACKGROUND: H.323

Page 13: Distributed IP-PBX

BACKGROUND: MGCP

Page 14: Distributed IP-PBX

BACKGROUND: SCCP & IAX

SCCP

• Skinny Client Control Protocol is a Cisco proprietary network terminal control protocol.

• Lightweight protocol for session signalling with Cisco Unified Communications

Manager/CallManager.

IAX

• Inter-Asterisk eXchange is native to the Asterisk PBX and few other soft switches.

• Used for transporting VoIP telephony sessions between servers and terminal devices.

Page 15: Distributed IP-PBX

BACKGROUND: SIP (Session Initiation Protocol)

• A signalling communications protocol.

• Widely used for controlling multimedia communication sessions such as voice and video over IP.

Page 16: Distributed IP-PBX

APPLICATION & APPLIANCES

Page 17: Distributed IP-PBX

APPLICATION & APPLIANCES : Contents

Asterisk

Cisco voice enabled routers

Traditional phone sets

IP Phone

PABX stations

Page 18: Distributed IP-PBX

APPLICATION & APPLIANCES : Asterisk

• A software implementation of a telephone private branch exchange (PBX).

• Allows attached telephones to make calls to one another.

• Connects other telephone services, such as the PSTN and VoIP services through media gateway.

For features and details visit

http://www.asterisk.org/get-started/features

Page 19: Distributed IP-PBX

APPLICATION & APPLIANCES : Cisco voice enabled routers

Integrated services• Routing

• PBX

Page 20: Distributed IP-PBX

APPLICATION & APPLIANCES : Traditional phone, IP-phone & PABX station

Page 21: Distributed IP-PBX

ARCHITECTURE & BENEFITS

Page 22: Distributed IP-PBX

Considering Scenarios

• Nationwide distributed work areas.

• Implemented legacy PABX for internal communication.

• Data & Internet connectivity.

• Single box solution.

• Area with lower resources considering rural area and environment.

Page 23: Distributed IP-PBX

Common Organization Scenario

PABX NETWORK

LAN

PSTN

PABX NETWORK

PSTN

LAN

WWW

Page 24: Distributed IP-PBX

Transformation Scenario 1

PABX NETWORK

LAN

PSTN

PABX NETWORK

PSTN

LAN

WWW

Page 25: Distributed IP-PBX

Transformation Scenario 2

PABX NETWORK

LAN

PABX NETWORK

LAN

WWW

PSTN PSTN

Page 26: Distributed IP-PBX

Regional Zone 2Branch 1

Regional Zone 2Branch 2

Regional Zone 2Branch 3

Regional Zone 3Branch 1

Regional Zone 3Branch 2

Regional Zone 3Branch 3

Regional Zone 4Branch 1

Regional Zone 4Branch 2

Regional Zone 4Branch 3

Regional Zone 5Branch 1

Regional Zone 5Branch 2

Regional Zone 5Branch 3

Regional Zone 6Branch 1

Regional Zone 6Branch 2

Regional Zone 6Branch 3

Regional Zone 1Branch 1

Regional Zone 1Branch 2

Regional Zone 1Branch 3

Central Zone

Regional Zone 1

Regional Zone 6

Regional Zone 5

Regional Zone 2

Regional Zone 4

Regional Zone 3

CASE

SCENARIO:

A Nationwide

Spread

Organization

1XXX

3XXX

2XXX

40XX

41XX

42XX

43XX

50XX51XX

52XX

53XX

60XX

61XX

62XX63XX

70XX

71XX

72XX

73XX

80XX

81XX

82XX

83XX

90XX

91XX

92XX

93XX

Page 27: Distributed IP-PBX

Data Network Provider

Zone 02 Zone 01

WWW

CASE

SCENARIO:Actual

Network

Diagram

Page 28: Distributed IP-PBX

CASE

SCENARIO:Zone 1

Network

Diagram

PSTNPABX

NETWORK 1

PABX NETWORK 2

PABXTERMINAL 1

PABXTERMINAL 2

4000

4001

4401 44024201 42024301 4302

4002

FXS COFXO

4040

PABX NETWORK

FXS4500

4501

4502

FAX 4510

PABX NETWORK

FXS4400

FAX 4410

COCO

PABXTERMINAL

PABXTERMINAL

PABX NETWORK

FXS4100

CO

PABXTERMINAL

FAX 4110

4101 4102

PABX NETWORK

FXS4200

CO

PABXTERMINAL

FAX 4210

FXS4300

PABXTERMINAL

FAX 4310

CO

PABX NETWORK

Page 29: Distributed IP-PBX

CASE

SCENARIO:Zone 2

Network

Diagram

PABXPABX

DATA

PSTN

Page 30: Distributed IP-PBX

Why Such integration?

1. Using the customers existing circuit setup PABX or PSTN.

2. Using cross site communication.

3. Using packet communication for connectivity.

4. Going ahead in advanced communication technology.

5. Cost benefit while transforming technology.

Page 31: Distributed IP-PBX

CASE STUDY

Page 32: Distributed IP-PBX

CASE STUDY: A sample Lab for such scenario

20122011

2010

2110

1010

Asterisk Server

Core Switch

Core Router

Network Cloud

Zone Router

Distribution Switch

Branch Router 1

Branch Switch

Branch Router 2

Branch Switch

FXO - 029117890

FXO - 029117891

Prime Integrations:

1. Asterisk Server.

2. Cisco Routers.

3. Legacy PABX integration.

4. PSTN connectivity integration.

Page 33: Distributed IP-PBX

CASE STUDY: Asterisk Server Configuration

vi /etc/asterisk/extensions.conf

[cme-trunk]

Exten => _X.,1,Set(do_Voicemail=no)

Exten => _X.,n,NoOp(${CALLERID(num)})

Exten => _X.,n,Dial(SIP/${EXTEN})

Exten => _X.,n,NoOp(${HANGUPCAUSE} DAN ${DIALSTATUS})

Exten => _X.,n,Hangup()

;###Router01###

Exten => _20XX.,1,Set(do_Voicemail=no)

Exten => _20XX.,n,NoOp(${CALLERID(num)})

Exten => _20XX.,n,Dial(SIP/Router01/${EXTEN},,tTw)

Exten => _20XX.,n,NoOp(${HANGUPCAUSE} DAN ${DIALSTATUS})

Exten => _20XX.,n,Hangup()

;###Router02###

Exten => _21XX.,1,Set(do_Voicemail=no)

Exten => _21XX.,n,NoOp(${CALLERID(num)})

Exten => _21XX.,n,Dial(SIP/Router02/${EXTEN},,tTw)

Exten => _21XX.,n,NoOp(${HANGUPCAUSE} DAN ${DIALSTATUS})

Exten => _21XX.,n,Hangup()

vi /etc/asterisk/sip.conf

[Router01]

type=friend

host=10.11.121.2

dtmfmode=rfc2833

relaxdtmf=yes

canreinvite=no

insecure=port,invite

context=cme-trunk

quality=yes

nat=yes

Disallow=all

Allow=ulaw

Allow=alaw

[Router02]

type=friend

host=10.11.121.6

dtmfmode=rfc2833

relaxdtmf=yes

canreinvite=no

insecure=port,invite

context=cme-trunk

quality=yes

nat=yes

Disallow=all

Allow=ulaw

Allow=alaw

Context “cme-trunk”actually allows the router peer configurations at sip.conf file. As for router01 information in sip.conf it gives informations for peering router like IP, codec etc. As when the dial pattern needed the use each other simultaneously. As for router01 dial pattern you can find that it is seeking Router01 name from sip.conf

Page 34: Distributed IP-PBX

CASE STUDY: Cisco Router Configuration( Basic Configuration for voice )

voice service voip // Declaring the voice service over which mode. In our case its IP.allow-connections h323 to h323allow-connections h323 to sipallow-connections sip to h323allow-connections sip to sipsupplementary-service h450.12 advertise-only // Common Information Additional Network Feature for H.323fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw // Declaring fax protocol enabling low and high signal and giving option if fax protocol not available to go through an audio codecsip // sip configurationrel1xx disable // Reliable provisional response support disabled to stop error coderegistrar server expires max 1200 min 60 // Enabling SIP registry server and mentioning its expire time

!voice class codec 1 // declaring a codec group tagcodec preference 1 g711ulawcodec preference 2 g711alaw!voice register global // Global registry information declarationmode cme // mode defining to CME of Ciscosource-address 10.11.121.2 port 5060 // Defining a registry server IP and portmax-dn 10 // maximum dial no definingmax-pool 10 // maximum pool definingtftp-path flash: // configuration loaded from flash with tftpcreate profile sync 0004028852090405 // Creating profile for IP phones!ccm-manager application redundant port 5060 // Call manager application redundant port declaration!dspfarm profile 1 transcode universal // Digital Signal Processor (DSP) profile for codec transformation for IP to IP media gatewaydescription Transcodingcodec g711ulawcodec g711alawmaximum sessions 5associate application SCCP!sip-ua // SIP user agent informationsregistrar ipv4:10.11.121.2 expires 3600sip-server ipv4:10.11.121.2!telephony-service // CUCME configuration for routermax-ephones 10max-dn 10system message #Router01#time-zone 21max-conferences 8 gain -6transfer-system full-consult!

Page 35: Distributed IP-PBX

CASE STUDY: Cisco Router Configuration( Registering IP Phone / Pots Phone / Voice peer )

voice register dn 1 // Dial number declarationnumber 2001allow watchname 2001

!voice register pool 1 // Pool profile information for the numberid mac 0030.4F7B.E3F9number 1 dn 1dtmf-relay sip-notifyusername 2001 password 123456codec g711ulawno vad

!dial-peer voice 1 pots // POTS number declarationdestination-pattern 2002incoming called-number .%port 0/0/0

!dial-peer voice 2 voip // Peering with asterisk serverdescription Router01-Asteriskdestination-pattern 1...session protocol sipv2session target ipv4:10.11.120.100:5060dtmf-relay sip-notifycodec g711ulawno vad

!dial-peer voice 3 voip // Peering with routersdescription Router01-Router02destination-pattern 21..session protocol sipv2session target ipv4:10.11.121.6:5060dtmf-relay sip-notifycodec g711ulawno vad

Page 36: Distributed IP-PBX

CASE STUDY: Legacy PABX integration

!dial-peer voice 1 potspreference 1destination-pattern 2000incoming called-number .%port 0/0/0!dial-peer voice 2 potspreference 2destination-pattern 2000incoming called-number .%port 0/0/1!dial-peer voice 3 potspreference 3destination-pattern 2000incoming called-number .%port 0/0/2!dial-peer voice 4 potspreference 4destination-pattern 2000incoming called-number .%port 0/0/3!

Page 37: Distributed IP-PBX

CASE STUDY: PSTN Connectivity Integration( Call in/out for PSTN if considered legacy PBX)

!voice-port 0/3/1connection plar opx 2000description PSTN-FXO-Router1-PABX 029117891caller-id enable!voice-port 0/3/2connection plar opx 2000description PSTN-FXO-Router1-PABX 029117892caller-id enable!

!dial-peer voice 1 potsdescription PSTN-Outdestination-pattern 0Tdirect-inward-dialforward-digits allport 0/3/1!dial-peer voice 2 potsdescription PSTN-Outdestination-pattern 0Tdirect-inward-dialforward-digits allport 0/3/2!

An incoming call to the PSTN numbers are

forwarded to 2000

Call out numbers beginning with 0

Through PSTN ports

Page 38: Distributed IP-PBX

CASE STUDY: PSTN Connectivity Integration( Call in/out for PSTN if considered legacy PBX)

!voice-port 0/3/1connection plar opx 2000description PSTN-FXO-Router1-PABX 029117891caller-id enable!voice-port 0/3/2connection plar opx 2000description PSTN-FXO-Router1-PABX 029117892caller-id enable!

!dial-peer voice 1 potsdescription PSTN-Outdestination-pattern 0Tdirect-inward-dialforward-digits allport 0/3/1!dial-peer voice 2 potsdescription PSTN-Outdestination-pattern 0Tdirect-inward-dialforward-digits allport 0/3/2!

This will create a loop circuit for which all ports will be off-hook.

This will allow all to use outgoing through PSTN

Page 39: Distributed IP-PBX

CASE STUDY: PSTN Connectivity Integration( Call in for PSTN if considered legacy PBX)

In such case its better if we use hunt group for PABX integration

!voice hunt-group 1 sequentiallist 2097, 2098, 2099timeout 15pilot 2000!dial-peer voice 1 potsdestination-pattern 2097incoming called-number .%port 0/0/0!dial-peer voice 2 potsdestination-pattern 2098incoming called-number .%port 0/0/1!dial-peer voice 3 potsdestination-pattern 2099incoming called-number .%port 0/0/2!

15 sec delay if

not picked

15 sec delay if

not picked

2097 2098 2099

2000

Page 40: Distributed IP-PBX

CASE STUDY: PSTN Connectivity Integration( Dedicated PSTN and using it for remote router)

Call in for Router1 ( Resided in Router2)!voice-port 0/3/1connection plar opx 2010description PSTN-FXO-Router1-PABX 029117891caller-id enable!voice-port 0/3/2connection plar opx 2012description PSTN-FXO-Router1-PABX 029117892caller-id enable!

Call out for Router1 ( Resided in Router1)!voice translation-rule 1rule 1 /^0/ /A20100/!voice translation-rule 2rule 1 /^0/ /A20120/!voice translation-profile phone2010translate called 1!voice translation-profile phone2012translate called 2!voice register dn 1translation-profile incoming phone2010number 2010allow watchname 2010!

!

dial-peer voice 1 pots

translation-profile incoming phone2012

destination-pattern 2012

incoming called-number .%

port 0/0/0

!

dial-peer voice 2 voip

description PSTN-OUT-2010

destination-pattern A2010T

session protocol sipv2

session target ipv4:10.11.121.2

dtmf-relay sip-notify

codec g711ulaw

no vad

!

dial-peer voice 3 voip

description PSTN-OUT-2012

destination-pattern A2012T

session protocol sipv2

session target ipv4:10.11.121.2

dtmf-relay sip-notify

codec g711ulaw

no vad

!

Call out for Router1 ( Resided in Router2)dial-peer voice 1 potsdescription Call-Out-For-2010destination-pattern A2010Tdirect-inward-dialport 0/3/0!dial-peer voice 2 potsdescription Call-Out-For-2012destination-pattern A4202Tdirect-inward-dialport 0/3/1

Page 41: Distributed IP-PBX

CASE STUDY: PSTN Connectivity Integration( Dedicated PSTN and using it for remote router)

Call in for Router1 ( Resided in Router2)!voice-port 0/3/1connection plar opx 2010description PSTN-FXO-Router1-PABX 029117891caller-id enable

!

Call out for Router1 ( Resided in Router1)!voice translation-rule 1rule 1 /^0/ /A20100/

!voice translation-profile phone2010translate called 1

!dial-peer voice 1 potstranslation-profile incoming phone2012destination-pattern 2012incoming called-number .%port 0/0/0

!dial-peer voice 2 voipdescription PSTN-OUT-2010destination-pattern A2010Tsession protocol sipv2session target ipv4:10.11.121.2dtmf-relay sip-notifycodec g711ulawno vad

!

!

Call out for Router1 ( Resided in Router2)!dial-peer voice 1 potsdescription Call-Out-For-2010destination-pattern A2010Tdirect-inward-dialport 0/3/0!

Router 2 Router 1

PSTN

2010

A call coming to 029117891

2010 dials 01711234567 and that transforms in A201001711234567 which is mentioned as

A2010T to transport to Router 2

As the router gets A2010T where T = 01711234567It will only forward T to its mentioned port of PSTN

Call going to 01711234567

Page 42: Distributed IP-PBX

CASE STUDY: Remote FXO activity due to local device or data network failure

!

voice-port 0/3/1

supervisory disconnect dualtone mid-call

cptone GB

timeouts call-disconnect 5

timeouts wait-release 5

connection plar opx 2010

impedance complex2

description PSTN-FXO-Router1-PABX 029117891

caller-id enable

!

voice-port 0/3/2

supervisory disconnect dualtone mid-call

cptone GB

timeouts call-disconnect 5

timeouts wait-release 5

connection plar opx 2012

impedance complex2

description PSTN-FXO-Router1-PABX 029117891

caller-id enable

!

The FXO port will be

offhook and no connection

can be established other

than port reset. So the

following should be

maintained for FXO ports.

Page 43: Distributed IP-PBX

Conclusion: Final Achievements and Future

1. A distributed organization can operate on their own communication pattern.2. While merging to this technology their existing legacy technology PABX is integrated.3. Zone based registry allows you to have you own area communication due to unavailability of data connection.4. Local or remote PSTN integration.

Future

1. FAX integration or personal FAX network.2. Achieving a single area of communication management for voice, video, data, internet etc.3. Achieving IP-PABX smart features. 4. Using data communication more efficiently sharing it with QOS.5. Getting IP-TSP trunks as an alternative option of PSTN.

Page 44: Distributed IP-PBX