ded - по поводу регистрации да!! но я ранее писал что в sip_registrations.conf уже есть строка ренистрации по первому номеру!
когда я добавил строки регистрации в sip_registrations_custom.conf по вашей рекомендации одна задублировалась...
context=from-trunk - прописано
Звонок на первый номер (6002 это внетрений номер на который направлен звонок с первого номера04411111111111)
Код: Выделить всё
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Executing [044111111@from-trunk:1] Dial("SIP/DataGroup-0000000a", "SIP/6002") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Called 6002
-- SIP/6002-0000000b is ringing
== Spawn extension (from-trunk, 0441111111, 1) exited non-zero on 'SIP/DataGroup-0000000a'
-- Executing [h@from-trunk:1] NoOp("SIP/DataGroup-0000000a", "Catch-All DID Match - Found h - You probably want a DID for this.") in new stack
-- Executing [h@from-trunk:2] Goto("SIP/DataGroup-0000000a", "ext-did,s,1") in new stack
-- Goto (ext-did,s,1)
-- Executing [s@ext-did:1] Set("SIP/DataGroup-0000000a", "__FROM_DID=s") in new stack
-- Executing [s@ext-did:2] Gosub("SIP/DataGroup-0000000a", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/DataGroup-0000000a", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Return("SIP/DataGroup-0000000a", "") in new stack
-- Executing [s@ext-did:3] ExecIf("SIP/DataGroup-0000000a", "0 ?Set(CALLERID(name)=номер с которого звонил)") in new stack
-- Executing [s@ext-did:4] Ringing("SIP/DataGroup-0000000a", "") in new stack
-- Executing [s@ext-did:5] Set("SIP/DataGroup-0000000a", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:6] Set("SIP/DataGroup-0000000a", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [s@ext-did:7] Goto("SIP/DataGroup-0000000a", "app-blackhole,hangup,1") in new stack
-- Goto (app-blackhole,hangup,1)
-- Executing [hangup@app-blackhole:1] NoOp("SIP/DataGroup-0000000a", "Blackhole Dest: Hangup") in new stack
-- Executing [hangup@app-blackhole:2] Hangup("SIP/DataGroup-0000000a", "") in new stack
== Spawn extension (app-blackhole, hangup, 2) exited non-zero on 'SIP/DataGroup-0000000a'
Звонок на второй номер
Код: Выделить всё
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Executing [0445938166@from-trunk:1] Dial("SIP/DataGroup-0000000c", "SIP/6002") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Called 6002
-- SIP/6002-0000000d is ringing
== Spawn extension (from-trunk, 044111111, 1) exited non-zero on 'SIP/DataGroup-0000000c'
-- Executing [h@from-trunk:1] NoOp("SIP/DataGroup-0000000c", "Catch-All DID Match - Found h - You probably want a DID for this.") in new stack
-- Executing [h@from-trunk:2] Goto("SIP/DataGroup-0000000c", "ext-did,s,1") in new stack
-- Goto (ext-did,s,1)
-- Executing [s@ext-did:1] Set("SIP/DataGroup-0000000c", "__FROM_DID=s") in new stack
-- Executing [s@ext-did:2] Gosub("SIP/DataGroup-0000000c", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/DataGroup-0000000c", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Return("SIP/DataGroup-0000000c", "") in new stack
-- Executing [s@ext-did:3] ExecIf("SIP/DataGroup-0000000c", "0 ?Set(CALLERID(name)=номер с которого звонил)") in new stack
-- Executing [s@ext-did:4] Ringing("SIP/DataGroup-0000000c", "") in new stack
-- Executing [s@ext-did:5] Set("SIP/DataGroup-0000000c", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:6] Set("SIP/DataGroup-0000000c", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [s@ext-did:7] Goto("SIP/DataGroup-0000000c", "app-blackhole,hangup,1") in new stack
-- Goto (app-blackhole,hangup,1)
-- Executing [hangup@app-blackhole:1] NoOp("SIP/DataGroup-0000000c", "Blackhole Dest: Hangup") in new stack
-- Executing [hangup@app-blackhole:2] Hangup("SIP/DataGroup-0000000c", "") in new stack
== Spawn extension (app-blackhole, hangup, 2) exited non-zero on 'SIP/DataGroup-0000000c'
звоню на разные внешние а результат один и тот же...
завлю не завалю- а работать блин надо!
___________________________________________________________________________________________________
SolarW - распределять входящие по DID - вот собственно это и хочу понять.... как и где они распределяются ???