spa3000

I have a problem with Linksys Sipura-SPA3000.
Before starting to explain you my problem, I will try to show my environment.

I have an Alcatel PBX “OMNIPCX office”.
The phone numbering is between 220 and 258 numbers; 244 number is an analogig line and I can connect a traditional phone

My network is 10.0.0.0/16

I installed Trixbox 2.6.1. (10.0.0.12)
The extension numbers are between 1220 and 1258, between 2700 and 2750.

I have Linksys Sipura-SPA3000 (Software version:3.1.20(GW); Hardware version: 2.0.1(659e))
I connected FXO port of SPA3000 to analogic line (244 phone number) and then I connected SPA3000 to my local network (10.0.11.1)

I want call a phone number of “OMNIPCX office” from voip phone through the gateway SPA3000 .
Es:2700 voip phone calls 232 traditional phone.

I followed HOWTO of this link

http://www.freepbx.org/support/documentation/howtos/howto-linksys

and in FreePBX Outbound Route setup I put this dial pattern
2NX

MY PROBLEM IS

I am not able to call a phone number of “OMNIPCX office” from voip phone through the gateway SPA3000; in asterisk log (/var/log/asterisk/full) I receive those messages below (The call is from 2700 to 232).
Can you help me?
Thanks
Andrea

VERBOSE[15279] logger.c: – Executing [232@from-internal:1] Macro(“SIP/2700-084c9870”, “user-callerid|SKIPTTL|”) in new stack
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:1] NoOp(“SIP/2700-084c9870”, “user-callerid: device 2700”) in new stack
DEBUG[15279] app_macro.c: Executed application: Noop
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:2] Set(“SIP/2700-084c9870”, “AMPUSER=2700”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:3] GotoIf(“SIP/2700-084c9870”, “0?report”) in new stack
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:4] ExecIf(“SIP/2700-084c9870”, “1|Set|REALCALLERIDNUM=2700”) in new stack
DEBUG[15279] app_macro.c: Executed application: ExecIf
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:5] NoOp(“SIP/2700-084c9870”, “REALCALLERIDNUM is 2700”) in new stack
DEBUG[15279] app_macro.c: Executed application: Noop
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:6] Set(“SIP/2700-084c9870”, “AMPUSER=2700”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:7] Set(“SIP/2700-084c9870”, “AMPUSERCIDNAME=BenciniA”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:8] GotoIf(“SIP/2700-084c9870”, “0?report”) in new stack
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:9] Set(“SIP/2700-084c9870”, “AMPUSERCID=2700”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:10] Set(“SIP/2700-084c9870”, “CALLERID(all)=“BenciniA” <2700>”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:11] Set(“SIP/2700-084c9870”, “REALCALLERIDNUM=2700”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:12] ExecIf(“SIP/2700-084c9870”, “0|Set|CHANNEL(language)=”) in new stack
DEBUG[15279] app_macro.c: Executed application: ExecIf
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:13] NoOp(“SIP/2700-084c9870”, “TTL: ARG1: SKIPTTL”) in new stack
DEBUG[15279] app_macro.c: Executed application: Noop
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:14] GotoIf(“SIP/2700-084c9870”, “1?continue”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-user-callerid,s,23)
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-user-callerid:23] NoOp(“SIP/2700-084c9870”, “Using CallerID “BenciniA” <2700>”) in new stack
DEBUG[15279] app_macro.c: Executed application: Noop
VERBOSE[15279] logger.c: – Executing [232@from-internal:2] Set(“SIP/2700-084c9870”, “_NODEST=”) in new stack
VERBOSE[15279] logger.c: – Executing [232@from-internal:3] Macro(“SIP/2700-084c9870”, “record-enable|2700|OUT|”) in new stack
VERBOSE[15279] logger.c: – Executing [s@macro-record-enable:1] GotoIf(“SIP/2700-084c9870”, “0?2:4”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-record-enable,s,4)
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-record-enable:4] AGI(“SIP/2700-084c9870”, “recordingcheck|20081024-104246|1224837766.215”) in new stack
VERBOSE[15279] logger.c: – Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
VERBOSE[15279] logger.c: recordingcheck|20081024-104246|1224837766.215: Outbound recording not enabled
VERBOSE[15279] logger.c: – AGI Script recordingcheck completed, returning 0
DEBUG[15279] app_macro.c: Executed application: AGI
VERBOSE[15279] logger.c: – Executing [s@macro-record-enable:5] NoOp(“SIP/2700-084c9870”, “No recording needed”) in new stack
DEBUG[15279] app_macro.c: Executed application: Noop
VERBOSE[15279] logger.c: – Executing [232@from-internal:4] Macro(“SIP/2700-084c9870”, “dialout-trunk|2|232||”) in new stack
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:1] Set(“SIP/2700-084c9870”, “DIAL_TRUNK=2”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
DEBUG[15279] func_db.c: DB: AMPUSER/2700/pinless not found in database.
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:2] ExecIf(“SIP/2700-084c9870”, “0|Authenticate|”) in new stack
DEBUG[15279] app_macro.c: Executed application: ExecIf
DEBUG[15279] func_db.c: DB: AMPUSER/2700/pinless not found in database.
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/2700-084c9870”, “0?disabletrunk|1”) in new stack
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:4] Set(“SIP/2700-084c9870”, “DIAL_NUMBER=232”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:5] Set(“SIP/2700-084c9870”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:6] Set(“SIP/2700-084c9870”, “GROUP()=OUT_2”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/2700-084c9870”, “0?nomax”) in new stack
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:8] GotoIf(“SIP/2700-084c9870”, “0?chanfull”) in new stack
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/2700-084c9870”, “0?skipoutcid”) in new stack
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:10] Set(“SIP/2700-084c9870”, “DIAL_TRUNK_OPTIONS=”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:11] Macro(“SIP/2700-084c9870”, “outbound-callerid|2”) in new stack
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:1] GotoIf(“SIP/2700-084c9870”, “1?start”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-outbound-callerid,s,3)
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:3] NoOp(“SIP/2700-084c9870”, “REALCALLERIDNUM is 2700”) in new stack
DEBUG[15279] app_macro.c: Executed application: Noop
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/2700-084c9870”, “1?normcid”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-outbound-callerid,s,9)
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:9] Set(“SIP/2700-084c9870”, “USEROUTCID=BenciniA<2700>”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
DEBUG[15279] func_db.c: DB: DEVICE/2700/emergency_cid not found in database.
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:10] Set(“SIP/2700-084c9870”, “EMERGENCYCID=”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:11] Set(“SIP/2700-084c9870”, “TRUNKOUTCID=spa3000<1244>”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:12] GotoIf(“SIP/2700-084c9870”, “1?trunkcid”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-outbound-callerid,s,16)
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:16] GotoIf(“SIP/2700-084c9870”, “0?usercid”) in new stack
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:17] Set(“SIP/2700-084c9870”, “CALLERID(all)=spa3000<1244>”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:18] GotoIf(“SIP/2700-084c9870”, “0?report”) in new stack
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:19] Set(“SIP/2700-084c9870”, “CALLERID(all)=BenciniA<2700>”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:20] GotoIf(“SIP/2700-084c9870”, “1?report:hidecid”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-outbound-callerid,s,22)
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-outbound-callerid:22] NoOp(“SIP/2700-084c9870”, “CallerID set to “BenciniA” <2700>”) in new stack
DEBUG[15279] app_macro.c: Executed application: Noop
DEBUG[15279] app_macro.c: Executed application: Macro
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:12] AGI(“SIP/2700-084c9870”, “fixlocalprefix”) in new stack
VERBOSE[15279] logger.c: – Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
VERBOSE[15279] logger.c: – AGI Script fixlocalprefix completed, returning 0
DEBUG[15279] app_macro.c: Executed application: AGI
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:13] Set(“SIP/2700-084c9870”, “OUTNUM=232”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:14] Set(“SIP/2700-084c9870”, “custom=SIP/1-pstn”) in new stack
DEBUG[15279] app_macro.c: Executed application: Set
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:15] GotoIf(“SIP/2700-084c9870”, “1?gocall”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-dialout-trunk,s,17)
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:17] Macro(“SIP/2700-084c9870”, “dialout-trunk-predial-hook|”) in new stack
WARNING[15279] app_macro.c: Context ‘macro-dialout-trunk-predial-hook’ for macro ‘dialout-trunk-predial-hook’ lacks ‘s’ extension, priority 1
DEBUG[15279] app_macro.c: Executed application: Macro
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/2700-084c9870”, “0?bypass|1”) in new stack
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:19] GotoIf(“SIP/2700-084c9870”, “0?customtrunk”) in new stack
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:20] Dial(“SIP/2700-084c9870”, “SIP/1-pstn/232|300|”) in new stack
VERBOSE[15279] logger.c: – Called 1-pstn/232
VERBOSE[32499] logger.c: – Got SIP response 504 “Service Unavailable” back from 10.0.11.1
VERBOSE[15279] logger.c: – SIP/1-pstn-084f76a0 is circuit-busy
VERBOSE[15279] logger.c: == Everyone is busy/congested at this time (1:0/1/0)
DEBUG[15279] app_macro.c: Executed application: Dial
VERBOSE[15279] logger.c: – Executing [s@macro-dialout-trunk:21] Goto(“SIP/2700-084c9870”, “s-CONGESTION|1”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-dialout-trunk,s-CONGESTION,1)
DEBUG[15279] app_macro.c: Executed application: Goto
VERBOSE[15279] logger.c: – Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf(“SIP/2700-084c9870”, “1?noreport”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-dialout-trunk,s-CONGESTION,3)
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp(“SIP/2700-084c9870”, “TRUNK Dial failed due to CONGESTION - failing through to other trunks”) in new stack
DEBUG[15279] app_macro.c: Executed application: Noop
VERBOSE[15279] logger.c: – Executing [232@from-internal:5] Macro(“SIP/2700-084c9870”, “outisbusy|”) in new stack
VERBOSE[15279] logger.c: – Executing [s@macro-outisbusy:1] Playback(“SIP/2700-084c9870”, “all-circuits-busy-now|noanswer”) in new stack
VERBOSE[15279] logger.c: – Playing ‘all-circuits-busy-now’ (language ‘en’)
DEBUG[15279] app_macro.c: Executed application: Playback
VERBOSE[15279] logger.c: – Executing [s@macro-outisbusy:2] Playback(“SIP/2700-084c9870”, “pls-try-call-later|noanswer”) in new stack
VERBOSE[15279] logger.c: – Playing ‘pls-try-call-later’ (language ‘en’)
DEBUG[15279] app_macro.c: Executed application: Playback
VERBOSE[15279] logger.c: – Executing [s@macro-outisbusy:3] Macro(“SIP/2700-084c9870”, “hangupcall”) in new stack
VERBOSE[15279] logger.c: – Executing [s@macro-hangupcall:1] ResetCDR(“SIP/2700-084c9870”, “w”) in new stack
DEBUG[15279] app_macro.c: Executed application: ResetCDR
VERBOSE[15279] logger.c: – Executing [s@macro-hangupcall:2] NoCDR(“SIP/2700-084c9870”, “”) in new stack
DEBUG[15279] app_macro.c: Executed application: NoCDR
VERBOSE[15279] logger.c: – Executing [s@macro-hangupcall:3] GotoIf(“SIP/2700-084c9870”, “1?skiprg”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-hangupcall,s,6)
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-hangupcall:6] GotoIf(“SIP/2700-084c9870”, “1?skipblkvm”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-hangupcall,s,9)
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-hangupcall:9] GotoIf(“SIP/2700-084c9870”, “1?theend”) in new stack
VERBOSE[15279] logger.c: – Goto (macro-hangupcall,s,11)
DEBUG[15279] app_macro.c: Executed application: GotoIf
VERBOSE[15279] logger.c: – Executing [s@macro-hangupcall:11] Hangup(“SIP/2700-084c9870”, “”) in new stack
VERBOSE[15279] logger.c: == Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/2700-084c9870’ in macro 'hangupcall’
VERBOSE[15279] logger.c: == Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/2700-084c9870’ in macro 'outisbusy’
VERBOSE[15279] logger.c: == Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/2700-084c9870’

http://josephades1.googlepages.com/adv_spa3000fxo