Project

General

Profile

SipDevicesAsterisk » History » Version 3

Adrian Georgescu, 10/15/2011 05:15 PM

1 1
== Asterisk PBX ==
2
3 3 Adrian Georgescu
[[TOC(SipDevices*, depth=2)]]
4
5 2 Adrian Georgescu
SIP2SIP service consists of several OpenSIPS servers running in difference data centers using SIP Thor distributed architecture, which is using DNS SRV records to point to the actual servers. Asterisk, is currently unable to handle more that one result for a DNS SRV lookup, and the Asterisk configuration needed for getting it work with the SIP2SIP service is not trivial. This wiki page helps clarify it.
6 1
7
=== Versions 1.4 and 1.6.x ===
8
9
'''dnsmgr.conf'''
10
11
{{{
12
[general]
13
enable=yes
14
}}}
15
16
17
'''sip.conf'''
18
19
{{{
20
[general]
21
...
22
srvlookup=yes
23
...
24
25
register => 2233XXXXX:password@sip2sip.info/2233XXXXX
26
...
27
28
[authentication]
29
30
[sip2sip](!)
31
type=peer
32
canreinvite=no
33
nat=yes
34
qualify=yes
35
domain=sip2sip.info
36
fromdomain=sip2sip.info
37
outboundproxy=proxy.sipthor.net
38
fromuser=2233XXXXX
39
username=2233XXXXX
40
secret=password
41
insecure=invite
42
context=from-sip2sip
43
44
[sip2sip-0](sip2sip)
45
host=sip2sip.info
46
47
[sip2sip-1](sip2sip)
48
host=81.23.228.129
49
50
[sip2sip-2](sip2sip)
51
host=81.23.228.150
52
53
[sip2sip-3](sip2sip)
54
host=85.17.186.7
55
}}}
56
57
58
'''extensions.conf'''
59
{{{
60
[from-users]
61
; Dialing the SIP2SIP echo test
62
; IMPORTANT: all outbound calls to SIP2SIP need to be done using the 'sip2sip-0' peer
63
exten => 1234,1,Dial(SIP/3333@sip2sip-0)
64
65
[from-sip2sip]
66
; 2233XXXXX is your SIP2SIP username, NOT a dialplan pattern
67
exten => 2233XXXXX,1,NoOp(--Incoming call from ${CALLERID(all)})
68
exten => 2233XXXXX,n,Dial(SIP/phone1, 60)
69
}}}
70
71
72
=== Version 1.8 ===
73
74
'''dnsmgr.conf'''
75
76
{{{
77
[general]
78
enable=yes
79
}}}
80
81
82
'''sip.conf'''
83
84
{{{
85
[general]
86
...
87
srvlookup=yes
88
...
89
90
register => 2233XXXXX:password@sip2sip.info/2233XXXXX
91
...
92
93
[authentication]
94
95
[sip2sip](!)
96
type=peer
97
canreinvite=no
98
nat=yes
99
qualify=yes
100
domain=sip2sip.info
101
fromdomain=sip2sip.info
102
outboundproxy=proxy.sipthor.net
103
fromuser=2233XXXXX
104
defaultuser=2233XXXXX
105
secret=password
106
insecure=invite
107
context=from-sip2sip
108
109
[sip2sip-0](sip2sip)
110
host=sip2sip.info
111
112
[sip2sip-1](sip2sip)
113
host=81.23.228.129
114
115
[sip2sip-2](sip2sip)
116
host=81.23.228.150
117
118
[sip2sip-3](sip2sip)
119
host=85.17.186.7
120
}}}
121
122
123
'''extensions.conf'''
124
{{{
125
[from-users]
126
; Dialing the SIP2SIP echo test
127
; IMPORTANT: all outbound calls to SIP2SIP need to be done using the 'sip2sip-0' peer
128
exten => 1234,1,Dial(SIP/3333@sip2sip-0)
129
130
[from-sip2sip]
131
; 2233XXXXX is your SIP2SIP username, NOT a dialplan pattern
132
exten => 2233XXXXX,1,NoOp(--Incoming call from ${CALLERID(all)})
133
same => n,Dial(SIP/phone1, 60)
134
}}}