Penguin
Blame: AsteriskItalkSetup
EditPageHistoryDiffInfoLikePages
Annotated edit history of AsteriskItalkSetup version 5, including all changes. View license author blame.
Rev Author # Line
5 DavidIvory 1 [iTalk|http://www.italk.co.nz/] is a service run by [Auckland] [ISP] [Slingshot|http://www.slingshot.co.nz/]. It provides a SIP gateway to the NZ PSTN for $10/month. "local" calls and calls to other iTalk users are free, with reasonably cheap rates after that. Check the iTalk website for current availability of non -Auckland PSTN numbers. Number portability is also available.
2 MattBrown 2
3 The best thing about iTalk is that it is built on open protocols such as [SIP], making it easy for you to integrate it with [Asterisk].
1 RichardPatterson 4
5 In order to make your [Asterisk] pbx "talk" to iTalk, you need to define an instance for it in your sip.conf so you can reference it to dial outside numbers eg.
6
7 <verbatim>
8 [iTalk]
9 type=friend
10 secret=$your_italk_password
11 username=649974xxxx
12 fromuser=649974xxxx
13 host=akl.italk.co.nz
14 dtmfmode=rfc2833
5 DavidIvory 15 ;insecure=very ; deleted
16 insecure=port,invite ; added
1 RichardPatterson 17 nat=yes
18 canreinvite=no
19 disallow=all
20 allow=ulaw
5 DavidIvory 21 allow=alaw ; see note further down
22 ;allow=gsm ; deleted
1 RichardPatterson 23
3 DavidIvory 24 </verbatim>
5 DavidIvory 25
26 When upgrading to the current version of Asterisk (Asterisk 1.6.0.6 ) I found that calls into iTalk were being rejected and callers were hearing a voice "Currently Unavailable". This even when outbound calls were fine. Looking at the logs I understood that the insecure=very line was being flagged as an error.
27
28 I have amended the sip.conf file with the offending lines commented out. Earlier versions of Asterisk may still work with insecure=very and not with the updated version - but you should be using the latest. Also allow=gsm has been deleted.
3 DavidIvory 29
30 On 21 March 2007 I found that I needed to add the following to my sip.conf
31 <verbatim>
32 allow=alaw
1 RichardPatterson 33 </verbatim>
34
35 Also inside the sip.conf you need to register to the iTalk proxy for ingress calls. eg.
36
37 <verbatim>
38 register => $username:$password@akl.italk.co.nz/$extension_to_forward_incoming_calls_to
39 </verbatim>
40
5 DavidIvory 41 Inside extensions.conf (aside from having a valid extension to forward incoming calls to as specified in the register line above) you need to have rule to push egress calls out the "iTalk" sip define.
1 RichardPatterson 42
43 I route all egress calls out via it when people 'dial 1 to get out' so my rule inside extensions.conf looks like
44
45 <verbatim>
46 exten => _1X.,1,Dial(SIP/iTalk/${EXTEN:1},30,Tr)
47 </verbatim>
48
49 If you had other dial out methods for different toll areas you would obviously match it with the "09" prefix, ie.
50
51 <verbatim>
52 exten => _09X.,1,Dial(SIP/iTalk/${EXTEN:1},30,Tr)
53 </verbatim>
54
5 DavidIvory 55 [Slingshot/iTalk|http://italk.co.nz] now allows registering other area codes so you could do your own toll bypass network all for only $10/areacode/month for unlimited calls ;)
1 RichardPatterson 56
57 ie.
58
59 have a declaration for each area code in sip.conf, then route via them based on what the user dials eg.
60
61 <verbatim>
62 exten => _09X.,1,Dial(SIP/iTalkAKL/${EXTEN:1},30,Tr)
63 exten => _04X.,1,Dial(SIP/iTalkWLG/${EXTEN:1},30,Tr)
64 exten => _07X.,1,Dial(SIP/iTalkHLZ/${EXTEN:1},30,Tr)
65 exten => _03X.,1,Dial(SIP/iTalkCHC/${EXTEN:1},30,Tr)
4 GerwinVanDeSteeg 66 </verbatim>
67
68
69 !Further notes
70 There are a few regions where you can get an iTalk number so your username will vary based on that (647974xxxx for hamilton for example).
71
72 The [Auckland] iTalk server can be referenced by [IP] instead, the other regional servers you must be address by [DNS] name to ensure they use the right calling realm.
73
74 The gsm codec is no longer supported, and you should be using the following instead (g729 only if you have it), use ulaw if you enjoy having your conversations transcoded between alaw and ulaw.
75
76 <verbatim>
77 disallow=all
78 allow=alaw
79 ;allow=g729
1 RichardPatterson 80 </verbatim>