Basic SIP problem

Hi,
I cannot make an internal calls using on my SIP & FXO analog extension phones.

I used Asterisk 1.8.21.0, running under CentOS 6.3, my freepbx version is 2.11. below is the log i have got during i make a test internal call.

I used FXO analog phone and i’m trying to call 1321 FXO internal extension only. after i dialed the extension 1321, it will only hangup and below are the logs…

– Starting simple switch on ‘DAHDI/8-1’
– Executing [[email protected]:1] Set(“DAHDI/8-1”, “__RINGTIMER=”) in new stack
– Executing [[email protected]:2] Macro(“DAHDI/8-1”, “exten-vm,novm,1321,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“DAHDI/8-1”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/8-1”, “AMPUSER=1322”) in new stack
– Executing [[email protected]:2] GotoIf(“DAHDI/8-1”, “0?report”) in new stack
– Executing [[email protected]ro-user-callerid:3] ExecIf(“DAHDI/8-1”, “1?Set(REALCALLERIDNUM=1322)”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/8-1”, “AMPUSER=”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/8-1”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:6] GotoIf(“DAHDI/8-1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [[email protected]:13] GotoIf(“DAHDI/8-1”, “0?continue”) in new stack
– Executing [[email protected]:14] Set(“DAHDI/8-1”, “__TTL=64”) in new stack
– Executing [[email protected]:15] GotoIf(“DAHDI/8-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [[email protected]:26] Set(“DAHDI/8-1”, “CALLERID(number)=1322”) in new stack
– Executing [[email protected]:27] Set(“DAHDI/8-1”, “CALLERID(name)=channel8”) in new stack
– Executing [[email protected]:28] Set(“DAHDI/8-1”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/8-1”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/8-1”, “__EXTTOCALL=1321”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/8-1”, “__PICKUPMARK=1321”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/8-1”, “RT=”) in new stack
– Executing [[email protected]:6] Gosub(“DAHDI/8-1”, “sub-record-check,s,1(exten,1321,)”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/8-1”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [[email protected]:6] Set(“DAHDI/8-1”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:7] GotoIf(“DAHDI/8-1”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [[email protected]:10] ExecIf(“DAHDI/8-1”, “0?Return()”) in new stack
– Executing [[email protected]:11] GotoIf(“DAHDI/8-1”, “0?exten,1”) in new stack
– Executing [[email protected]:12] Set(“DAHDI/8-1”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:13] ExecIf(“DAHDI/8-1”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [[email protected]:14] Set(“DAHDI/8-1”, “NOW=1366839840”) in new stack
– Executing [[email protected]:15] Set(“DAHDI/8-1”, “__DAY=25”) in new stack
– Executing [[email protected]:16] Set(“DAHDI/8-1”, “__MONTH=04”) in new stack
– Executing [[email protected]:17] Set(“DAHDI/8-1”, “__YEAR=2013”) in new stack
– Executing [[email protected]:18] Set(“DAHDI/8-1”, “__TIMESTR=20130425-054400”) in new stack
– Executing [[email protected]:19] Set(“DAHDI/8-1”, “__FROMEXTEN=1322”) in new stack
– Executing [[email protected]:20] Set(“DAHDI/8-1”, “__CALLFILENAME=exten-1321-1322-20130425-054400-1366839834.14”) in new stack
– Executing [[email protected]:21] Goto(“DAHDI/8-1”, “exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [[email protected]:1] GotoIf(“DAHDI/8-1”, “0?callee”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/8-1”, “__REC_POLICY_MODE=”) in new stack
– Executing [[email protected]:3] GotoIf(“DAHDI/8-1”, “0?caller”) in new stack
– Executing [[email protected]:4] GotoIf(“DAHDI/8-1”, “0?callee”) in new stack
– Executing [[email protected]:5] ExecIf(“DAHDI/8-1”, “0?Set(CALLER_PRI=):Set(CALLER_PRI=0)”) in new stack
– Executing [[email protected]:6] ExecIf(“DAHDI/8-1”, “0?Set(CALLEE_PRI=):Set(CALLEE_PRI=0)”) in new stack
– Executing [[email protected]:7] GotoIf(“DAHDI/8-1”, “1?caller:callee”) in new stack
– Goto (sub-record-check,exten,10)
– Executing [[email protected]:10] Set(“DAHDI/8-1”, “__REC_POLICY_MODE=”) in new stack
– Executing [[email protected]:11] GosubIf(“DAHDI/8-1”, “0?record,1(exten,1321,1322)”) in new stack
– Executing [[email protected]:12] Return(“DAHDI/8-1”, “”) in new stack
– Executing [[email protected]:7] Macro(“DAHDI/8-1”, “dial-one,tr,1321”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/8-1”, “DEXTEN=1321”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/8-1”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:3] GosubIf(“DAHDI/8-1”, “0?screen,1()”) in new stack
– Executing [[email protected]:4] GosubIf(“DAHDI/8-1”, “0?cf,1()”) in new stack
– Executing [[email protected]:5] GotoIf(“DAHDI/8-1”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [[email protected]:8] GotoIf(“DAHDI/8-1”, “0?nodial”) in new stack
– Executing [[email protected]:9] GotoIf(“DAHDI/8-1”, “0?continue”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/8-1”, “EXTHASCW=”) in new stack
– Executing [[email protected]:11] GotoIf(“DAHDI/8-1”, “1?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,12)
– Executing [[email protected]:12] GotoIf(“DAHDI/8-1”, “0?docfu:skip3”) in new stack
– Goto (macro-dial-one,s,16)
– Executing [[email protected]:16] GotoIf(“DAHDI/8-1”, “1?next2:continue”) in new stack
– Goto (macro-dial-one,s,17)
– Executing [[email protected]:17] GotoIf(“DAHDI/8-1”, “1?continue”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [[email protected]:25] GotoIf(“DAHDI/8-1”, “0?nodial”) in new stack
– Executing [[email protected]:26] GosubIf(“DAHDI/8-1”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/8-1”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/8-1”, “DEVICES=”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/8-1”, “1?Return()”) in new stack
– Executing [[email protected]:27] GotoIf(“DAHDI/8-1”, “1?nodial”) in new stack
– Goto (macro-dial-one,s,46)
– Executing [[email protected]:46] ExecIf(“DAHDI/8-1”, “1?Set(DIALSTATUS=NOANSWER)”) in new stack
– Executing [[email protected]:47] NoOp(“DAHDI/8-1”, “Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER”) in new stack
– Executing [[email protected]:48] MacroExit(“DAHDI/8-1”, “”) in new stack
– Executing [[email protected]:8] Set(“DAHDI/8-1”, “SV_DIALSTATUS=NOANSWER”) in new stack
– Executing [[email protected]:9] GosubIf(“DAHDI/8-1”, “0?docfu,1()”) in new stack
– Executing [[email protected]:10] GosubIf(“DAHDI/8-1”, “0?docfb,1()”) in new stack
– Executing [[email protected]:11] Set(“DAHDI/8-1”, “DIALSTATUS=NOANSWER”) in new stack
– Executing [[email protected]:12] ExecIf(“DAHDI/8-1”, “0?MacroExit()”) in new stack
– Executing [[email protected]:13] GotoIf(“DAHDI/8-1”, “1?s-NOANSWER,1”) in new stack
– Goto (macro-exten-vm,s-NOANSWER,1)
– Executing [[email protected]:1] GotoIf(“DAHDI/8-1”, “0?exit,1”) in new stack
– Executing [[email protected]:2] PlayTones(“DAHDI/8-1”, “congestion”) in new stack
– Executing [[email protected]:3] Congestion(“DAHDI/8-1”, “10”) in new stack
== Spawn extension (macro-exten-vm, s-NOANSWER, 3) exited non-zero on ‘DAHDI/8-1’ in macro ‘exten-vm’
== Spawn extension (from-internal, 1321, 2) exited non-zero on ‘DAHDI/8-1’
– Executing [[email protected]:1] Hangup(“DAHDI/8-1”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘DAHDI/8-1’
– Hanging up on ‘DAHDI/8-1’
– Hungup ‘DAHDI/8-1’

Same issue if I use SIP to SIP internal calls extensions 1313 -> 1314, see the logs below.

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] Set(“SIP/1313-00000001”, “__RINGTIMER=”) in new stack
– Executing [[email protected]:2] Macro(“SIP/1313-00000001”, “exten-vm,novm,1314,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“SIP/1313-00000001”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“SIP/1313-00000001”, “AMPUSER=1313”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/1313-00000001”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/1313-00000001”, “1?Set(REALCALLERIDNUM=1313)”) in new stack
– Executing [[email protected]:4] Set(“SIP/1313-00000001”, “AMPUSER=”) in new stack
– Executing [[email protected]:5] Set(“SIP/1313-00000001”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/1313-00000001”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [[email protected]:13] GotoIf(“SIP/1313-00000001”, “0?continue”) in new stack
– Executing [[email protected]:14] Set(“SIP/1313-00000001”, “__TTL=64”) in new stack
– Executing [[email protected]:15] GotoIf(“SIP/1313-00000001”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [[email protected]:26] Set(“SIP/1313-00000001”, “CALLERID(number)=1313”) in new stack
– Executing [[email protected]:27] Set(“SIP/1313-00000001”, “CALLERID(name)=Jun-ext”) in new stack
– Executing [[email protected]:28] Set(“SIP/1313-00000001”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“SIP/1313-00000001”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“SIP/1313-00000001”, “__EXTTOCALL=1314”) in new stack
– Executing [[email protected]:4] Set(“SIP/1313-00000001”, “__PICKUPMARK=1314”) in new stack
– Executing [[email protected]:5] Set(“SIP/1313-00000001”, “RT=”) in new stack
– Executing [[email protected]:6] Gosub(“SIP/1313-00000001”, “sub-record-check,s,1(exten,1314,)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/1313-00000001”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [[email protected]:6] Set(“SIP/1313-00000001”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/1313-00000001”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [[email protected]:10] ExecIf(“SIP/1313-00000001”, “0?Return()”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/1313-00000001”, “0?exten,1”) in new stack
– Executing [[email protected]:12] Set(“SIP/1313-00000001”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/1313-00000001”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [[email protected]:14] Set(“SIP/1313-00000001”, “NOW=1366840199”) in new stack
– Executing [[email protected]:15] Set(“SIP/1313-00000001”, “__DAY=25”) in new stack
– Executing [[email protected]:16] Set(“SIP/1313-00000001”, “__MONTH=04”) in new stack
– Executing [[email protected]:17] Set(“SIP/1313-00000001”, “__YEAR=2013”) in new stack
– Executing [[email protected]:18] Set(“SIP/1313-00000001”, “__TIMESTR=20130425-054959”) in new stack
– Executing [[email protected]:19] Set(“SIP/1313-00000001”, “__FROMEXTEN=1313”) in new stack
– Executing [[email protected]:20] Set(“SIP/1313-00000001”, “__CALLFILENAME=exten-1314-1313-20130425-054959-1366840199.15”) in new stack
– Executing [[email protected]:21] Goto(“SIP/1313-00000001”, “exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [[email protected]sub-record-check:1] GotoIf(“SIP/1313-00000001”, “0?callee”) in new stack
– Executing [[email protected]:2] Set(“SIP/1313-00000001”, “__REC_POLICY_MODE=”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/1313-00000001”, “0?caller”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/1313-00000001”, “0?callee”) in new stack
– Executing [[email protected]:5] ExecIf(“SIP/1313-00000001”, “0?Set(CALLER_PRI=):Set(CALLER_PRI=0)”) in new stack
– Executing [[email protected]:6] ExecIf(“SIP/1313-00000001”, “0?Set(CALLEE_PRI=):Set(CALLEE_PRI=0)”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/1313-00000001”, “1?caller:callee”) in new stack
– Goto (sub-record-check,exten,10)
– Executing [[email protected]:10] Set(“SIP/1313-00000001”, “__REC_POLICY_MODE=”) in new stack
– Executing [[email protected]:11] GosubIf(“SIP/1313-00000001”, “0?record,1(exten,1314,1313)”) in new stack
– Executing [[email protected]:12] Return(“SIP/1313-00000001”, “”) in new stack
– Executing [[email protected]:7] Macro(“SIP/1313-00000001”, “dial-one,tr,1314”) in new stack
– Executing [[email protected]:1] Set(“SIP/1313-00000001”, “DEXTEN=1314”) in new stack
– Executing [[email protected]:2] Set(“SIP/1313-00000001”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:3] GosubIf(“SIP/1313-00000001”, “0?screen,1()”) in new stack
– Executing [[email protected]:4] GosubIf(“SIP/1313-00000001”, “0?cf,1()”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/1313-00000001”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [[email protected]:8] GotoIf(“SIP/1313-00000001”, “0?nodial”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/1313-00000001”, “0?continue”) in new stack
– Executing [[email protected]:10] Set(“SIP/1313-00000001”, “EXTHASCW=”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/1313-00000001”, “1?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,12)
– Executing [[email protected]:12] GotoIf(“SIP/1313-00000001”, “0?docfu:skip3”) in new stack
– Goto (macro-dial-one,s,16)
– Executing [[email protected]:16] GotoIf(“SIP/1313-00000001”, “1?next2:continue”) in new stack
– Goto (macro-dial-one,s,17)
– Executing [[email protected]:17] GotoIf(“SIP/1313-00000001”, “1?continue”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [[email protected]:25] GotoIf(“SIP/1313-00000001”, “0?nodial”) in new stack
– Executing [[email protected]:26] GosubIf(“SIP/1313-00000001”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [[email protected]:1] Set(“SIP/1313-00000001”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“SIP/1313-00000001”, “DEVICES=”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/1313-00000001”, “1?Return()”) in new stack
– Executing [[email protected]:27] GotoIf(“SIP/1313-00000001”, “1?nodial”) in new stack
– Goto (macro-dial-one,s,46)
– Executing [[email protected]:46] ExecIf(“SIP/1313-00000001”, “1?Set(DIALSTATUS=NOANSWER)”) in new stack
– Executing [[email protected]:47] NoOp(“SIP/1313-00000001”, “Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER”) in new stack
– Executing [[email protected]:48] MacroExit(“SIP/1313-00000001”, “”) in new stack
– Executing [[email protected]:8] Set(“SIP/1313-00000001”, “SV_DIALSTATUS=NOANSWER”) in new stack
– Executing [[email protected]:9] GosubIf(“SIP/1313-00000001”, “0?docfu,1()”) in new stack
– Executing [[email protected]:10] GosubIf(“SIP/1313-00000001”, “0?docfb,1()”) in new stack
– Executing [[email protected]:11] Set(“SIP/1313-00000001”, “DIALSTATUS=NOANSWER”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/1313-00000001”, “0?MacroExit()”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/1313-00000001”, “1?s-NOANSWER,1”) in new stack
– Goto (macro-exten-vm,s-NOANSWER,1)
– Executing [[email protected]:1] GotoIf(“SIP/1313-00000001”, “0?exit,1”) in new stack
– Executing [[email protected]:2] PlayTones(“SIP/1313-00000001”, “congestion”) in new stack
– Executing [[email protected]:3] Congestion(“SIP/1313-00000001”, “10”) in new stack
== Spawn extension (macro-exten-vm, s-NOANSWER, 3) exited non-zero on ‘SIP/1313-00000001’ in macro ‘exten-vm’
== Spawn extension (from-internal, 1314, 2) exited non-zero on ‘SIP/1313-00000001’
– Executing [[email protected]:1] Hangup(“SIP/1313-00000001”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/1313-00000001’

I’m not a PRO in doing linux thing, but i’m eager to learn specially on how to setup FREEPBX telephony system… This is only for my test experiment.

Thank you so much in advance for your help.
Rakstar…

Anyone there?

Thanks again…

The call shows coming from a PRI channel. If it is an analog phone it should be an FXS.

Don’t know what you are trying to do.