Hi All.
New to all this and a bit stuck. I have TB2.8.0.4 setup. Tested and works with an OpenVox A400P with 2 FXO and 1 FXS in ports 1,2, and 3 respectively. The A400P worked with not much configuration but to create an inbound route. I did a catch all route. All good to this point.
I downloaded and installed the drivers for the G400P
http://www.chan-extra.org/download/chan_extra-current.tar.gz
. Install appeared to go OK. The A400P still works with calls in and out, but not too sure of the extensions or manual configurations to do for the G400P. I do not want to tamper with the files configured by FreePBX. So from the install instructions
http://www.chan-extra.org/index.php/OpenVox_G400P_User_Manual_for...
, I am stuck at the edit extensions.conf file. What I did was add to /etc/asterisk/extensions_custom.conf
[from-gsm]
exten => s, 1, Answer()
exten => s, n, Dial(SIP/200)
I did not do anything with the [from-internal] part as I figure it was there already
Here are some outputs
*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo from-internal en default In Service
1 from-pstn en default In Service
2 from-pstn en default In Service
3 from-internal en default In Service
*CLI> extra show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo default default In Service
5 from-gsm default In Service
7 from-gsm default In Service
*CLI> gsm show spans
GSM span 2: Provisioned, Up, Active
GSM span 3: Provisioned, Down, Active
I only have 1 SIM card in there now so span 3 is down.
Here are the files I have:
dahdi-channels.conf
; Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER)
;;; line="1 WCTDM/4/0 FXSKS (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default
;;; line="2 WCTDM/4/1 FXSKS (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 2
callerid=
group=
context=default
;;; line="3 WCTDM/4/2 FXOKS (In use) (SWEC: MG2)"
signalling=fxo_ks
callerid="Channel 3" <4003>
mailbox=4003
group=5
context=from-internal
channel => 3
callerid=
mailbox=
group=
context=default
extra-channels.conf
; Span 2: opvxg4xx/0/1 "OpenVox G400P GSM/CDMA PCI Card 0"
group=12
context=from-gsm
signalling = gsm
;pin=1234
channel => 5
context = default
group = 63
; Span 3: opvxg4xx/0/2 "OpenVox G400P GSM/CDMA PCI Card 0"
group=13
context=from-gsm
signalling = gsm
;pin=1234
channel => 7
context = default
group = 63
I added Trunk->Add Custom Trunk->Custom Dial String;
extra/g0/$OUTNUM$ and also tried extra/5/$OUTNUM$ with no luck. Can't dial in nor out.
Output when I try to dial out with Trunk "extra/g0/$OUTNUM$"
== 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 [
[email protected]:1] Macro("SIP/204-00000015", "user-callerid,SKIPTTL,") in new stack
-- Executing [
[email protected]:1] Set("SIP/204-00000015", "AMPUSER=204") in new stack
-- Executing [
[email protected]:2] GotoIf("SIP/204-00000015", "0?report") in new stack
-- Executing [
[email protected]:3] ExecIf("SIP/204-00000015", "1?Set(REALCALLERIDNUM=204)") in new stack
-- Executing [
[email protected]:4] Set("SIP/204-00000015", "AMPUSER=204") in new stack
-- Executing [
[email protected]:5] Set("SIP/204-00000015", "AMPUSERCIDNAME=Admin Secretary") in new stack
-- Executing [
[email protected]id:6] GotoIf("SIP/204-00000015", "0?report") in new stack
-- Executing [
[email protected]:7] Set("SIP/204-00000015", "AMPUSERCID=204") in new stack
-- Executing [
[email protected]:8] Set("SIP/204-00000015", "CALLERID(all)="Admin Secretary" <204>") in new stack
-- Executing [
[email protected]:9] ExecIf("SIP/204-00000015", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [
[email protected]:10] GotoIf("SIP/204-00000015", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [
[email protected]:19] NoOp("SIP/204-00000015", "Using CallerID "Admin Secretary" <204>") in new stack
-- Executing [
[email protected]:2] Set("SIP/204-00000015", "_NODEST=") in new stack
-- Executing [
[email protected]:3] Macro("SIP/204-00000015", "record-enable,204,OUT,") in new stack
-- Executing [
[email protected]:1] GotoIf("SIP/204-00000015", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [
[email protected]:4] AGI("SIP/204-00000015", "recordingcheck,20110104-230348,1294196628.35") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20110104-230348,1294196628.35: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [
[email protected]:5] MacroExit("SIP/204-00000015", "") in new stack
-- Executing [
[email protected]:4] Macro("SIP/204-00000015", "dialout-trunk,2,2454598,,") in new stack
-- Executing [
[email protected]:1] Set("SIP/204-00000015", "DIAL_TRUNK=2") in new stack
-- Executing [
[email protected]:2] GosubIf("SIP/204-00000015", "0?sub-pincheck,s,1") in new stack
-- Executing [
[email protected]:3] GotoIf("SIP/204-00000015", "0?disabletrunk,1") in new stack
-- Executing [
[email protected]:4] Set("SIP/204-00000015", "DIAL_NUMBER=2454598") in new stack
-- Executing [
[email protected]:5] Set("SIP/204-00000015", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [
[email protected]:6] Set("SIP/204-00000015", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [
[email protected]:7] GotoIf("SIP/204-00000015", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [
[email protected]:9] GotoIf("SIP/204-00000015", "0?skipoutcid") in new stack
-- Executing [
[email protected]:10] Set("SIP/204-00000015", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [
[email protected]:11] Macro("SIP/204-00000015", "outbound-callerid,2") in new stack
-- Executing [
[email protected]:1] ExecIf("SIP/204-00000015", "0?Set(CALLERPRES()=)") in new stack
-- Executing [
[email protected]:2] ExecIf("SIP/204-00000015", "0?Set(REALCALLERIDNUM=204)") in new stack
-- Executing [
[email protected]:3] GotoIf("SIP/204-00000015", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [
[email protected]:6] Set("SIP/204-00000015", "USEROUTCID=") in new stack
-- Executing [
[email protected]:7] Set("SIP/204-00000015", "EMERGENCYCID=") in new stack
-- Executing [
[email protected]:8] Set("SIP/204-00000015", "TRUNKOUTCID=6162916") in new stack
-- Executing [
[email protected]:9] GotoIf("SIP/204-00000015", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [
[email protected]:12] ExecIf("SIP/204-00000015", "1?Set(CALLERID(all)=6162916)") in new stack
-- Executing [
[email protected]:13] ExecIf("SIP/204-00000015", "0?Set(CALLERID(all)=)") in new stack
-- Executing [
[email protected]:14] ExecIf("SIP/204-00000015", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [
[email protected]:12] ExecIf("SIP/204-00000015", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [
[email protected]:13] Set("SIP/204-00000015", "OUTNUM=2454598") in new stack
-- Executing [
[email protected]:14] Set("SIP/204-00000015", "custom=AMP") in new stack
-- Executing [
[email protected]:15] ExecIf("SIP/204-00000015", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [
[email protected]:16] Macro("SIP/204-00000015", "dialout-trunk-predial-hook,") in new stack
-- Executing [
[email protected]:1] MacroExit("SIP/204-00000015", "") in new stack
-- Executing [
[email protected]:17] GotoIf("SIP/204-00000015", "0?bypass,1") in new stack
-- Executing [
[email protected]:18] GotoIf("SIP/204-00000015", "1?customtrunk") in new stack
-- Goto (macro-dialout-trunk,s,21)
-- Executing [
[email protected]:21] Set("SIP/204-00000015", "pre_num=AMP:extra/g0/") in new stack
-- Executing [
[email protected]:22] Set("SIP/204-00000015", "the_num=OUTNUM") in new stack
-- Executing [
[email protected]:23] Set("SIP/204-00000015", "post_num=") in new stack
-- Executing [
[email protected]:24] GotoIf("SIP/204-00000015", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,25)
-- Executing [
[email protected]:25] Set("SIP/204-00000015", "the_num=2454598") in new stack
-- Executing [
[email protected]:26] Dial("SIP/204-00000015", "extra/g0/2454598,300,") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [
[email protected]:27] Goto("SIP/204-00000015", "s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [
[email protected]:1] GotoIf("SIP/204-00000015", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [
[email protected]:3] NoOp("SIP/204-00000015", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
-- Executing [
[email protected]:5] Macro("SIP/204-00000015", "outisbusy,") in new stack
-- Executing [
[email protected]:1] Playback("SIP/204-00000015", "all-circuits-busy-now,noanswer") in new stack
-- Playing 'all-circuits-busy-now.ulaw' (language 'en')
-- Executing [
[email protected]:2] Playback("SIP/204-00000015", "pls-try-call-later,noanswer") in new stack
-- Playing 'pls-try-call-later.ulaw' (language 'en')
-- Executing [
[email protected]:3] Macro("SIP/204-00000015", "hangupcall") in new stack
-- Executing [
[email protected]:1] GotoIf("SIP/204-00000015", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [
[email protected]:4] GotoIf("SIP/204-00000015", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [
[email protected]:7] GotoIf("SIP/204-00000015", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [
[email protected]:9] Hangup("SIP/204-00000015", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/204-00000015' in macro 'hangupcall'
== Spawn extension (macro-outisbusy, s, 3) exited non-zero on 'SIP/204-00000015' in macro 'outisbusy'
== Spawn extension (from-internal, 92454598, 5) exited non-zero on 'SIP/204-00000015'
-- Executing [
[email protected]:1] Macro("SIP/204-00000015", "hangupcall") in new stack
-- Executing [
[email protected]:1] GotoIf("SIP/204-00000015", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [
[email protected]:4] GotoIf("SIP/204-00000015", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [
[email protected]:7] GotoIf("SIP/204-00000015", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [
[email protected]:9] Hangup("SIP/204-00000015", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/204-00000015' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/204-00000015'
Output when I try to dial out with Trunk "extra/5/$OUTNUM$"
I hangup after waiting > 30 sec. After dial there is no tone - dead line.
== 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 [
[email protected]:1] Macro("SIP/204-00000014", "user-callerid,SKIPTTL,") in new stack
-- Executing [
[email protected]:1] Set("SIP/204-00000014", "AMPUSER=204") in new stack
-- Executing [
[email protected]:2] GotoIf("SIP/204-00000014", "0?report") in new stack
-- Executing [
[email protected]:3] ExecIf("SIP/204-00000014", "1?Set(REALCALLERIDNUM=204)") in new stack
-- Executing [
[email protected]:4] Set("SIP/204-00000014", "AMPUSER=204") in new stack
-- Executing [
[email protected]:5] Set("SIP/204-00000014", "AMPUSERCIDNAME=Admin Secretary") in new stack
-- Executing [
[email protected]:6] GotoIf("SIP/204-00000014", "0?report") in new stack
-- Executing [
[email protected]:7] Set("SIP/204-00000014", "AMPUSERCID=204") in new stack
-- Executing [
[email protected]:8] Set("SIP/204-00000014", "CALLERID(all)="Admin Secretary" <204>") in new stack
-- Executing [
[email protected]:9] ExecIf("SIP/204-00000014", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [
[email protected]:10] GotoIf("SIP/204-00000014", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [
[email protected]:19] NoOp("SIP/204-00000014", "Using CallerID "Admin Secretary" <204>") in new stack
-- Executing [
[email protected]:2] Set("SIP/204-00000014", "_NODEST=") in new stack
-- Executing [
[email protected]:3] Macro("SIP/204-00000014", "record-enable,204,OUT,") in new stack
-- Executing [
[email protected]:1] GotoIf("SIP/204-00000014", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [
[email protected]:4] AGI("SIP/204-00000014", "recordingcheck,20110104-225803,1294196283.33") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20110104-225803,1294196283.33: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [
[email protected]:5] MacroExit("SIP/204-00000014", "") in new stack
-- Executing [
[email protected]:4] Macro("SIP/204-00000014", "dialout-trunk,2,2454598,,") in new stack
-- Executing [
[email protected]:1] Set("SIP/204-00000014", "DIAL_TRUNK=2") in new stack
-- Executing [
[email protected]:2] GosubIf("SIP/204-00000014", "0?sub-pincheck,s,1") in new stack
-- Executing [
[email protected]:3] GotoIf("SIP/204-00000014", "0?disabletrunk,1") in new stack
-- Executing [
[email protected]:4] Set("SIP/204-00000014", "DIAL_NUMBER=2454598") in new stack
-- Executing [
[email protected]:5] Set("SIP/204-00000014", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [
[email protected]:6] Set("SIP/204-00000014", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [
[email protected]:7] GotoIf("SIP/204-00000014", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [
[email protected]:9] GotoIf("SIP/204-00000014", "0?skipoutcid") in new stack
-- Executing [
[email protected]:10] Set("SIP/204-00000014", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [
[email protected]:11] Macro("SIP/204-00000014", "outbound-callerid,2") in new stack
-- Executing [
[email protected]:1] ExecIf("SIP/204-00000014", "0?Set(CALLERPRES()=)") in new stack
-- Executing [
[email protected]:2] ExecIf("SIP/204-00000014", "0?Set(REALCALLERIDNUM=204)") in new stack
-- Executing [
[email protected]:3] GotoIf("SIP/204-00000014", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [
[email protected]:6] Set("SIP/204-00000014", "USEROUTCID=") in new stack
-- Executing [
[email protected]:7] Set("SIP/204-00000014", "EMERGENCYCID=") in new stack
-- Executing [
[email protected]:8] Set("SIP/204-00000014", "TRUNKOUTCID=6162916") in new stack
-- Executing [
[email protected]:9] GotoIf("SIP/204-00000014", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [
[email protected]:12] ExecIf("SIP/204-00000014", "1?Set(CALLERID(all)=6162916)") in new stack
-- Executing [
[email protected]:13] ExecIf("SIP/204-00000014", "0?Set(CALLERID(all)=)") in new stack
-- Executing [
[email protected]:14] ExecIf("SIP/204-00000014", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [
[email protected]:12] ExecIf("SIP/204-00000014", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [
[email protected]:13] Set("SIP/204-00000014", "OUTNUM=2454598") in new stack
-- Executing [
[email protected]:14] Set("SIP/204-00000014", "custom=AMP") in new stack
-- Executing [
[email protected]:15] ExecIf("SIP/204-00000014", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [
[email protected]:16] Macro("SIP/204-00000014", "dialout-trunk-predial-hook,") in new stack
-- Executing [
[email protected]:1] MacroExit("SIP/204-00000014", "") in new stack
-- Executing [
[email protected]:17] GotoIf("SIP/204-00000014", "0?bypass,1") in new stack
-- Executing [
[email protected]:18] GotoIf("SIP/204-00000014", "1?customtrunk") in new stack
-- Goto (macro-dialout-trunk,s,21)
-- Executing [
[email protected]:21] Set("SIP/204-00000014", "pre_num=AMP:extra/5/") in new stack
-- Executing [
[email protected]:22] Set("SIP/204-00000014", "the_num=OUTNUM") in new stack
-- Executing [
[email protected]:23] Set("SIP/204-00000014", "post_num=") in new stack
-- Executing [
[email protected]:24] GotoIf("SIP/204-00000014", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,25)
-- Executing [
[email protected]:25] Set("SIP/204-00000014", "the_num=2454598") in new stack
-- Executing [
[email protected]:26] Dial("SIP/204-00000014", "extra/5/2454598,300,") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called 5/2454598
-- EXTRA/5-1 is proceeding passing it to SIP/204-00000014
-- EXTRA/5-1 is making progress passing it to SIP/204-00000014
-- PROGRESS with cause code 0 received
-- EXTRA/5-1 is making progress passing it to SIP/204-00000014
-- EXTRA/5-1 is making progress passing it to SIP/204-00000014
-- Hungup 'EXTRA/5-1'