SHOW:
|
|
- or go back to the newest paste.
1 | ***** sip.conf ***** | |
2 | [general] | |
3 | context=default ; default | |
4 | allowoverlap=no ; default | |
5 | udpbindaddr=0.0.0.0 ; default | |
6 | tcpenable=no ; default | |
7 | tcpbindaddr=0.0.0.0 ; default | |
8 | transport=udp ; default | |
9 | srvlookup=yes ; default | |
10 | ||
11 | register => nickname@sip.beeline.ru:password:7499952XXXX@sip.beeline.ru@msk.sip.beeline.ru:5060/7499952XXXX | |
12 | ||
13 | [authentication] ; default | |
14 | ||
15 | [6000] | |
16 | type=friend | |
17 | secret=my_secret | |
18 | username=6000 | |
19 | host=dynamic | |
20 | context=sip-in | |
21 | ||
22 | [beeline] | |
23 | context=from-beeline | |
24 | type=peer | |
25 | secret=password | |
26 | fromuser=7499952XXXX ; actual number is here | |
27 | host=sip.beeline.ru | |
28 | canreinvite=no | |
29 | ||
30 | [basic-options](!) ; default | |
31 | dtmfmode=rfc2833 | |
32 | context=from-office | |
33 | type=friend | |
34 | ||
35 | [natted-phone](!,basic-options) ; default | |
36 | directmedia=no | |
37 | host=dynamic | |
38 | ||
39 | [public-phone](!,basic-options) ; default | |
40 | directmedia=yes | |
41 | ||
42 | [my-codecs](!) ; default | |
43 | disallow=all | |
44 | allow=ilbc | |
45 | allow=g729 | |
46 | allow=gsm | |
47 | allow=g723 | |
48 | allow=ulaw | |
49 | ||
50 | [ulaw-phone](!) ; default | |
51 | disallow=all | |
52 | allow=ulaw | |
53 | ||
54 | ||
55 | ***** extensions.conf ***** | |
56 | [general] ; default | |
57 | static=yes | |
58 | writeprotect=no | |
59 | clearglobalvars=no | |
60 | ||
61 | [globals] ; default | |
62 | CONSOLE=Console/dsp | |
63 | IAXINFO=guest | |
64 | TRUNK=DAHDI/G2 | |
65 | TRUNKMSD=1 | |
66 | ||
67 | [default] | |
68 | exten => _X.,1,Hangup | |
69 | ||
70 | [sip-in] | |
71 | exten => _X.,1,Dial(SIP/beeline/${EXTEN}) | |
72 | same => n,Hangup | |
73 | ||
74 | [from-beeline] | |
75 | exten => 7499952XXXX,1,Dial(SIP/beeline/7916XXXXXXX) ; actual numbers are here | |
76 | exten => _X.,n, Hangup |