SPA3102 configuration problem

Hello,

Scenario:
Frepbx distro
Linksys SPA3102
1 pstn line

I configured my spa3102 with the following guide:
http://www.freepbx.org/support/documentation/howtos/howto-linksys-spa-3102-sipura-spa-3000-freepbx

Outgoing: When I call an external mumber can’t hear any sound and after a few seconds the thunk fail:

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] Macro(“SIP/401-00000023”, “user-callerid,LIMIT,”) in new stack
– Executing [[email protected]:1] Set(“SIP/401-00000023”, “AMPUSER=401”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/401-00000023”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/401-00000023”, “1?Set(REALCALLERIDNUM=401)”) in new stack
– Executing [[email protected]:4] Set(“SIP/401-00000023”, “AMPUSER=401”) in new stack
– Executing [[email protected]:5] Set(“SIP/401-00000023”, “AMPUSERCIDNAME=Andrea”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/401-00000023”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/401-00000023”, “AMPUSERCID=401”) in new stack
– Executing [[email protected]:8] Set(“SIP/401-00000023”, “CALLERID(all)=“Andrea” <401>”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/401-00000023”, “0?limit”) in new stack
– Executing [[email protected]:10] ExecIf(“SIP/401-00000023”, “1?Set(GROUP(concurrency_limit)=401)”) in new stack
– Executing [[email protected]:11] ExecIf(“SIP/401-00000023”, “1?Set(CHANNEL(language)=it)”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/401-00000023”, “7?sub-ccss,s,1(from-internal,3480000001)”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/401-00000023”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“SIP/401-00000023”, “CCSS_SETUP=TRUE”) in new stack
– Executing [[email protected]:3] GosubIf(“SIP/401-00000023”, “0?monitor_config,1(from-internal,3480000001):monitor_default,1(from-internal,3480000001)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/401-00000023”, “0?is_exten”) in new stack
– Executing [[email protected]:2] StackPop(“SIP/401-00000023”, “”) in new stack
– Executing [[email protected]:3] Return(“SIP/401-00000023”, “FALSE”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/401-00000023”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [[email protected]:26] Set(“SIP/401-00000023”, “CALLERID(number)=401”) in new stack
– Executing [[email protected]:27] Set(“SIP/401-00000023”, “CALLERID(name)=Andrea”) in new stack
– Executing [[email protected]:28] Set(“SIP/401-00000023”, “CHANNEL(language)=it”) in new stack
– Executing [[email protected]:2] Set(“SIP/401-00000023”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:3] Set(“SIP/401-00000023”, “_NODEST=”) in new stack
– Executing [[email protected]:4] Macro(“SIP/401-00000023”, “record-enable,401,OUT,”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/401-00000023”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] ExecIf(“SIP/401-00000023”, “0?MacroExit()”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/401-00000023”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,14)
– Executing [[email protected]:14] GotoIf(“SIP/401-00000023”, “0?IN”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/401-00000023”, “1?MacroExit()”) in new stack
– Executing [[email protected]:5] Macro(“SIP/401-00000023”, “dialout-trunk,4,3480000001,”) in new stack
– Executing [[email protected]:1] Set(“SIP/401-00000023”, “DIAL_TRUNK=4”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/401-00000023”, “0?sub-pincheck,s,1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/401-00000023”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“SIP/401-00000023”, “DIAL_NUMBER=3480000001”) in new stack
– Executing [[email protected]:5] Set(“SIP/401-00000023”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“SIP/401-00000023”, “OUTBOUND_GROUP=OUT_4”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/401-00000023”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [[email protected]:9] GotoIf(“SIP/401-00000023”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/401-00000023”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/401-00000023”, “outbound-callerid,4”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/401-00000023”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/401-00000023”, “0?Set(REALCALLERIDNUM=401)”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/401-00000023”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/401-00000023”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“SIP/401-00000023”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/401-00000023”, “TRUNKOUTCID=0331202558”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/401-00000023”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“SIP/401-00000023”, “1?Set(CALLERID(all)=0331202558)”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/401-00000023”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/401-00000023”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/401-00000023”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/401-00000023”, “0?sub-flp-4,s,1”) in new stack
– Executing [[email protected]:13] Set(“SIP/401-00000023”, “OUTNUM=3480000001”) in new stack
– Executing [[email protected]:14] Set(“SIP/401-00000023”, “custom=SIP/spapstn”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/401-00000023”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/401-00000023”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [[email protected]:17] Macro(“SIP/401-00000023”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/401-00000023”, “”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/401-00000023”, “0?bypass,1”) in new stack
– Executing [[email protected]:19] GotoIf(“SIP/401-00000023”, “0?customtrunk”) in new stack
– Executing [[email protected]:20] Dial(“SIP/401-00000023”, “SIP/spapstn/3480000001,300,”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
[2011-04-29 16:20:47] WARNING[7816]: chan_sip.c:5226 sip_call: No audio format found to offer. Cancelling call to 3480000001
– Couldn’t call spapstn/3480000001
== Everyone is busy/congested at this time (0:0/0/0)
– Executing [[email protected]:21] NoOp(“SIP/401-00000023”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0”) in new stack
– Executing [[email protected]:22] Goto(“SIP/401-00000023”, “s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] Set(“SIP/401-00000023”, “RC=0”) in new stack
– Executing [[email protected]:2] Goto(“SIP/401-00000023”, “0,1”) in new stack
– Goto (macro-dialout-trunk,0,1)
– Executing [[email protected]:1] Goto(“SIP/401-00000023”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] GotoIf(“SIP/401-00000023”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [[email protected]:3] NoOp(“SIP/401-00000023”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks”) in new stack
– Executing [[email protected]:4] Set(“SIP/401-00000023”, “CALLERID(number)=401”) in new stack
– Executing [[email protected]:6] Macro(“SIP/401-00000023”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“SIP/401-00000023”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/401-00000023”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/401-00000023”, “0?intracompany,1”) in new stack
– Executing [[email protected]:4] Playback(“SIP/401-00000023”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
– <SIP/401-00000023> Playing ‘all-circuits-busy-now.ulaw’ (language ‘it’)
– <SIP/401-00000023> Playing ‘pls-try-call-later.ulaw’ (language ‘it’)
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘SIP/401-00000023’ in macro ‘outisbusy’
== Spawn extension (from-internal, 3480000001, 6) exited non-zero on ‘SIP/401-00000023’
– Executing [[email protected]:1] Hangup(“SIP/401-00000023”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/401-00000023’

Incoming: If I call the pstn number, asterisk not receive nothing (log clear)
SPA3102 (suslog) seems have activity

Solved.

SPA3102 was connected on LAN port rather then on the WAN :wink:

Tnx again

Hi SkykingOH,

Thank you for your reply and sorry for useless log.

I have uploaded the screenshots of the extensions, trunk and SPA3102 configuration.

https://cid-e118106b6bac53b4.office.live.com/self.aspx/Public/pbx?sa=75840359

(PBX Folder)

Thanks

Many things wrong -

You don’t need any settings under trunk inbound.

In Peer Details you have disallow=all then no CODEC’s defined. You need to have an allow=ulaw after the disallow.

Why did you change the port to 5061?

Turn off all supplementary services and clear out the vertical activation codes.

That should get you closer.

Lots of useless log, need information on how you configured phone and FreePBX.

To Expedite I would take bunch of screen shots of the SPA and your FreePBX trunk and extension post them on a sharing site and put the links here.

That way someone can find you mistake and help you out.

Here is a clue:

“SIP/spapstn/3480000001,300,”) in new stack

Where have you defined spapstn? Does it list in ‘sip show peers’?