ftocc

Trixbox and SPA3102

markl
Posts: 14
Member Since:
2008-09-05

I'm spent the last week trying to establish a connection between trixbox and the FXO port of the SPA3102. I think I tried every possible settings that could be found on the internet.
When I try to make a call, I get the message: "All circuits are busy now".

Those are my settings:

Trixbox trunk:
User name = SPA3102

Peer details:
allow=ulaw
canreinvite=no
context=from-pstn
disallow=all
host=10.3.2.251
user=SPA3102
secret=1234
insecure=very
nat=no
port=5061
qualify=yes
type=peer

User context: SPA3102_In
allow=ulaw
canreinvite=no
context=from-pstn
disallow=all
host=10.3.2.250
insecure=very
nat=no
port=5061
type=user

Outbound route:
Dial patterns: 9|.
Trunks: SIP/SPA3102

In the configuration of the SPA3102 I changed following settings:
SIP transport: UDP
SIP Port: 5061
Make call without reg: YES
Proxy: 10.3.2.250
Dipslay name SPA3102
User name SPA3102
Password: 1234
Use auth ID: no
Dial plan 1: (S0<: 089207611@10.3.2.250 :5061>)

In the info page of the SPA3102 I can see this:
Hook state: on
Line voltage: 49V
Loop current 0.0(mV)
Registration state: failed

In the system info at trixbox webpage I can see that there is 1 IP trunk online (I have only 1 programmed). Also if I go to 'panel' in the tab trunks there are two trunks: SPA3102 and SPA3102_in showing the state connected (if I plug out the 3102, those icons become grey).

With those settings if I dial 91200, I get the message "all circuits are busy now". 1200 is the number of the talking clock here. If I connect an regular phone directly to the PSTN line and dial 1200, I get instant connection so the PSTN and the number 1200 should be OK.

I also tried to lower the Line-in-Use voltage to 15V, but this also didn't solve the problem.

I hope someone could help me with this.



medum
Posts: 56
Member Since:
2006-06-01
Trixbox and SPA-3102

medum
Posts: 56
Member Since:
2006-06-01
Or This

markl
Posts: 14
Member Since:
2008-09-05
I already tried those, wtih

I already tried those, wtih no succes.



markl
Posts: 14
Member Since:
2008-09-05
I tried inbound routes. When

I tried inbound routes. When I call to the pstn, I can see in the info screen:

Voip state: calling
Voip Peer Number: 089207611@10.3.2.250:5061

In trixbox, I configured the inbound route:
Name: analoog
DID: 089207611

Extensions: 502

But nothing rings on 502.



truefocus
Posts: 55
Member Since:
2007-04-25
This worked for me

I now can use my PSTN line as a trunk for outbound calls.
I used part of this tutorial for that to work.

http://www.claritytele.com/configuring-spa3102-asterisk-trunk

good luck

truefocus



markl
Posts: 14
Member Since:
2008-09-05
I also tried this one, with

I also tried this one, with no succes



markl
Posts: 14
Member Since:
2008-09-05
Does the state of the

Does the state of the spa3102 have to be registered to make and receive calls?



SkykingOH
Posts: 3531
Member Since:
2007-12-17
Quote: Does the state of the
Quote:
Does the state of the spa3102 have to be registered to make and receive calls?

Yes, in Asterisk also (see sip show peers)

--

Scott

aka "Skyking"



markl
Posts: 14
Member Since:
2008-09-05
Where can I find "sip show

Where can I find "sip show peers" in asterisk?

Anyway the state of the spa3102 is not registered. Which settings are responsible for the registration?



SkykingOH
Posts: 3531
Member Since:
2007-12-17
Any Asterisk commands are

Any Asterisk commands are entered from the Asterisk CLI.

You may also want to do a SIP debug and see if it is trying to register.

For registration you need to have the service IP correct, auth name and secret.

--

Scott

aka "Skyking"



vasgeo45
Posts: 6
Member Since:
2008-01-13
Has anyone tried

markl
Posts: 14
Member Since:
2008-09-05
In SPA settings, the IP is

In SPA settings, the IP is set to the IP of Asterisk and the auth name and secret are set to the one that are configured in Trunks - Peer (username, secret).
Still, registering gives Failed.



markl
Posts: 14
Member Since:
2008-09-05
I jus checked in asterisk

I jus checked in asterisk with "sip show peers", and the SPA3102 gives state OK(7ms). IP 10.3.2.251 and port 5061.

In SPA3102 info tab, registered is still False.



markl
Posts: 14
Member Since:
2008-09-05
I just tried some more

I just tried some more stuff, but nothing will work.
I'm sure that the IP-address, username and password are correct, but registration at the 'info' tab in the PSTN Line section gives "failed".

Now I want to try to reset the SPA3102 to factory defaults and just enter the IP addres, username and password.
Can anyone confirm that if I do so, the SPA3102 must show "registered" at the PSTN site?

Thx



kmporter
Posts: 15
Member Since:
2007-12-01
SPA3102 does not need to register

I am using a SPA3102 with my trixbox and it does not register. However, I can still make and receive calls on it. Here is my configuration:

Trunk (Peer Details):

auth=md5
context=from-pstn
dtmfmode=rfc2833
fromuser=spa3102
host=192.168.2.8
insecure=very
port=5061
secret=my_password
type=peer
username=spa3102

Not sure if the "auth" is needed. But, it is working. Also, my Incoming Settings and register string are blank.

As for the SPA3102, you want to make sure you also have "Answer call with Reg" enabled. I am using (xx.) in my DialPlan 1 and (S0<:6025555555) in my Dial Plan 2. I am not specifying a host or port in my Dial Plan 2. On my VOIP to PSTN gateway, I have the "Line 1 VoIP Caller DP" set to 1. On the PSTN to VOIP gateway, I have the "PSTN Caller Default DP" set to 2.

Hope this helps!!



markl
Posts: 14
Member Since:
2008-09-05
I found a solution for my

I found a solution for my problem:

In trunk settings at trixbox side, I added allow=ulaw.

In SPA3201 PSTN line settings, I set "preferred codec" to G711u and "use preferred codec only" to yes.

Now I can make and receive calls over the PSTN line!

When I set "use preferred codec only" to no, the calls aren't coming trough anymore. Looks a bit strange right?



hieppv
Posts: 1
Member Since:
2008-10-31
Pls check your IP Address on

Pls check your IP Address on Peer conf. and User context conf.

--

cuteo



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.