Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


gomez

84 posts

Master Geek


#87085 19-Jul-2011 15:56
Send private message


Hi everyone,

A while ago I had managed to get a fully working Asterisk/FreePBX installation going. After upgrading the hardware, I realised that I never took a backup of the configs! Silly me!

I have a SIP trunk with 2talk, and need some help in the peer and user contexts for the trunk, as well as the dialling rules.

Has anyone got a working trunk config and dialling rules set that is best suited for 2talk and NZ?

Many thanks.
Alex

Create new topic
magu
Professional yak shaver
1599 posts

Uber Geek

Trusted
BitSignal
Lifetime subscriber

  #495331 19-Jul-2011 16:07
Send private message

It seems their website has all the right info: http://blog.2talk.co.nz/siptrunk.html




"Roads? Where we're going, we don't need roads." - Doc Emmet Brown



gomez

84 posts

Master Geek


  #495363 19-Jul-2011 17:26
Send private message

 

Been to that page, no help whatsoever. 

 

vespaman
88 posts

Master Geek


  #496206 21-Jul-2011 12:33
Send private message

did you get a working config - I am having the same issue !!



sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #496209 21-Jul-2011 12:37
Send private message

Might help if you explain what the problem is. While I don't use 2talk it's unlikely they've got incorrect settings on their site, and there isn't a lot required to get Asterisk to talk so a SIP proxy.


vespaman
88 posts

Master Geek


  #496224 21-Jul-2011 12:59
Send private message

hello sbiddle,

First time user of 2talks free sip. Inbound calling works fine but when dialling out the call starts and rings the number (local call) 2 - 3 times then I get the "all circuits are busy now" message from asterisk.

I have this in the peer settings:

trunk name
2talk

disallow=all
allow=alaw&ulaw
type=friend
username=02825515XXX
fromuser=02825515XXX
secret=XXXXXXXX
host=2talk.co.nz
context=from-trunk
dtmfmode=rfc2833
nat=yes
canreinvite=no
qualify=yes
insecure=invite,port

register string

02825515XXX:XXXXXXXX@2talk.co.nz/02825515XXX

I have an outbound 2talk trunk with a 9 to select it.

appreciate any help and am searching geekzone as we speak.


gomez

84 posts

Master Geek


  #496282 21-Jul-2011 14:23
Send private message

 

Well I managed to get FreePBX to register using IAX2 to 2talk, I can make an outgoing call, but for some reason incoming calls no longer work.

 

user context.

username=03xxxxxxx
type=friend
secret=XXXXXXX
nat=route
insecure=very
host=iax.2talk.co.nz
context=from-pstn

 

This is what I have for a user context with my number as a context name. 

 

 

 

TechSol
299 posts

Ultimate Geek

Technical Solutions Aust

  #496291 21-Jul-2011 14:41
Send private message

The usual problem with one-way audio and asterisk is a firewall / NAT issue.... I would look to your router/ network first

 
 
 

Move to New Zealand's best fibre broadband service (affiliate link). Note that to use Quic Broadband you must be comfortable with configuring your own router.
vespaman
88 posts

Master Geek


  #496292 21-Jul-2011 14:42
Send private message

Finally have a working sip trunk from 2talk.

trunk name
2talk

disallow=all
allow=alaw&ulaw
type=friend
username=02825515XXX
fromuser=02825515XXX
secret=XXXXXXXX
host=2talk.co.nz
context=from-trunk
dtmfmode=rfc2833
nat=yes
canreinvite=no
qualify=yes
insecure=invite,port

registration
02825515XXX:XXXXXXXX@2talk.co.nz/02825515XXX

thanx philelvey

http://www.geekzone.co.nz/forums.asp?forumid=43&topicid=80846





techmeister
310 posts

Ultimate Geek


  #498245 26-Jul-2011 21:24
Send private message

gomez:  

Well I managed to get FreePBX to register using IAX2 to 2talk, I can make an outgoing call, but for some reason incoming calls no longer work.

 

user context.

username=03xxxxxxx
type=friend
secret=XXXXXXX
nat=route
insecure=very
host=iax.2talk.co.nz
context=from-pstn

 

This is what I have for a user context with my number as a context name. 

 

 

 


You need to match your context with what is at 2talks end, by default at 2talks end it is set to "from-trunk".
Also you may need to add requirecalltoken=no depending on the version of Asterisk you are running.
hope that helps 

sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #498252 26-Jul-2011 21:36
Send private message

techmeister:
gomez:  

Well I managed to get FreePBX to register using IAX2 to 2talk, I can make an outgoing call, but for some reason incoming calls no longer work.

 

user context.

username=03xxxxxxx
type=friend
secret=XXXXXXX
nat=route
insecure=very
host=iax.2talk.co.nz
context=from-pstn

 

This is what I have for a user context with my number as a context name. 

 

 

 


You need to match your context with what is at 2talks end, by default at 2talks end it is set to "from-trunk".
Also you may need to add requirecalltoken=no depending on the version of Asterisk you are running.
hope that helps 


The context has no relationship with 2talk's end, it's only used within Asterisk. The context setting defines the context of calls when they hit your box. Both from-trunk or from-pstn map to each other and do exactly the same thing in a FreePBX install and route directly to the inbound call settings.

techmeister
310 posts

Ultimate Geek


  #498276 26-Jul-2011 22:44
Send private message

sbiddle:
techmeister:
gomez:  

Well I managed to get FreePBX to register using IAX2 to 2talk, I can make an outgoing call, but for some reason incoming calls no longer work.

 

user context.

username=03xxxxxxx
type=friend
secret=XXXXXXX
nat=route
insecure=very
host=iax.2talk.co.nz
context=from-pstn

 

This is what I have for a user context with my number as a context name. 

 

 

 


You need to match your context with what is at 2talks end, by default at 2talks end it is set to "from-trunk".
Also you may need to add requirecalltoken=no depending on the version of Asterisk you are running.
hope that helps 


The context has no relationship with 2talk's end, it's only used within Asterisk. The context setting defines the context of calls when they hit your box. Both from-trunk or from-pstn map to each other and do exactly the same thing in a FreePBX install and route directly to the inbound call settings.


So are you saying you can use from-pstn or from-trunk?
I have found that I have to match what is at 2talk's end to be able to receive incoming IAX2 calls  and their live website states as much.

 

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.