Upgrade 3CX to v18 and get it hosted free!

Asterisk ss7 multiple

Author image

Single signaling link across Multiple Asterisk Boxes

With chan_ss7 cluster function you can have N Asterisk boxes wih 1 signaling link. With this function it is possible scale to many E1 ports.

example with 2 Asterisk boxes. Host1 have signaling link and 4port E1 card. Host2 have 4port E1 card.


   | Telco -- Signaling Link (1) -- AsteriskBox(1) [ 10.0.0.1]
 -|           
   | Telco --  Bearer Link -- AsteriskBox(2) [10.0.0.2]
             ..
             Bearer Link -- AsteriskBox(N) [10.0.0.N]

 

Software

Centos5,Asterisk 1.6.1, dahdi 2.2,chan_ss7 1.3

 

example running system

mtp3d


[root@chan_ss7-1.3]# ./mtp3d 
Using /etc/asterisk for config directory
Dec 17 18:23:02 [NOTICE] config.c:732 load_config_link Configured link 'l1' on linkset 'master', firstcic=1
Dec 17 18:23:02 [NOTICE] config.c:732 load_config_link Configured link 'l2' on linkset 'master', firstcic=33
Dec 17 18:23:02 [NOTICE] config.c:1159 load_config Configuring OPC 9217, DPC 4096 for linkset 'master'.
Dec 17 18:23:02 [NOTICE] mtp.c:2363 mtp_init Initialising 1 signalling links
    -- Starting MTP thread, pid=1694.
    -- Starting monitor thread, pid=1694.
Dec 17 18:23:02 [NOTICE] mtp.c:2244 mtp_init_link Initialising link 'l1/1', linkset 'master', sls 0.
Dec 17 18:23:02 [NOTICE] mtp.c:2262 mtp_init_link Signalling channel on link 'l1/1' has signalling type 0x0080.
Dec 17 18:23:02 [NOTICE] mtp.c:1960 mtp_thread_main Empty Dahdi output buffer detected, outgoing packets may have been lost on link 'l1'.
    -- Starting mtp mainloop, pid=1694.
Using mtp3 service port 12000, socket 6
Dec 17 18:23:03 [NOTICE] mtp.c:1225 mtp2_good_frame Sending TRA to peer on link 'l1'....
Dec 17 18:23:03 [EVENT] mtp.c:1008 mtp3_send_sltm Sending SLTM to peer on link 'l1'....
Dec 17 18:23:03 [NOTICE] mtp.c:1383 process_msu  Using subservice field from incoming MSU: 0x8
Dec 17 18:23:03 [NOTICE] mtp3d.c:247 l4isup_inservice l4isup_inservice link=l1
Dec 17 18:23:03 [WARNING] mtp3d.c:138 process_event MTP is now UP on link 'l1'.
Dec 17 18:23:07 [NOTICE] mtp3d.c:420 mtp_mainloop Accepted socket connection from 10.128.3.243, fd 7
Dec 17 18:23:07 [NOTICE] mtp3d.c:527 mtp_mainloop Registered client protocol 5 for link 'l1'
Dec 17 18:23:07 [NOTICE] mtp3d.c:420 mtp_mainloop Accepted socket connection from 10.128.3.246, fd 8
Dec 17 18:23:07 [NOTICE] mtp3d.c:527 mtp_mainloop Registered client protocol 5 for link 'l1'

 

Configuration

ss7.conf is the same for all asterisks!
on host1 is running mtp3d

 


/etc/asterisk/ss7.conf
[linkset-MSC1]
enabled => yes
enable_st => no
use_connect => yes
hunting_policy => seq_htl
subservice => auto
context => ss7
language => en
t35 => 15000,timeout

[link-l1]
linkset => MSC1
channels => 2-31
schannel => 1@host1:12000
 ;schannel => 1,host1:12000 for chan_ss7 < 1.3
firstcic => 1
enabled => yes

[link-l2]
linkset => MSC1
channels => 1-31
schannel =>
firstcic => 33
enabled => yes

[link-l3]
linkset => MSC1
channels => 1-31
schannel =>
firstcic => 65
enabled => yes

[link-l4]
linkset => MSC1
channels => 1-31
schannel =>
firstcic => 97
enabled => yes

[link-l5]
linkset => MSC1
channels => 1-31
schannel =>
firstcic => 129
enabled => yes

[link-l6]
linkset => MSC1
channels => 1-31
schannel =>
firstcic => 161
enabled => yes

[link-l7]
linkset => MSC1
channels => 1-31
schannel =>
firstcic => 193
enabled => yes

[link-l8]
linkset => MSC1
channels => 1-31
schannel =>
firstcic => 225
enabled => yes

[host-host1]
enabled => yes
default_linkset => MSC1
opc => 1000
dpc => MSC1:2000
links => l1:1,l2:2,l3:3,l4:4
if-1 => 10.0.0.1

[host-host2]
enabled => yes
default_linkset => MSC1
opc => 1000
dpc => MSC1:2000
links => l5:1,l6:2,l7:3,l8:4
if-1 => 10.0.0.2

 

note: l5:1 means – link5 on port/span 1 on E1 card


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.