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.



84 posts

Master Geek


Topic # 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
Professional yak shaver
1538 posts

Uber Geek
+1 received by user: 3

Trusted
BitSignal
Subscriber

  Reply # 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



84 posts

Master Geek


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

 

Been to that page, no help whatsoever. 

 

62 posts

Master Geek


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

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

18574 posts

Uber Geek
+1 received by user: 736

Moderator
Trusted
Biddle Corp
Subscriber

  Reply # 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.


62 posts

Master Geek


  Reply # 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:[email protected]/02825515XXX

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

appreciate any help and am searching geekzone as we speak.




84 posts

Master Geek


  Reply # 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. 

 

 

 

250 posts

Master Geek
+1 received by user: 8

Technical Solutions Aust
Subscriber

  Reply # 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

62 posts

Master Geek


  Reply # 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:[email protected]/02825515XXX

thanx philelvey

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





295 posts

Ultimate Geek
+1 received by user: 9


  Reply # 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 




Now on Slingshot Better Network and it's better.

Share Image

18574 posts

Uber Geek
+1 received by user: 736

Moderator
Trusted
Biddle Corp
Subscriber

  Reply # 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.

295 posts

Ultimate Geek
+1 received by user: 9


  Reply # 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.

 




Now on Slingshot Better Network and it's better.

Share Image

Create new topic








Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when new jobs are posted to our jobs board:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:




News »

Trending now »
Hot discussions in our forums right now:

Telecom introduces unlimited broadband data plan
Created by freitasm, last reply by KiwiNZ on 24-Apr-2014 07:28 (94 replies)
Pages... 5 6 7


Stonedine
Created by Lizard1977, last reply by surfisup1000 on 23-Apr-2014 21:27 (58 replies)
Pages... 2 3 4


Forms of government for New Zealand
Created by charsleysa, last reply by KiwiNZ on 23-Apr-2014 20:57 (169 replies)
Pages... 10 11 12


Telecom has started metering their TiVo customers' broadband usage (WITHOUT PRENOTIFICATION)
Created by Peteriv, last reply by kre8uv on 24-Apr-2014 08:03 (70 replies)
Pages... 3 4 5


Parallel imported product
Created by Wills1, last reply by joker97 on 23-Apr-2014 21:01 (53 replies)
Pages... 2 3 4


MH370 - Call for Search & Rescue Help
Created by DS248, last reply by joker97 on 23-Apr-2014 22:37 (737 replies)
Pages... 48 49 50


Labour MP Shane Jones to step down
Created by jeffnz, last reply by jeffnz on 23-Apr-2014 20:41 (32 replies)
Pages... 2 3


Upcoming Freeview Restack AUCKLAND
Created by Brunzy, last reply by richms on 23-Apr-2014 21:05 (13 replies)


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.

Alternatively, you can receive a daily email with Geekzone updates.