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 [3480000001@from-internal:1] Macro(“SIP/401-00000023”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/401-00000023”, “AMPUSER=401”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/401-00000023”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/401-00000023”, “1?Set(REALCALLERIDNUM=401)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/401-00000023”, “AMPUSER=401”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/401-00000023”, “AMPUSERCIDNAME=Andrea”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/401-00000023”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/401-00000023”, “AMPUSERCID=401”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/401-00000023”, “CALLERID(all)=“Andrea” <401>”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/401-00000023”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:10] ExecIf(“SIP/401-00000023”, “1?Set(GROUP(concurrency_limit)=401)”) in new stack
– Executing [s@macro-user-callerid:11] ExecIf(“SIP/401-00000023”, “1?Set(CHANNEL(language)=it)”) in new stack
– Executing [s@macro-user-callerid:12] GosubIf(“SIP/401-00000023”, “7?sub-ccss,s,1(from-internal,3480000001)”) in new stack
– Executing [s@sub-ccss:1] ExecIf(“SIP/401-00000023”, “0?Return()”) in new stack
– Executing [s@sub-ccss:2] Set(“SIP/401-00000023”, “CCSS_SETUP=TRUE”) in new stack
– Executing [s@sub-ccss:3] GosubIf(“SIP/401-00000023”, “0?monitor_config,1(from-internal,3480000001):monitor_default,1(from-internal,3480000001)”) in new stack
– Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/401-00000023”, “0?is_exten”) in new stack
– Executing [monitor_default@sub-ccss:2] StackPop(“SIP/401-00000023”, “”) in new stack
– Executing [monitor_default@sub-ccss:3] Return(“SIP/401-00000023”, “FALSE”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/401-00000023”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [s@macro-user-callerid:26] Set(“SIP/401-00000023”, “CALLERID(number)=401”) in new stack
– Executing [s@macro-user-callerid:27] Set(“SIP/401-00000023”, “CALLERID(name)=Andrea”) in new stack
– Executing [s@macro-user-callerid:28] Set(“SIP/401-00000023”, “CHANNEL(language)=it”) in new stack
– Executing [3480000001@from-internal:2] Set(“SIP/401-00000023”, “MOHCLASS=default”) in new stack
– Executing [3480000001@from-internal:3] Set(“SIP/401-00000023”, “_NODEST=”) in new stack
– Executing [3480000001@from-internal:4] Macro(“SIP/401-00000023”, “record-enable,401,OUT,”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/401-00000023”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] ExecIf(“SIP/401-00000023”, “0?MacroExit()”) in new stack
– Executing [s@macro-record-enable:5] GotoIf(“SIP/401-00000023”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,14)
– Executing [s@macro-record-enable:14] GotoIf(“SIP/401-00000023”, “0?IN”) in new stack
– Executing [s@macro-record-enable:15] ExecIf(“SIP/401-00000023”, “1?MacroExit()”) in new stack
– Executing [3480000001@from-internal:5] Macro(“SIP/401-00000023”, “dialout-trunk,4,3480000001,”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/401-00000023”, “DIAL_TRUNK=4”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/401-00000023”, “0?sub-pincheck,s,1”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/401-00000023”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/401-00000023”, “DIAL_NUMBER=3480000001”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/401-00000023”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/401-00000023”, “OUTBOUND_GROUP=OUT_4”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/401-00000023”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/401-00000023”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/401-00000023”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/401-00000023”, “outbound-callerid,4”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/401-00000023”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/401-00000023”, “0?Set(REALCALLERIDNUM=401)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/401-00000023”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/401-00000023”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/401-00000023”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/401-00000023”, “TRUNKOUTCID=0331202558”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/401-00000023”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/401-00000023”, “1?Set(CALLERID(all)=0331202558)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/401-00000023”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/401-00000023”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/401-00000023”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/401-00000023”, “0?sub-flp-4,s,1”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/401-00000023”, “OUTNUM=3480000001”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/401-00000023”, “custom=SIP/spapstn”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/401-00000023”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/401-00000023”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/401-00000023”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/401-00000023”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/401-00000023”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] GotoIf(“SIP/401-00000023”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk: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 [s@macro-dialout-trunk:21] NoOp(“SIP/401-00000023”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0”) in new stack
– Executing [s@macro-dialout-trunk:22] Goto(“SIP/401-00000023”, “s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“SIP/401-00000023”, “RC=0”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“SIP/401-00000023”, “0,1”) in new stack
– Goto (macro-dialout-trunk,0,1)
– Executing [0@macro-dialout-trunk:1] Goto(“SIP/401-00000023”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] GotoIf(“SIP/401-00000023”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [continue@macro-dialout-trunk:3] NoOp(“SIP/401-00000023”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:4] Set(“SIP/401-00000023”, “CALLERID(number)=401”) in new stack
– Executing [3480000001@from-internal:6] Macro(“SIP/401-00000023”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/401-00000023”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/401-00000023”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“SIP/401-00000023”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy: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 [h@from-internal: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’?