Asterisk ss7 loopback

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

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

Created by: cervajs, Last modification: Thu 01 of Jul, 2010 (12:56 UTC)
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+