Author Topic: QM 1.4 and Trixbox 2.6.1  (Read 31460 times)

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: QM 1.4 and Trixbox 2.6.1
« Reply #45 on: June 24, 2008, 12:46:30 »
I do not even see the MY_QUE=.... entries that were in te previous log. Did you use Set() as specified above?

alien

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: QM 1.4 and Trixbox 2.6.1
« Reply #46 on: June 24, 2008, 22:25:19 »
here is queuedial

[queuedial]
exten => _XXX.,1,Set(MY_QUE=${EXTEN:0:3})
exten => _XXX.,2,Set(MY_NUM=${EXTEN:3})
exten => _XXX.,3,Set(MY_AGENT=${CALLERIDNUM})
exten => _XXX.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _XXX.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten => _XXX.,6,DeadAGI(queueDial.agi|${MY_NUM}|SIP/user.provider.ent/${MY_NUM}|q-
${MY_QUE}|Agent/${MY_AGENT})
exten => _XXX.,7,Congestion

And there is what happens:

Verbosity was 3 and is now 10
    -- Executing [81230800@from-internal:1] Macro("SIP/27-09dfc990", "user-callerid|SKIPTTL|")              in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/27-09dfc990", "user-callerid: device 27")              in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/27-09dfc990", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/27-09dfc990", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/27-09dfc990", "1|Set|REALCALLERIDNUM=27"             ) in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/27-09dfc990", "REALCALLERIDNUM is 27") in              new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/27-09dfc990", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/27-09dfc990", "AMPUSERCIDNAME=lincoln") in              new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/27-09dfc990", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/27-09dfc990", "AMPUSERCID=27") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/27-09dfc990", "CALLERID(all)="lincoln" <27             >") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/27-09dfc990", "REALCALLERIDNUM=27") in new              stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/27-09dfc990", "0|Set|CHANNEL(language)=             ") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/27-09dfc990", "TTL:  ARG1: SKIPTTL") in n             ew stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/27-09dfc990", "1?continue") in new stac             k
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/27-09dfc990", "Using CallerID "lincoln" <             27>") in new stack
    -- Executing [81230800@from-internal:2] Set("SIP/27-09dfc990", "_NODEST=") in new stack
    -- Executing [81230800@from-internal:3] Macro("SIP/27-09dfc990", "record-enable|27|OUT|") i             n new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/27-09dfc990", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/27-09dfc990", "recordingcheck|20080624-1622             04|1214338924.13") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20080624-162204|1214338924.13: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/27-09dfc990", "No recording needed") in ne             w stack
    -- Executing [81230800@from-internal:4] Macro("SIP/27-09dfc990", "dialout-trunk|3|1230800||             ") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/27-09dfc990", "DIAL_TRUNK=3") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/27-09dfc990", "0|Authenticate|") in new              stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/27-09dfc990", "0?disabletrunk|1") in new              stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/27-09dfc990", "DIAL_NUMBER=1230800") in new              stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/27-09dfc990", "DIAL_TRUNK_OPTIONS=tr") in n             ew stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/27-09dfc990", "GROUP()=OUT_3") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/27-09dfc990", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/27-09dfc990", "0?skipoutcid") in new sta             ck
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/27-09dfc990", "DIAL_TRUNK_OPTIONS=") in ne             w stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/27-09dfc990", "outbound-callerid|3") in              new stack
    -- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/27-09dfc990", "1?start") in new stac             k
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/27-09dfc990", "REALCALLERIDNUM is 27")              in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/27-09dfc990", "1?normcid") in new st             ack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/27-09dfc990", "USEROUTCID=") in new sta             ck
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/27-09dfc990", "EMERGENCYCID=") in new              stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/27-09dfc990", "TRUNKOUTCID=") in new s             tack
    -- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/27-09dfc990", "1?trunkcid") in new              stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/27-09dfc990", "1?usercid") in new s             tack
    -- Goto (macro-outbound-callerid,s,18)
    -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/27-09dfc990", "1?report") in new st             ack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/27-09dfc990", "CallerID set to "linco             ln" <27>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/27-09dfc990", "fixlocalprefix") in new sta             ck
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/27-09dfc990", "OUTNUM=1230800") in new sta             ck
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/27-09dfc990", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/27-09dfc990", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/27-09dfc990", "dialout-trunk-predial-hoo             k|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/27-09dfc990", "0?bypass|1") in new stac             k
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/27-09dfc990", "1?customtrunk") in new s             tack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/27-09dfc990", "pre_num=AMP:Local/") in new              stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/27-09dfc990", "the_num=OUTNUM") in new sta             ck
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/27-09dfc990", "post_num=@queuedial/n") in              new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/27-09dfc990", "1?outnum:skipoutnum") in              new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/27-09dfc990", "the_num=1230800") in new st             ack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/27-09dfc990", "Local/1230800@queuedial/n|             300|") in new stack
    -- Called 1230800@queuedial/n
    -- Executing [1230800@queuedial:1] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_QUEUE=q-1             23") in new stack
    -- Executing [1230800@queuedial:2] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_NUMBER=08             00") in new stack
    -- Executing [1230800@queuedial:3] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_AGENT=Age             nt/27") in new stack
    -- Executing [1230800@queuedial:4] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_CHANNEL=S             IP/0800") in new stack
    -- Executing [1230800@queuedial:5] Set("Local/1230800@queuedial-f7bd,2", "QueueName=q-123")              in new stack
    -- Executing [1230800@queuedial:6] MixMonitor("Local/1230800@queuedial-f7bd,2", "Q-q-123-12             14338925.15.WAV|b|") in new stack
    -- Executing [1230800@queuedial:7] Goto("Local/1230800@queuedial-f7bd,2", "qm-queuedial|s|1             ") in new stack
    -- Goto (qm-queuedial,s,1)
    -- Executing [s@qm-queuedial:1] NoOp("Local/1230800@queuedial-f7bd,2", "Outbound call -> A:             Agent/27 N:0800 Q:q-123 Ch:SIP/0800") in new stack
    -- Executing [s@qm-queuedial:2] Set("Local/1230800@queuedial-f7bd,2", "CDR(accountcode)=QDI             ALAGI") in new stack
    -- Executing [s@qm-queuedial:3] Set("Local/1230800@queuedial-f7bd,2", "ST=1214338925") in n             ew stack
    -- Executing [s@qm-queuedial:4] Set("Local/1230800@queuedial-f7bd,2", "GM=QDV-Agent/27") in              new stack
    -- Executing [s@qm-queuedial:5] Set("Local/1230800@queuedial-f7bd,2", "GLOBAL(QDV-Agent/27)             =U") in new stack
  == Setting global variable 'QDV-Agent/27' to 'U'
    -- Executing [s@qm-queuedial:6] Set("Local/1230800@queuedial-f7bd,2", "GLOBAL(QDV-Agent/27a             ns)=0") in new stack
  == Setting global variable 'QDV-Agent/27ans' to '0'
    -- Executing [s@qm-queuedial:7] Macro("Local/1230800@queuedial-f7bd,2", "queuelog|121433892             5|1214338925.15|q-123|Agent/27|ENTERQUEUE|-|0800") in new stack
    -- Executing [s@macro-queuelog:1] QueueLog("Local/1230800@queuedial-f7bd,2", "q-123|1214338             925.15|Agent/27|ENTERQUEUE|-|0800|") in new stack
    -- Executing [s@qm-queuedial:8] Dial("Local/1230800@queuedial-f7bd,2", "SIP/0800|30|gM(queu             edial-answer^1214338925.15^QDV-Agent/27^q-123^Agent/27^1214338925)") in new stack
  == Begin MixMonitor Recording Local/1230800@queuedial-f7bd,2
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@qm-queuedial:9] Set("Local/1230800@queuedial-f7bd,2", "CAUSECOMPLETE=") in              new stack
  == Auto fallthrough, channel 'Local/1230800@queuedial-f7bd,2' status is 'CHANUNAVAIL'
    -- Local/1230800@queuedial-f7bd,1 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:28] Goto("SIP/27-09dfc990", "s-CONGESTION|1") in new st             ack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/27-09dfc990", "1?noreport") i             n new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,3)
    -- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/27-09dfc990", "TRUNK Dial faile             d due to CONGESTION - failing through to other trunks") in new stack
    -- Executing [81230800@from-internal:5] Macro("SIP/27-09dfc990", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/27-09dfc990", "all-circuits-busy-now|noans             wer") in new stack
    -- <SIP/27-09dfc990> Playing 'all-circuits-busy-now' (language 'en')
    -- Executing [h@qm-queuedial:1] NoOp("Local/1230800@queuedial-f7bd,2", " "Call exiting: sta             tus U answered at: 0 DS: CHANUNAVAIL"  ") in new stack
    -- Executing [h@qm-queuedial:2] Goto("Local/1230800@queuedial-f7bd,2", "case-U") in new sta             ck
    -- Goto (qm-queuedial,h,4)
    -- Executing [h@qm-queuedial:4] Set("Local/1230800@queuedial-f7bd,2", "WT=0") in new stack
    -- Executing [h@qm-queuedial:5] Macro("Local/1230800@queuedial-f7bd,2", "queuelog|121433892             5|1214338925.15|q-123|Agent/27|ABANDON|1|1|0") in new stack
    -- Executing [s@macro-queuelog:1] QueueLog("Local/1230800@queuedial-f7bd,2", "q-123|1214338             925.15|Agent/27|ABANDON|1|1|0") in new stack
    -- Executing [s@qm-queuedial:6] Set("Local/1230800@queuedial-f7bd,2", "GLOBAL(QDV-Agent/27a             ns)=0") in new stack
  == Setting global variable 'QDV-Agent/27ans' to '0'
    -- Executing [s@qm-queuedial:7] Macro("Local/1230800@queuedial-f7bd,2", "queuelog|121433892             5|1214338925.15|q-123|Agent/27|ENTERQUEUE|-|0800") in new stack
    -- Executing [s@macro-queuelog:1] QueueLog("Local/1230800@queuedial-f7bd,2", "q-123|1214338             925.15|Agent/27|ENTERQUEUE|-|0800|") in new stack
    -- Executing [s@qm-queuedial:8] Dial("Local/1230800@queuedial-f7bd,2", "SIP/0800|30|gM(queu             edial-answer^1214338925.15^QDV-Agent/27^q-123^Agent/27^1214338925)") in new stack
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@qm-queuedial:9] Set("Local/1230800@queuedial-f7bd,2", "CAUSECOMPLETE=") in              new stack
  == End MixMonitor Recording Local/1230800@queuedial-f7bd,2
    -- Executing [s@macro-outisbusy:2] Playback("SIP/27-09dfc990", "pls-try-call-later|noanswer             ") in new stack
    -- <SIP/27-09dfc990> Playing 'pls-try-call-later' (language 'en')
    -- Executing [s@macro-outisbusy:3] Macro("SIP/27-09dfc990", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/27-09dfc990", "w") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/27-09dfc990", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/27-09dfc990", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/27-09dfc990", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/27-09dfc990", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/27-09dfc990", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-09dfc990' in macro 'h             angupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-09dfc990' in macro 'o             utisbusy'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-09dfc990'
 

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: QM 1.4 and Trixbox 2.6.1
« Reply #47 on: June 25, 2008, 11:34:54 »
I see you already have the new technology dial-out. It was not previously there.

here is queuedial
-- Called 1230800@queuedial/n
    -- Executing [1230800@queuedial:1] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_QUEUE=q-1 23") in new stack
    -- Executing [1230800@queuedial:2] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_NUMBER=0800") in new stack
    -- Executing [1230800@queuedial:3] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_AGENT=Agent/27") in new stack
    -- Executing [1230800@queuedial:4] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_CHANNEL=SIP/0800") in new stack
    -- Executing [1230800@queuedial:5] Set("Local/1230800@queuedial-f7bd,2", "QueueName=q-123")              in new stack
    -- Executing [1230800@queuedial:6] MixMonitor ("Local/1230800@queuedial-f7bd,2", "Q-q-123-12             14338925.15.WAV|b|") in new stack
    -- Executing [1230800@queuedial:7] Goto("Local/1230800@queuedial-f7bd,2", "qm-queuedial|s|1             ") in new stack
    -- Goto (qm-queuedial,s,1)


This is correct, save for the SIP/0800 that should likely be SIP/myprovider/0800 or whatever. Find the line where QDIALER_CHANNEL is set and edit that.

Please note that you DO NOT have the dialplan below

[queuedial]
exten => _XXX.,1,Set(MY_QUE=${EXTEN:0:3})
exten => _XXX.,2,Set(MY_NUM=${EXTEN:3})
exten => _XXX.,3,Set(MY_AGENT=${CALLERIDNUM})
exten => _XXX.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _XXX.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten => _XXX.,6,DeadAGI(queueDial.agi|${MY_NUM}|SIP/user.provider.ent/${MY_NUM}|q-
${MY_QUE}|Agent/${MY_AGENT})
exten => _XXX.,7,Congestion


So make sure what files are you importing.  ;D You do not need it as you have the new one, but beware because the log you posted does not match the dialplan you reported here.

alien

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: QM 1.4 and Trixbox 2.6.1
« Reply #48 on: June 25, 2008, 21:27:40 »
how I change that?

Changin the custom dial string?

I have try this and does not work
Local/$SIP$/$OUTNUM$@queuedial/n