1 | изначальная версия редактировать | |
второй день бьюсь, и не могу заставить spa3102 послать callerid в asterisk...
сам spa3102 номер определяет и показывает в веб морде.
при вызове в asterisk появляется следущее:
== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [363836@from-pstn:1] Set("SIP/100-00000036", "__FROM_DID=363836") in new stack -- Executing [363836@from-pstn:2] Gosub("SIP/100-00000036", "app-blacklist-check,s,1()") in new stack -- Executing [s@app-blacklist-check:1] GotoIf("SIP/100-00000036", "0?blacklisted") in new stack -- Executing [s@app-blacklist-check:2] Set("SIP/100-00000036", "CALLED_BLACKLIST=1") in new stack -- Executing [s@app-blacklist-check:3] Return("SIP/100-00000036", "") in new stack -- Executing [363836@from-pstn:3] Set("SIP/100-00000036", "CDR(did)=363836") in new stack -- Executing [363836@from-pstn:4] Set("SIP/100-00000036", "__CALLINGPRES_SV=allowed_not_screened") in new stack -- Executing [363836@from-pstn:5] Set("SIP/100-00000036", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [363836@from-pstn:6] Goto("SIP/100-00000036", "from-did-direct,101,1") in new stack -- Goto (from-did-direct,101,1) -- Executing [101@from-did-direct:1] Set("SIP/100-00000036", "__RINGTIMER=15") in new stack -- Executing [101@from-did-direct:2] Macro("SIP/100-00000036", "exten-vm,novm,101,0,0,0") in new stack -- Executing [s@macro-exten-vm:1] Macro("SIP/100-00000036", "user-callerid,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/100-00000036", "AMPUSER=100") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("SIP/100-00000036", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("SIP/100-00000036", "1?Set(REALCALLERIDNUM=100)") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/100-00000036", "AMPUSER=100") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/100-00000036", "AMPUSERCIDNAME=100") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/100-00000036", "0?report") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/100-00000036", "AMPUSERCID=100") in new stack -- Executing [s@macro-user-callerid:8] Set("SIP/100-00000036", "CALLERID(all)="100" <100>") in new stack -- Executing [s@macro-user-callerid:9] GotoIf("SIP/100-00000036", "0?limit") in new stack -- Executing [s@macro-user-callerid:10] ExecIf("SIP/100-00000036", "0?Set(GROUP(concurrency_limit)=100)") in new stack -- Executing [s@macro-user-callerid:11] ExecIf("SIP/100-00000036", "0?Set(CHANNEL(language)=)") in new stack -- Executing [s@macro-user-callerid:12] GosubIf("SIP/100-00000036", "7?sub-ccss,s,1(macro-exten-vm,363836)") in new stack -- Executing [s@sub-ccss:1] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [s@sub-ccss:2] Set("SIP/100-00000036", "CCSS_SETUP=TRUE") in new stack -- Executing [s@sub-ccss:3] GosubIf("SIP/100-00000036", "0?monitor_config,1(macro-exten-vm,363836):monitor_default,1(macro-exten-vm,363836)") in new stack -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/100-00000036", "0?is_exten") in new stack -- Executing [monitor_default@sub-ccss:2] StackPop("SIP/100-00000036", "") in new stack -- Executing [monitor_default@sub-ccss:3] Return("SIP/100-00000036", "FALSE") in new stack -- Executing [s@macro-user-callerid:13] GotoIf("SIP/100-00000036", "0?continue") in new stack -- Executing [s@macro-user-callerid:14] Set("SIP/100-00000036", "__TTL=64") in new stack -- Executing [s@macro-user-callerid:15] GotoIf("SIP/100-00000036", "1?continue") in new stack -- Goto (macro-user-callerid,s,26) -- Executing [s@macro-user-callerid:26] Set("SIP/100-00000036", "CALLERID(number)=100") in new stack -- Executing [s@macro-user-callerid:27] Set("SIP/100-00000036", "CALLERID(name)=100") in new stack -- Executing [s@macro-user-callerid:28] Set("SIP/100-00000036", "CHANNEL(language)=en") in new stack -- Executing [s@macro-exten-vm:2] Set("SIP/100-00000036", "RingGroupMethod=none") in new stack -- Executing [s@macro-exten-vm:3] Set("SIP/100-00000036", "__EXTTOCALL=101") in new stack -- Executing [s@macro-exten-vm:4] Set("SIP/100-00000036", "__PICKUPMARK=101") in new stack -- Executing [s@macro-exten-vm:5] Set("SIP/100-00000036", "RT=") in new stack -- Executing [s@macro-exten-vm:6] Gosub("SIP/100-00000036", "sub-record-check,s,1(exten,101,)") in new stack -- Executing [s@sub-record-check:1] GotoIf("SIP/100-00000036", "1?check") in new stack -- Goto (sub-record-check,s,6) -- Executing [s@sub-record-check:6] Set("SIP/100-00000036", "__MON_FMT=wav") in new stack -- Executing [s@sub-record-check:7] GotoIf("SIP/100-00000036", "1?next") in new stack -- Goto (sub-record-check,s,10) -- Executing [s@sub-record-check:10] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [s@sub-record-check:11] GotoIf("SIP/100-00000036", "0?exten,1") in new stack -- Executing [s@sub-record-check:12] Set("SIP/100-00000036", "__REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:13] ExecIf("SIP/100-00000036", "0?Set(__REC_POLICY_MODE=)") in new stack -- Executing [s@sub-record-check:14] Set("SIP/100-00000036", "NOW=1346584024") in new stack -- Executing [s@sub-record-check:15] Set("SIP/100-00000036", "__DAY=02") in new stack -- Executing [s@sub-record-check:16] Set("SIP/100-00000036", "__MONTH=09") in new stack -- Executing [s@sub-record-check:17] Set("SIP/100-00000036", "__YEAR=2012") in new stack -- Executing [s@sub-record-check:18] Set("SIP/100-00000036", "__TIMESTR=20120902-150704") in new stack -- Executing [s@sub-record-check:19] Set("SIP/100-00000036", "__FROMEXTEN=100") in new stack -- Executing [s@sub-record-check:20] Set("SIP/100-00000036", "__CALLFILENAME=exten-101-100-20120902-150704-1346584024.54") in new stack -- Executing [s@sub-record-check:21] Goto("SIP/100-00000036", "exten,1") in new stack -- Goto (sub-record-check,exten,1) -- Executing [exten@sub-record-check:1] GotoIf("SIP/100-00000036", "0?callee") in new stack -- Executing [exten@sub-record-check:2] Set("SIP/100-00000036", "__REC_POLICY_MODE=dontcare") in new stack -- Executing [exten@sub-record-check:3] GotoIf("SIP/100-00000036", "1?caller") in new stack -- Goto (sub-record-check,exten,10) -- Executing [exten@sub-record-check:10] Set("SIP/100-00000036", "REC_POLICY_MODE=dontcare") in new stack -- Executing [exten@sub-record-check:11] GosubIf("SIP/100-00000036", "0?record,1(exten,101,100)") in new stack -- Executing [exten@sub-record-check:12] Return("SIP/100-00000036", "") in new stack -- Executing [s@macro-exten-vm:7] GotoIf("SIP/100-00000036", "6?macrodial") in new stack -- Goto (macro-exten-vm,s,13) -- Executing [s@macro-exten-vm:13] GosubIf("SIP/100-00000036", "0?clrheader,1()") in new stack -- Executing [s@macro-exten-vm:14] Macro("SIP/100-00000036", "dial-one,,tr,101") in new stack -- Executing [s@macro-dial-one:1] Set("SIP/100-00000036", "DEXTEN=101") in new stack -- Executing [s@macro-dial-one:2] Set("SIP/100-00000036", "DIALSTATUS_CW=") in new stack -- Executing [s@macro-dial-one:3] GosubIf("SIP/100-00000036", "0?screen,1()") in new stack -- Executing [s@macro-dial-one:4] GosubIf("SIP/100-00000036", "0?cf,1()") in new stack -- Executing [s@macro-dial-one:5] GotoIf("SIP/100-00000036", "1?skip1") in new stack -- Goto (macro-dial-one,s,8) -- Executing [s@macro-dial-one:8] GotoIf("SIP/100-00000036", "0?nodial") in new stack -- Executing [s@macro-dial-one:9] GotoIf("SIP/100-00000036", "0?continue") in new stack -- Executing [s@macro-dial-one:10] Set("SIP/100-00000036", "EXTHASCW=ENABLED") in new stack -- Executing [s@macro-dial-one:11] GotoIf("SIP/100-00000036", "0?next1:cwinusebusy") in new stack -- Goto (macro-dial-one,s,23) -- Executing [s@macro-dial-one:23] GotoIf("SIP/100-00000036", "1?next3:continue") in new stack -- Goto (macro-dial-one,s,24) -- Executing [s@macro-dial-one:24] ExecIf("SIP/100-00000036", "0?Set(DIALSTATUS_CW=BUSY)") in new stack -- Executing [s@macro-dial-one:25] GotoIf("SIP/100-00000036", "0?nodial") in new stack -- Executing [s@macro-dial-one:26] GosubIf("SIP/100-00000036", "1?dstring,1():dlocal,1()") in new stack -- Executing [dstring@macro-dial-one:1] Set("SIP/100-00000036", "DSTRING=") in new stack -- Executing [dstring@macro-dial-one:2] Set("SIP/100-00000036", "DEVICES=101") in new stack -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [dstring@macro-dial-one:4] ExecIf("SIP/100-00000036", "0?Set(DEVICES=01)") in new stack -- Executing [dstring@macro-dial-one:5] Set("SIP/100-00000036", "LOOPCNT=1") in new stack -- Executing [dstring@macro-dial-one:6] Set("SIP/100-00000036", "ITER=1") in new stack -- Executing [dstring@macro-dial-one:7] Set("SIP/100-00000036", "THISDIAL=SIP/101") in new stack -- Executing [dstring@macro-dial-one:8] GosubIf("SIP/100-00000036", "1?zap2dahdi,1()") in new stack -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/100-00000036", "NEWDIAL=") in new stack -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/100-00000036", "LOOPCNT2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/100-00000036", "ITER2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/100-00000036", "THISPART2=SIP/101") in new stack -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/100-00000036", "0?Set(THISPART2=DAHDI/101)") in new stack -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/100-00000036", "NEWDIAL=SIP/101&") in new stack -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/100-00000036", "ITER2=2") in new stack -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/100-00000036", "0?begin2") in new stack -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/100-00000036", "THISDIAL=SIP/101") in new stack -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/100-00000036", "") in new stack -- Executing [dstring@macro-dial-one:9] Set("SIP/100-00000036", "DSTRING=SIP/101&") in new stack -- Executing [dstring@macro-dial-one:10] Set("SIP/100-00000036", "ITER=2") in new stack -- Executing [dstring@macro-dial-one:11] GotoIf("SIP/100-00000036", "0?begin") in new stack -- Executing [dstring@macro-dial-one:12] Set("SIP/100-00000036", "DSTRING=SIP/101") in new stack -- Executing [dstring@macro-dial-one:13] Return("SIP/100-00000036", "") in new stack -- Executing [s@macro-dial-one:27] GotoIf("SIP/100-00000036", "0?nodial") in new stack -- Executing [s@macro-dial-one:28] GotoIf("SIP/100-00000036", "0?skiptrace") in new stack -- Executing [s@macro-dial-one:29] GosubIf("SIP/100-00000036", "1?ctset,1():ctclear,1()") in new stack -- Executing [ctset@macro-dial-one:1] Set("SIP/100-00000036", "DB(CALLTRACE/101)=100") in new stack -- Executing [ctset@macro-dial-one:2] Return("SIP/100-00000036", "") in new stack -- Executing [s@macro-dial-one:30] Set("SIP/100-00000036", "D_OPTIONS=tr") in new stack -- Executing [s@macro-dial-one:31] ExecIf("SIP/100-00000036", "0?SIPAddHeader(Alert-Info: )") in new stack -- Executing [s@macro-dial-one:32] ExecIf("SIP/100-00000036", "0?SIPAddHeader()") in new stack -- Executing [s@macro-dial-one:33] ExecIf("SIP/100-00000036", "0?Set(CHANNEL(musicclass)=)") in new stack -- Executing [s@macro-dial-one:34] GosubIf("SIP/100-00000036", "0?qwait,1()") in new stack -- Executing [s@macro-dial-one:35] Set("SIP/100-00000036", "__CWIGNORE=") in new stack -- Executing [s@macro-dial-one:36] Set("SIP/100-00000036", "__KEEPCID=TRUE") in new stack -- Executing [s@macro-dial-one:37] GotoIf("SIP/100-00000036", "0?usegoto,1") in new stack -- Executing [s@macro-dial-one:38] GotoIf("SIP/100-00000036", "0?godial") in new stack -- Executing [s@macro-dial-one:39] Set("SIP/100-00000036", "CONNECTEDLINE(name,i)=GOSTINNAYA") in new stack -- Executing [s@macro-dial-one:40] Set("SIP/100-00000036", "CONNECTEDLINE(num)=101") in new stack -- Executing [s@macro-dial-one:41] Set("SIP/100-00000036", "D_OPTIONS=trI") in new stack -- Executing [s@macro-dial-one:42] Dial("SIP/100-00000036", "SIP/101,,trI") in new stack == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Called SIP/101 -- SIP/101-00000037 is ringing
из всего этого смущает строка -
-- Executing [s@macro-user-callerid:8] Set("SIP/100-00000036", "CALLERID(all)="100" <100>"
походу на ней callerid и затирает asterisk ?
эстеншен на spa3102 заведен - 100.
при звонка из pstn, телефон определяет callerid как 100.
sip.conf
; экст для spa3102
[100]
secret=abcd123
dtmfmode=rfc2833
canreinvite=no
context=from-pstn
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/100
mailbox=100@device
callerid=device <100>
callcounter=yes
faxdetect=no
; транк к спа3102
[from-pstn-363836]
username=100
type=friend
secret=zY94325t
port=5060
host=dynamic
context=from-trunk
помогите найти проблему...
2 | No.2 Revision редактировать |
второй день бьюсь, и не могу заставить spa3102 послать callerid в asterisk...
сам spa3102 номер определяет и показывает в веб морде.
при вызове в asterisk появляется следущее:
== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [363836@from-pstn:1] Set("SIP/100-00000036", "__FROM_DID=363836") in new stack -- Executing [363836@from-pstn:2] Gosub("SIP/100-00000036", "app-blacklist-check,s,1()") in new stack -- Executing [s@app-blacklist-check:1] GotoIf("SIP/100-00000036", "0?blacklisted") in new stack -- Executing [s@app-blacklist-check:2] Set("SIP/100-00000036", "CALLED_BLACKLIST=1") in new stack -- Executing [s@app-blacklist-check:3] Return("SIP/100-00000036", "") in new stack -- Executing [363836@from-pstn:3] Set("SIP/100-00000036", "CDR(did)=363836") in new stack -- Executing [363836@from-pstn:4] Set("SIP/100-00000036", "__CALLINGPRES_SV=allowed_not_screened") in new stack -- Executing [363836@from-pstn:5] Set("SIP/100-00000036", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [363836@from-pstn:6] Goto("SIP/100-00000036", "from-did-direct,101,1") in new stack -- Goto (from-did-direct,101,1) -- Executing [101@from-did-direct:1] Set("SIP/100-00000036", "__RINGTIMER=15") in new stack -- Executing [101@from-did-direct:2] Macro("SIP/100-00000036", "exten-vm,novm,101,0,0,0") in new stack -- Executing [s@macro-exten-vm:1] Macro("SIP/100-00000036", "user-callerid,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/100-00000036", "AMPUSER=100") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("SIP/100-00000036", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("SIP/100-00000036", "1?Set(REALCALLERIDNUM=100)") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/100-00000036", "AMPUSER=100") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/100-00000036", "AMPUSERCIDNAME=100") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/100-00000036", "0?report") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/100-00000036", "AMPUSERCID=100") in new stack -- Executing [s@macro-user-callerid:8] Set("SIP/100-00000036", "CALLERID(all)="100" <100>") in new stack -- Executing [s@macro-user-callerid:9] GotoIf("SIP/100-00000036", "0?limit") in new stack -- Executing [s@macro-user-callerid:10] ExecIf("SIP/100-00000036", "0?Set(GROUP(concurrency_limit)=100)") in new stack -- Executing [s@macro-user-callerid:11] ExecIf("SIP/100-00000036", "0?Set(CHANNEL(language)=)") in new stack -- Executing [s@macro-user-callerid:12] GosubIf("SIP/100-00000036", "7?sub-ccss,s,1(macro-exten-vm,363836)") in new stack -- Executing [s@sub-ccss:1] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [s@sub-ccss:2] Set("SIP/100-00000036", "CCSS_SETUP=TRUE") in new stack -- Executing [s@sub-ccss:3] GosubIf("SIP/100-00000036", "0?monitor_config,1(macro-exten-vm,363836):monitor_default,1(macro-exten-vm,363836)") in new stack -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/100-00000036", "0?is_exten") in new stack -- Executing [monitor_default@sub-ccss:2] StackPop("SIP/100-00000036", "") in new stack -- Executing [monitor_default@sub-ccss:3] Return("SIP/100-00000036", "FALSE") in new stack -- Executing [s@macro-user-callerid:13] GotoIf("SIP/100-00000036", "0?continue") in new stack -- Executing [s@macro-user-callerid:14] Set("SIP/100-00000036", "__TTL=64") in new stack -- Executing [s@macro-user-callerid:15] GotoIf("SIP/100-00000036", "1?continue") in new stack -- Goto (macro-user-callerid,s,26) -- Executing [s@macro-user-callerid:26] Set("SIP/100-00000036", "CALLERID(number)=100") in new stack -- Executing [s@macro-user-callerid:27] Set("SIP/100-00000036", "CALLERID(name)=100") in new stack -- Executing [s@macro-user-callerid:28] Set("SIP/100-00000036", "CHANNEL(language)=en") in new stack -- Executing [s@macro-exten-vm:2] Set("SIP/100-00000036", "RingGroupMethod=none") in new stack -- Executing [s@macro-exten-vm:3] Set("SIP/100-00000036", "__EXTTOCALL=101") in new stack -- Executing [s@macro-exten-vm:4] Set("SIP/100-00000036", "__PICKUPMARK=101") in new stack -- Executing [s@macro-exten-vm:5] Set("SIP/100-00000036", "RT=") in new stack -- Executing [s@macro-exten-vm:6] Gosub("SIP/100-00000036", "sub-record-check,s,1(exten,101,)") in new stack -- Executing [s@sub-record-check:1] GotoIf("SIP/100-00000036", "1?check") in new stack -- Goto (sub-record-check,s,6) -- Executing [s@sub-record-check:6] Set("SIP/100-00000036", "__MON_FMT=wav") in new stack -- Executing [s@sub-record-check:7] GotoIf("SIP/100-00000036", "1?next") in new stack -- Goto (sub-record-check,s,10) -- Executing [s@sub-record-check:10] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [s@sub-record-check:11] GotoIf("SIP/100-00000036", "0?exten,1") in new stack -- Executing [s@sub-record-check:12] Set("SIP/100-00000036", "__REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:13] ExecIf("SIP/100-00000036", "0?Set(__REC_POLICY_MODE=)") in new stack -- Executing [s@sub-record-check:14] Set("SIP/100-00000036", "NOW=1346584024") in new stack -- Executing [s@sub-record-check:15] Set("SIP/100-00000036", "__DAY=02") in new stack -- Executing [s@sub-record-check:16] Set("SIP/100-00000036", "__MONTH=09") in new stack -- Executing [s@sub-record-check:17] Set("SIP/100-00000036", "__YEAR=2012") in new stack -- Executing [s@sub-record-check:18] Set("SIP/100-00000036", "__TIMESTR=20120902-150704") in new stack -- Executing [s@sub-record-check:19] Set("SIP/100-00000036", "__FROMEXTEN=100") in new stack -- Executing [s@sub-record-check:20] Set("SIP/100-00000036", "__CALLFILENAME=exten-101-100-20120902-150704-1346584024.54") in new stack -- Executing [s@sub-record-check:21] Goto("SIP/100-00000036", "exten,1") in new stack -- Goto (sub-record-check,exten,1) -- Executing [exten@sub-record-check:1] GotoIf("SIP/100-00000036", "0?callee") in new stack -- Executing [exten@sub-record-check:2] Set("SIP/100-00000036", "__REC_POLICY_MODE=dontcare") in new stack -- Executing [exten@sub-record-check:3] GotoIf("SIP/100-00000036", "1?caller") in new stack -- Goto (sub-record-check,exten,10) -- Executing [exten@sub-record-check:10] Set("SIP/100-00000036", "REC_POLICY_MODE=dontcare") in new stack -- Executing [exten@sub-record-check:11] GosubIf("SIP/100-00000036", "0?record,1(exten,101,100)") in new stack -- Executing [exten@sub-record-check:12] Return("SIP/100-00000036", "") in new stack -- Executing [s@macro-exten-vm:7] GotoIf("SIP/100-00000036", "6?macrodial") in new stack -- Goto (macro-exten-vm,s,13) -- Executing [s@macro-exten-vm:13] GosubIf("SIP/100-00000036", "0?clrheader,1()") in new stack -- Executing [s@macro-exten-vm:14] Macro("SIP/100-00000036", "dial-one,,tr,101") in new stack -- Executing [s@macro-dial-one:1] Set("SIP/100-00000036", "DEXTEN=101") in new stack -- Executing [s@macro-dial-one:2] Set("SIP/100-00000036", "DIALSTATUS_CW=") in new stack -- Executing [s@macro-dial-one:3] GosubIf("SIP/100-00000036", "0?screen,1()") in new stack -- Executing [s@macro-dial-one:4] GosubIf("SIP/100-00000036", "0?cf,1()") in new stack -- Executing [s@macro-dial-one:5] GotoIf("SIP/100-00000036", "1?skip1") in new stack -- Goto (macro-dial-one,s,8) -- Executing [s@macro-dial-one:8] GotoIf("SIP/100-00000036", "0?nodial") in new stack -- Executing [s@macro-dial-one:9] GotoIf("SIP/100-00000036", "0?continue") in new stack -- Executing [s@macro-dial-one:10] Set("SIP/100-00000036", "EXTHASCW=ENABLED") in new stack -- Executing [s@macro-dial-one:11] GotoIf("SIP/100-00000036", "0?next1:cwinusebusy") in new stack -- Goto (macro-dial-one,s,23) -- Executing [s@macro-dial-one:23] GotoIf("SIP/100-00000036", "1?next3:continue") in new stack -- Goto (macro-dial-one,s,24) -- Executing [s@macro-dial-one:24] ExecIf("SIP/100-00000036", "0?Set(DIALSTATUS_CW=BUSY)") in new stack -- Executing [s@macro-dial-one:25] GotoIf("SIP/100-00000036", "0?nodial") in new stack -- Executing [s@macro-dial-one:26] GosubIf("SIP/100-00000036", "1?dstring,1():dlocal,1()") in new stack -- Executing [dstring@macro-dial-one:1] Set("SIP/100-00000036", "DSTRING=") in new stack -- Executing [dstring@macro-dial-one:2] Set("SIP/100-00000036", "DEVICES=101") in new stack -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [dstring@macro-dial-one:4] ExecIf("SIP/100-00000036", "0?Set(DEVICES=01)") in new stack -- Executing [dstring@macro-dial-one:5] Set("SIP/100-00000036", "LOOPCNT=1") in new stack -- Executing [dstring@macro-dial-one:6] Set("SIP/100-00000036", "ITER=1") in new stack -- Executing [dstring@macro-dial-one:7] Set("SIP/100-00000036", "THISDIAL=SIP/101") in new stack -- Executing [dstring@macro-dial-one:8] GosubIf("SIP/100-00000036", "1?zap2dahdi,1()") in new stack -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/100-00000036", "NEWDIAL=") in new stack -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/100-00000036", "LOOPCNT2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/100-00000036", "ITER2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/100-00000036", "THISPART2=SIP/101") in new stack -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/100-00000036", "0?Set(THISPART2=DAHDI/101)") in new stack -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/100-00000036", "NEWDIAL=SIP/101&") in new stack -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/100-00000036", "ITER2=2") in new stack -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/100-00000036", "0?begin2") in new stack -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/100-00000036", "THISDIAL=SIP/101") in new stack -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/100-00000036", "") in new stack -- Executing [dstring@macro-dial-one:9] Set("SIP/100-00000036", "DSTRING=SIP/101&") in new stack -- Executing [dstring@macro-dial-one:10] Set("SIP/100-00000036", "ITER=2") in new stack -- Executing [dstring@macro-dial-one:11] GotoIf("SIP/100-00000036", "0?begin") in new stack -- Executing [dstring@macro-dial-one:12] Set("SIP/100-00000036", "DSTRING=SIP/101") in new stack -- Executing [dstring@macro-dial-one:13] Return("SIP/100-00000036", "") in new stack -- Executing [s@macro-dial-one:27] GotoIf("SIP/100-00000036", "0?nodial") in new stack -- Executing [s@macro-dial-one:28] GotoIf("SIP/100-00000036", "0?skiptrace") in new stack -- Executing [s@macro-dial-one:29] GosubIf("SIP/100-00000036", "1?ctset,1():ctclear,1()") in new stack -- Executing [ctset@macro-dial-one:1] Set("SIP/100-00000036", "DB(CALLTRACE/101)=100") in new stack -- Executing [ctset@macro-dial-one:2] Return("SIP/100-00000036", "") in new stack -- Executing [s@macro-dial-one:30] Set("SIP/100-00000036", "D_OPTIONS=tr") in new stack -- Executing [s@macro-dial-one:31] ExecIf("SIP/100-00000036", "0?SIPAddHeader(Alert-Info: )") in new stack -- Executing [s@macro-dial-one:32] ExecIf("SIP/100-00000036", "0?SIPAddHeader()") in new stack -- Executing [s@macro-dial-one:33] ExecIf("SIP/100-00000036", "0?Set(CHANNEL(musicclass)=)") in new stack -- Executing [s@macro-dial-one:34] GosubIf("SIP/100-00000036", "0?qwait,1()") in new stack -- Executing [s@macro-dial-one:35] Set("SIP/100-00000036", "__CWIGNORE=") in new stack -- Executing [s@macro-dial-one:36] Set("SIP/100-00000036", "__KEEPCID=TRUE") in new stack -- Executing [s@macro-dial-one:37] GotoIf("SIP/100-00000036", "0?usegoto,1") in new stack -- Executing [s@macro-dial-one:38] GotoIf("SIP/100-00000036", "0?godial") in new stack -- Executing [s@macro-dial-one:39] Set("SIP/100-00000036", "CONNECTEDLINE(name,i)=GOSTINNAYA") in new stack -- Executing [s@macro-dial-one:40] Set("SIP/100-00000036", "CONNECTEDLINE(num)=101") in new stack -- Executing [s@macro-dial-one:41] Set("SIP/100-00000036", "D_OPTIONS=trI") in new stack -- Executing [s@macro-dial-one:42] Dial("SIP/100-00000036", "SIP/101,,trI") in new stack == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Called SIP/101 -- SIP/101-00000037 is ringing
из всего этого смущает строка -
-- Executing [s@macro-user-callerid:8] Set("SIP/100-00000036", "CALLERID(all)="100" <100>"
походу на ней callerid и затирает asterisk ?
эстеншен на spa3102 заведен - 100.
при звонка из pstn, телефон определяет callerid как 100.
sip.conf
; экст для spa3102
[100]
secret=abcd123
dtmfmode=rfc2833
canreinvite=no
context=from-pstn
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/100
mailbox=100@device
callerid=device <100>
callcounter=yes
faxdetect=no
; транк к спа3102
[from-pstn-363836]
username=100
type=friend
secret=zY94325t
secret=abcd123
port=5060
host=dynamic
context=from-trunk
помогите найти проблему...
3 | No.3 Revision редактировать |
второй день бьюсь, и не могу заставить spa3102 послать asterisk показать callerid в asterisk...полученный от spa3102.
сам spa3102 номер определяет и показывает в веб морде.
при вызове в asterisk появляется следущее:
== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [363836@from-pstn:1] Set("SIP/100-00000036", "__FROM_DID=363836") in new stack -- Executing [363836@from-pstn:2] Gosub("SIP/100-00000036", "app-blacklist-check,s,1()") in new stack -- Executing [s@app-blacklist-check:1] GotoIf("SIP/100-00000036", "0?blacklisted") in new stack -- Executing [s@app-blacklist-check:2] Set("SIP/100-00000036", "CALLED_BLACKLIST=1") in new stack -- Executing [s@app-blacklist-check:3] Return("SIP/100-00000036", "") in new stack -- Executing [363836@from-pstn:3] Set("SIP/100-00000036", "CDR(did)=363836") in new stack -- Executing [363836@from-pstn:4] Set("SIP/100-00000036", "__CALLINGPRES_SV=allowed_not_screened") in new stack -- Executing [363836@from-pstn:5] Set("SIP/100-00000036", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [363836@from-pstn:6] Goto("SIP/100-00000036", "from-did-direct,101,1") in new stack -- Goto (from-did-direct,101,1) -- Executing [101@from-did-direct:1] Set("SIP/100-00000036", "__RINGTIMER=15") in new stack -- Executing [101@from-did-direct:2] Macro("SIP/100-00000036", "exten-vm,novm,101,0,0,0") in new stack -- Executing [s@macro-exten-vm:1] Macro("SIP/100-00000036", "user-callerid,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/100-00000036", "AMPUSER=100") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("SIP/100-00000036", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("SIP/100-00000036", "1?Set(REALCALLERIDNUM=100)") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/100-00000036", "AMPUSER=100") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/100-00000036", "AMPUSERCIDNAME=100") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/100-00000036", "0?report") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/100-00000036", "AMPUSERCID=100") in new stack -- Executing [s@macro-user-callerid:8] Set("SIP/100-00000036", "CALLERID(all)="100" <100>") in new stack -- Executing [s@macro-user-callerid:9] GotoIf("SIP/100-00000036", "0?limit") in new stack -- Executing [s@macro-user-callerid:10] ExecIf("SIP/100-00000036", "0?Set(GROUP(concurrency_limit)=100)") in new stack -- Executing [s@macro-user-callerid:11] ExecIf("SIP/100-00000036", "0?Set(CHANNEL(language)=)") in new stack -- Executing [s@macro-user-callerid:12] GosubIf("SIP/100-00000036", "7?sub-ccss,s,1(macro-exten-vm,363836)") in new stack -- Executing [s@sub-ccss:1] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [s@sub-ccss:2] Set("SIP/100-00000036", "CCSS_SETUP=TRUE") in new stack -- Executing [s@sub-ccss:3] GosubIf("SIP/100-00000036", "0?monitor_config,1(macro-exten-vm,363836):monitor_default,1(macro-exten-vm,363836)") in new stack -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/100-00000036", "0?is_exten") in new stack -- Executing [monitor_default@sub-ccss:2] StackPop("SIP/100-00000036", "") in new stack -- Executing [monitor_default@sub-ccss:3] Return("SIP/100-00000036", "FALSE") in new stack -- Executing [s@macro-user-callerid:13] GotoIf("SIP/100-00000036", "0?continue") in new stack -- Executing [s@macro-user-callerid:14] Set("SIP/100-00000036", "__TTL=64") in new stack -- Executing [s@macro-user-callerid:15] GotoIf("SIP/100-00000036", "1?continue") in new stack -- Goto (macro-user-callerid,s,26) -- Executing [s@macro-user-callerid:26] Set("SIP/100-00000036", "CALLERID(number)=100") in new stack -- Executing [s@macro-user-callerid:27] Set("SIP/100-00000036", "CALLERID(name)=100") in new stack -- Executing [s@macro-user-callerid:28] Set("SIP/100-00000036", "CHANNEL(language)=en") in new stack -- Executing [s@macro-exten-vm:2] Set("SIP/100-00000036", "RingGroupMethod=none") in new stack -- Executing [s@macro-exten-vm:3] Set("SIP/100-00000036", "__EXTTOCALL=101") in new stack -- Executing [s@macro-exten-vm:4] Set("SIP/100-00000036", "__PICKUPMARK=101") in new stack -- Executing [s@macro-exten-vm:5] Set("SIP/100-00000036", "RT=") in new stack -- Executing [s@macro-exten-vm:6] Gosub("SIP/100-00000036", "sub-record-check,s,1(exten,101,)") in new stack -- Executing [s@sub-record-check:1] GotoIf("SIP/100-00000036", "1?check") in new stack -- Goto (sub-record-check,s,6) -- Executing [s@sub-record-check:6] Set("SIP/100-00000036", "__MON_FMT=wav") in new stack -- Executing [s@sub-record-check:7] GotoIf("SIP/100-00000036", "1?next") in new stack -- Goto (sub-record-check,s,10) -- Executing [s@sub-record-check:10] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [s@sub-record-check:11] GotoIf("SIP/100-00000036", "0?exten,1") in new stack -- Executing [s@sub-record-check:12] Set("SIP/100-00000036", "__REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:13] ExecIf("SIP/100-00000036", "0?Set(__REC_POLICY_MODE=)") in new stack -- Executing [s@sub-record-check:14] Set("SIP/100-00000036", "NOW=1346584024") in new stack -- Executing [s@sub-record-check:15] Set("SIP/100-00000036", "__DAY=02") in new stack -- Executing [s@sub-record-check:16] Set("SIP/100-00000036", "__MONTH=09") in new stack -- Executing [s@sub-record-check:17] Set("SIP/100-00000036", "__YEAR=2012") in new stack -- Executing [s@sub-record-check:18] Set("SIP/100-00000036", "__TIMESTR=20120902-150704") in new stack -- Executing [s@sub-record-check:19] Set("SIP/100-00000036", "__FROMEXTEN=100") in new stack -- Executing [s@sub-record-check:20] Set("SIP/100-00000036", "__CALLFILENAME=exten-101-100-20120902-150704-1346584024.54") in new stack -- Executing [s@sub-record-check:21] Goto("SIP/100-00000036", "exten,1") in new stack -- Goto (sub-record-check,exten,1) -- Executing [exten@sub-record-check:1] GotoIf("SIP/100-00000036", "0?callee") in new stack -- Executing [exten@sub-record-check:2] Set("SIP/100-00000036", "__REC_POLICY_MODE=dontcare") in new stack -- Executing [exten@sub-record-check:3] GotoIf("SIP/100-00000036", "1?caller") in new stack -- Goto (sub-record-check,exten,10) -- Executing [exten@sub-record-check:10] Set("SIP/100-00000036", "REC_POLICY_MODE=dontcare") in new stack -- Executing [exten@sub-record-check:11] GosubIf("SIP/100-00000036", "0?record,1(exten,101,100)") in new stack -- Executing [exten@sub-record-check:12] Return("SIP/100-00000036", "") in new stack -- Executing [s@macro-exten-vm:7] GotoIf("SIP/100-00000036", "6?macrodial") in new stack -- Goto (macro-exten-vm,s,13) -- Executing [s@macro-exten-vm:13] GosubIf("SIP/100-00000036", "0?clrheader,1()") in new stack -- Executing [s@macro-exten-vm:14] Macro("SIP/100-00000036", "dial-one,,tr,101") in new stack -- Executing [s@macro-dial-one:1] Set("SIP/100-00000036", "DEXTEN=101") in new stack -- Executing [s@macro-dial-one:2] Set("SIP/100-00000036", "DIALSTATUS_CW=") in new stack -- Executing [s@macro-dial-one:3] GosubIf("SIP/100-00000036", "0?screen,1()") in new stack -- Executing [s@macro-dial-one:4] GosubIf("SIP/100-00000036", "0?cf,1()") in new stack -- Executing [s@macro-dial-one:5] GotoIf("SIP/100-00000036", "1?skip1") in new stack -- Goto (macro-dial-one,s,8) -- Executing [s@macro-dial-one:8] GotoIf("SIP/100-00000036", "0?nodial") in new stack -- Executing [s@macro-dial-one:9] GotoIf("SIP/100-00000036", "0?continue") in new stack -- Executing [s@macro-dial-one:10] Set("SIP/100-00000036", "EXTHASCW=ENABLED") in new stack -- Executing [s@macro-dial-one:11] GotoIf("SIP/100-00000036", "0?next1:cwinusebusy") in new stack -- Goto (macro-dial-one,s,23) -- Executing [s@macro-dial-one:23] GotoIf("SIP/100-00000036", "1?next3:continue") in new stack -- Goto (macro-dial-one,s,24) -- Executing [s@macro-dial-one:24] ExecIf("SIP/100-00000036", "0?Set(DIALSTATUS_CW=BUSY)") in new stack -- Executing [s@macro-dial-one:25] GotoIf("SIP/100-00000036", "0?nodial") in new stack -- Executing [s@macro-dial-one:26] GosubIf("SIP/100-00000036", "1?dstring,1():dlocal,1()") in new stack -- Executing [dstring@macro-dial-one:1] Set("SIP/100-00000036", "DSTRING=") in new stack -- Executing [dstring@macro-dial-one:2] Set("SIP/100-00000036", "DEVICES=101") in new stack -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [dstring@macro-dial-one:4] ExecIf("SIP/100-00000036", "0?Set(DEVICES=01)") in new stack -- Executing [dstring@macro-dial-one:5] Set("SIP/100-00000036", "LOOPCNT=1") in new stack -- Executing [dstring@macro-dial-one:6] Set("SIP/100-00000036", "ITER=1") in new stack -- Executing [dstring@macro-dial-one:7] Set("SIP/100-00000036", "THISDIAL=SIP/101") in new stack -- Executing [dstring@macro-dial-one:8] GosubIf("SIP/100-00000036", "1?zap2dahdi,1()") in new stack -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/100-00000036", "0?Return()") in new stack -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/100-00000036", "NEWDIAL=") in new stack -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/100-00000036", "LOOPCNT2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/100-00000036", "ITER2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/100-00000036", "THISPART2=SIP/101") in new stack -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/100-00000036", "0?Set(THISPART2=DAHDI/101)") in new stack -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/100-00000036", "NEWDIAL=SIP/101&") in new stack -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/100-00000036", "ITER2=2") in new stack -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/100-00000036", "0?begin2") in new stack -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/100-00000036", "THISDIAL=SIP/101") in new stack -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/100-00000036", "") in new stack -- Executing [dstring@macro-dial-one:9] Set("SIP/100-00000036", "DSTRING=SIP/101&") in new stack -- Executing [dstring@macro-dial-one:10] Set("SIP/100-00000036", "ITER=2") in new stack -- Executing [dstring@macro-dial-one:11] GotoIf("SIP/100-00000036", "0?begin") in new stack -- Executing [dstring@macro-dial-one:12] Set("SIP/100-00000036", "DSTRING=SIP/101") in new stack -- Executing [dstring@macro-dial-one:13] Return("SIP/100-00000036", "") in new stack -- Executing [s@macro-dial-one:27] GotoIf("SIP/100-00000036", "0?nodial") in new stack -- Executing [s@macro-dial-one:28] GotoIf("SIP/100-00000036", "0?skiptrace") in new stack -- Executing [s@macro-dial-one:29] GosubIf("SIP/100-00000036", "1?ctset,1():ctclear,1()") in new stack -- Executing [ctset@macro-dial-one:1] Set("SIP/100-00000036", "DB(CALLTRACE/101)=100") in new stack -- Executing [ctset@macro-dial-one:2] Return("SIP/100-00000036", "") in new stack -- Executing [s@macro-dial-one:30] Set("SIP/100-00000036", "D_OPTIONS=tr") in new stack -- Executing [s@macro-dial-one:31] ExecIf("SIP/100-00000036", "0?SIPAddHeader(Alert-Info: )") in new stack -- Executing [s@macro-dial-one:32] ExecIf("SIP/100-00000036", "0?SIPAddHeader()") in new stack -- Executing [s@macro-dial-one:33] ExecIf("SIP/100-00000036", "0?Set(CHANNEL(musicclass)=)") in new stack -- Executing [s@macro-dial-one:34] GosubIf("SIP/100-00000036", "0?qwait,1()") in new stack -- Executing [s@macro-dial-one:35] Set("SIP/100-00000036", "__CWIGNORE=") in new stack -- Executing [s@macro-dial-one:36] Set("SIP/100-00000036", "__KEEPCID=TRUE") in new stack -- Executing [s@macro-dial-one:37] GotoIf("SIP/100-00000036", "0?usegoto,1") in new stack -- Executing [s@macro-dial-one:38] GotoIf("SIP/100-00000036", "0?godial") in new stack -- Executing [s@macro-dial-one:39] Set("SIP/100-00000036", "CONNECTEDLINE(name,i)=GOSTINNAYA") in new stack -- Executing [s@macro-dial-one:40] Set("SIP/100-00000036", "CONNECTEDLINE(num)=101") in new stack -- Executing [s@macro-dial-one:41] Set("SIP/100-00000036", "D_OPTIONS=trI") in new stack -- Executing [s@macro-dial-one:42] Dial("SIP/100-00000036", "SIP/101,,trI") in new stack == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Called SIP/101 -- SIP/101-00000037 is ringing
из всего этого смущает строка -
-- Executing [s@macro-user-callerid:8] Set("SIP/100-00000036", "CALLERID(all)="100" <100>"
походу на ней callerid и затирает asterisk ?
эстеншен на spa3102 заведен - 100.
при звонка из pstn, телефон определяет callerid как 100.
sip.conf
; экст для spa3102
[100]
secret=abcd123
dtmfmode=rfc2833
canreinvite=no
context=from-pstn
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/100
mailbox=100@device
callerid=device <100>
callcounter=yes
faxdetect=no
; транк к спа3102
[from-pstn-363836]
username=100
type=friend
secret=abcd123
port=5060
host=dynamic
context=from-trunk
помогите найти проблему...дебага пира, выдает:
<--- SIP read from UDP:10.0.0.5:5061 ---> ACK sip:363836@10.0.0.12 SIP/2.0 Via: SIP/2.0/UDP 10.0.0.5:5061;branch=z9hG4bK-597a98be From: 74***639*** <sip:74***639***@10.0.0.12>;tag=f836458ed1ed6a5ao1 To: <sip:363836@10.0.0.12>;tag=as0603ad9b Call-ID: b55fbc9e-8d33de8a@10.0.0.5 CSeq: 102 ACK Max-Forwards: 70 Authorization: Digest username="100",realm="asterisk",nonce="77b48e02",uri="sip:363836@10.0.0.12",algorithm=MD5,response="6e82a40a557a397438d7433cccf2fd4e" Contact: 100 <sip:74***639***@10.0.0.5:5061> User-Agent: Linksys/SPA3102-5.2.13(GW002) Content-Length: 0
т.е. получается что все же callerid теряется в * !? как это исправить?
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.