I have been looking through the forums for a few days and haven't managed to find the answer so.........
We have a trixbox 2.6.2.3 setup connected to a PRI ISDN (E1) which works fine. Extenstions, softphones etc work.
We have a MS OCS 2007 R2 Mediation Server connected to it via a tcp sip trunk, OCS can make out going calls via the trixbox and ISDN OK.
Hopefully I am missing something obvious here (brand new to this) the issue is that I can't work out how to get the trixbox to route all incoming calls from the ISDN (we have 30 DDIs) to the OCS system.
Basically we are looking at using the trixbox as a simple ISDN---SIP gateway.
OCS ----> ISDN works
ISDN -----> OCS doesn't
Any suggestions, pointers appreciated.
(edit to clarify - ISDN calls to extensions on the trixbox work perfectly - it is just a question of how do I get the trixbox to pass everything incoming directly to the sip trunk and thus the OCS)
(Edit thinking that I may need to set up custom extensions but not sure what I need to do)
(Setup custom extension with sip/ocs/xxxx (xxxx is the extension number) in the dial field under custom technology).
Watching a call from Asterisk...... (real phone numbers have been replaced with xxxx)
Call originated from an extension local to the trixbox to an extesion on the OCS.
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/extconfig.conf': == Found
Connected to Asterisk 1.6.0.9-samy-r27 currently running on astribank (pid = 252 7)
Verbosity is at least 6
== 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 [3920@from-internal:1] Macro("SIP/3939-08f981c0", "exten-vm,nov m,3920") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/3939-08f981c0", "user-callerid" ) in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/3939-08f981c0", "AMPUSER=393 9") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/3939-08f981c0", "0?report ") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/3939-08f981c0", "1?Set(RE ALCALLERIDNUM=3939)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/3939-08f981c0", "AMPUSER=393 9") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/3939-08f981c0", "AMPUSERCIDN AME=3939") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/3939-08f981c0", "0?report ") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/3939-08f981c0", "AMPUSERCID= 3939") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/3939-08f981c0", "CALLERID(al l)="3939" ") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/3939-08f981c0", "REALCALLERI DNUM=3939") in new stack
-- Executing [s@macro-user-callerid:10] ExecIf("SIP/3939-08f981c0", "0?Set(C HANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("SIP/3939-08f981c0", "0?conti nue") in new stack
-- Executing [s@macro-user-callerid:12] Set("SIP/3939-08f981c0", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:13] GotoIf("SIP/3939-08f981c0", "1?conti nue") in new stack
-- Goto (macro-user-callerid,s,20)
-- Executing [s@macro-user-callerid:20] NoOp("SIP/3939-08f981c0", "Using Cal lerID "3939" ") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/3939-08f981c0", "RingGroupMethod= none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/3939-08f981c0", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/3939-08f981c0", "EXTTOCALL=3920") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/3939-08f981c0", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/3939-08f981c0", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/3939-08f981c0", "RT=""") in new s tack
-- Executing [s@macro-exten-vm:8] Macro("SIP/3939-08f981c0", "record-enable, 3920,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/3939-08f981c0", "1?check" ) in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/3939-08f981c0", "recordingch eck,20090710-103711,1247218631.249") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20090710-103711,1247218631.249: Inbound recording not enabled
--
-- Executing [s@macro-record-enable:5] MacroExit("SIP/3939-08f981c0", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/3939-08f981c0", "dial,"",tr,392 0") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/3939-08f981c0", "1?dial") in new s tack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("SIP/3939-08f981c0", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is '3939' number is '3939'
> dialparties.agi: USE_CONFIRMATION: 'FALSE'
> dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 3920 to extension map
-- dialparties.agi: Extension 3920 cf is disabled
-- dialparties.agi: Extension 3920 do not disturb is disabled
> dialparties.agi: extnum 3920 has: cw: 1; hascfb: 0 [] hascfu: 0 []
> dialparties.agi: ExtensionState: 0
-- dialparties.agi: dbset CALLTRACE/3920 to 3939
-- dialparties.agi: Filtered ARG3: 3920
== Manager 'admin' logged off from 127.0.0.1
--
-- Executing [s@macro-dial:7] Dial("SIP/3939-08f981c0", "sip/ocs/+xxxxxxx ,"",tr") 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 ocs/+xxxxxxx
== Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/3939-08f981c0' i n macro 'dial'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/3939-08f981c 0' in macro 'exten-vm'
== Spawn extension (from-internal, 3920, 1) exited non-zero on 'SIP/3939-08f98 1c0'
-- Executing [h@from-internal:1] Macro("SIP/3939-08f981c0", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/3939-08f981c0", "vw") in n ew stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/3939-08f981c0", "") in new st ack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/3939-08f981c0", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/3939-08f981c0", "1?skipblkvm ") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/3939-08f981c0", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/3939-08f981c0", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/3939-08f9 81c0' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/3939-08f981c0 '
astribank*CLI> k
astribank*CLI> -- Executing [s@macro-user-callerid:2] GotoIf("SIP/3939-08f981c0", "0?report ") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/3939-08f981c0", "0report ") in new stack
Usage: _command nummatches "
This function is used internally to help with command completion and should.
never be called by the user directly.
No such command ' -- Executing [s@macro-user-callerid:2] GotoIf("SIP/3939-08f981c0", "0report ") in new stack' (type 'help -- Executing' for other possible commands)
astribank*CLI> -- Executing [s@macro-user-callerid
Disconnected from Asterisk server
Executing last minute cleanups
OK> Seems to be working now...
Custom extensions using sip/ocs/(full phone number)
OCS had problem using the default ports, changed ports sorted.
Member Since:
2009-07-09