Upgrade 3CX to v18 and get it hosted free!

Asterisk ss7 loopback

Author image

chan_ss7 configuration for loopback

useful for
– stress testing
– hardware testing

voip*CLI> ss7 status
linkset idle busy initiating resetting total incoming total outgoing
peer1 167 18 0 0 0 18
linkset idle busy initiating resetting total incoming total outgoing
peer2 167 18 0 0 18 0

voip*CLI> ss7 link status
linkset peer1, link l1/1 INSERVICE, sls 0, total: 146640, 146656
linkset peer2, link l7/1 INSERVICE, sls 0, total: 146624, 146656

sample.call – copy to /var/spool/asterisk/outgoing in while true cycle
Channel: Local/1234@outcall
MaxRetries: 1
RetryTime: 60
WaitTime: 30
Context: outcall
Extension: 1234
Priority: 1
extensions.conf

[outcall]
exten => _X.,1,Dial(SS7/peer1/${EXTEN})

[from_peer2]
exten => _X.,1,answer()
exten => _X.,n,playback(1min)

ss7.conf
[linkset-peer1]
enabled => yes
enable_st => no
use_connect => no
hunting_policy => even_mru
subservice => auto
opc => 0x1001
dpc => 0x1002
context=from_peer1

[linkset-peer2]
enabled => yes
enable_st => no
use_connect => no
hunting_policy => even_mru
subservice => auto
opc => 0x1002
dpc => 0x1001
context=from_peer2

[link-l1]
linkset => peer1
channels => 2-31
schannel => 1
firstcic => 1
enabled => yes

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

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

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

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

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

[link-l7]
linkset => peer2
channels => 2-31
schannel => 1
firstcic => 1
enabled => yes

[link-l8]
enabled => yes
linkset => peer2
channels => 1-31
schannel =>
firstcic => 33

[link-l9]
enabled => yes
linkset => peer2
channels => 1-31
schannel =>
firstcic => 65

[link-l10]
enabled => yes
linkset => peer2
channels => 1-31
schannel =>
firstcic => 97

[link-l11]
linkset => peer2
channels => 1-31
schannel =>
firstcic => 129
enabled => yes

[link-l12]
linkset => peer2
channels => 1-31
schannel =>
firstcic => 161
enabled => yes

[host-serverA]
enabled => yes
default_linkset => peer1
links => l1:1,l2:2,l3:3,l4:4,l5:5,l6:6,l7:7,l8:8,l9:9,l10:10,l11:11,l12:12


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.
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.