Author Topic: Outbound using 8<###><phonenumber>  (Read 4968 times)

criceto

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
    • Email
Outbound using 8<###><phonenumber>
« on: March 10, 2010, 07:57:37 »
Hi

I followed step by step the instrucion but when I try to dial es 8123025555555 (123=outbound id, 025555555 phone number) don't work.

any idea
PS: trixbox 2.8 asterisk 1.6.x QM 1.5.5

Thanks

 -- Executing [812302320620501@from-internal:1] Macro("SIP/1111-b52277b8", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/1111-b52277b8", "AMPUSER=1111") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/1111-b52277b8", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/1111-b52277b8", "1?Set(REALCALLERIDNUM=1111)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/1111-b52277b8", "AMPUSER=1111") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/1111-b52277b8", "AMPUSERCIDNAME=Moreno 1111") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/1111-b52277b8", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/1111-b52277b8", "AMPUSERCID=1111") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/1111-b52277b8", "CALLERID(all)="Moreno 1111" <1111>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/1111-b52277b8", "1?Set(CHANNEL(language)=it)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/1111-b52277b8", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/1111-b52277b8", "Using CallerID "Moreno 1111" <1111>") in new stack
    -- Executing [812302320620501@from-internal:2] Set("SIP/1111-b52277b8", "_NODEST=") in new stack
    -- Executing [812302320620501@from-internal:3] Macro("SIP/1111-b52277b8", "record-enable,1111,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/1111-b52277b8", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/1111-b52277b8", "recordingcheck,20100310-075209,1268203929.18969") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
 recordingcheck,20100310-075209,1268203929.18969: Outbound recording not enabled
    -- <SIP/1111-b52277b8>AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("SIP/1111-b52277b8", "") in new stack
    -- Executing [812302320620501@from-internal:4] Macro("SIP/1111-b52277b8", "dialout-trunk,14,12302320620501,,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/1111-b52277b8", "DIAL_TRUNK=14") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1111-b52277b8", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1111-b52277b8", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/1111-b52277b8", "DIAL_NUMBER=12302320620501") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/1111-b52277b8", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/1111-b52277b8", "OUTBOUND_GROUP=OUT_14") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1111-b52277b8", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1111-b52277b8", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/1111-b52277b8", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/1111-b52277b8", "outbound-callerid,14") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1111-b52277b8", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/1111-b52277b8", "0?Set(REALCALLERIDNUM=1111)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/1111-b52277b8", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/1111-b52277b8", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/1111-b52277b8", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/1111-b52277b8", "TRUNKOUTCID=QM Outbox") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/1111-b52277b8", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/1111-b52277b8", "1?Set(CALLERID(all)=QM Outbox)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/1111-b52277b8", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/1111-b52277b8", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/1111-b52277b8", "1?AGI(fixlocalprefix)") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
       > fixlocalprefix: Using pattern .
  == fixlocalprefix: Dialpattern . matched. 12302320620501 -> 12302320620501
    -- <SIP/1111-b52277b8>AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/1111-b52277b8", "OUTNUM=12302320620501") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/1111-b52277b8", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/1111-b52277b8", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/1111-b52277b8", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1111-b52277b8", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/1111-b52277b8", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1111-b52277b8", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,21)
    -- Executing [s@macro-dialout-trunk:21] Set("SIP/1111-b52277b8", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/1111-b52277b8", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/1111-b52277b8", "post_num=@queuedial") in new stack
    -- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/1111-b52277b8", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,25)
    -- Executing [s@macro-dialout-trunk:25] Set("SIP/1111-b52277b8", "the_num=12302320620501") in new stack
    -- Executing [s@macro-dialout-trunk:26] Dial("SIP/1111-b52277b8", "Local/12302320620501@queuedial,300,") in new stack
    -- Called 12302320620501@queuedial
    -- Executing [12302320620501@queuedial:1] Set("Local/12302320620501@queuedial-0f7a;2", "QDIALER_QUEUE=q-123") in new stack
    -- Executing [12302320620501@queuedial:2] Set("Local/12302320620501@queuedial-0f7a;2", "QDIALER_NUMBER=02320620501") in new stack
    -- Executing [12302320620501@queuedial:3] Set("Local/12302320620501@queuedial-0f7a;2", "QDIALER_AGENT=Agent/") in new stack
    -- Executing [12302320620501@queuedial:4] Set("Local/12302320620501@queuedial-0f7a;2", "QDIALER_CHANNEL=SIP/MessagenetOUT/02320620501") in new stack
    -- Executing [12302320620501@queuedial:5] Set("Local/12302320620501@queuedial-0f7a;2", "QueueName=q-123") in new stack
    -- Executing [12302320620501@queuedial:6] MixMonitor("Local/12302320620501@queuedial-0f7a;2", "Q-q-123-1268203929.18971.WAV,b,") in new stack
    -- Executing [12302320620501@queuedial:7] Goto("Local/12302320620501@queuedial-0f7a;2", "qm-queuedial,s,1") in new stack
    -- Goto (qm-queuedial,s,1)
  == Spawn extension (qm-queuedial, s, 1) exited non-zero on 'Local/12302320620501@queuedial-0f7a;2'
    -- Executing [h@qm-queuedial:1] NoOp("Local/12302320620501@queuedial-0f7a;2", " "Call exiting: status  answered at:  DS: "  ") in new stack
    -- Executing [h@qm-queuedial:2] Goto("Local/12302320620501@queuedial-0f7a;2", "case-") in new stack
  == Begin MixMonitor Recording Local/12302320620501@queuedial-0f7a;2
  == Spawn extension (qm-queuedial, h, 2) exited non-zero on 'Local/12302320620501@queuedial-0f7a;2'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:27] Goto("SIP/1111-b52277b8", "s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/1111-b52277b8", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/1111-b52277b8", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
    -- Executing [812302320620501@from-internal:5] Macro("SIP/1111-b52277b8", "outisbusy,") in new stack
  == End MixMonitor Recording Local/12302320620501@queuedial-0f7a;2
    -- Executing [s@macro-outisbusy:1] Playback("SIP/1111-b52277b8", "all-circuits-busy-now,noanswer") in new stack
    -- <SIP/1111-b52277b8> Playing 'all-circuits-busy-now.gsm' (language 'it')
  == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/1111-b52277b8' in macro 'outisbusy'
  == Spawn extension (from-internal, 812302320620501, 5) exited non-zero on 'SIP/1111-b52277b8'
    -- Executing [h@from-internal:1] Macro("SIP/1111-b52277b8", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/1111-b52277b8", "1?skiprg") in new stack
   -- Goto (macro-hangupcall,s,4)
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/1111-b52277b8", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/1111-b52277b8", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] Hangup("SIP/1111-b52277b8", "") in new stack
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/1111-b52277b8' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1111-b52277b8'

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Outbound using 8<###><phonenumber>
« Reply #1 on: March 10, 2010, 13:03:21 »
Edit the line at:

exten => s,1,NoOp( "Outbound call - A:${QDIALER_AGENT} N:${QDIALER_NUMBER} Q:${QDIALER_QUEUE} Ch:${QDIALER_CHANNEL}" )

to

exten => s,1,NoOp()

And reload

criceto

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
    • Email
Re: Outbound using 8<###><phonenumber>
« Reply #2 on: March 10, 2010, 14:54:57 »
very strange


the line I have is:

exten => s,1,NoOp,Outbound call -> A:${QDIALER_AGENT} N:${QDIALER_NUMBER} Q:${QDIALER_QUEUE} Ch:${QDIALER_CHANNEL}

btw, is normal this part:
-- Executing [12302320620501@queuedial:3] Set("Local/12302320620501@queuedial-0f7a;2", "QDIALER_AGENT=Agent/") in new stack
« Last Edit: March 10, 2010, 14:56:29 by criceto »

criceto

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
    • Email
Re: Outbound using 8<###><phonenumber>
« Reply #3 on: March 10, 2010, 15:16:41 »
very strange


the line I have is:

exten => s,1,NoOp,Outbound call -> A:${QDIALER_AGENT} N:${QDIALER_NUMBER} Q:${QDIALER_QUEUE} Ch:${QDIALER_CHANNEL}

btw, is normal this part:
-- Executing [12302320620501@queuedial:3] Set("Local/12302320620501@queuedial-0f7a;2", "QDIALER_AGENT=Agent/") in new stack

With this change [exten => s,1,NoOp()] works fine!

The only issue now is that i cannot see the agent, in queue log I see only "agent/ "
1268230473|1268230473.33282|q-660|Agent/|CALLOUTBOUND|-|02320620501|
1268230476|1268230473.33282|q-660|Agent/|CONNECT|3||


bye
« Last Edit: March 10, 2010, 15:18:46 by criceto »

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Outbound using 8<###><phonenumber>
« Reply #4 on: March 11, 2010, 10:09:46 »
This is because you have:

Code: [Select]
QDIALER_AGENT=Agent/
just make sure it reads the CLID correctly.....



criceto

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
    • Email
Re: Outbound using 8<###><phonenumber>
« Reply #5 on: March 11, 2010, 11:48:07 »
FIXED!

the outbound caller id  in trunk definition must be empty

thanks

bye

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Outbound using 8<###><phonenumber>
« Reply #6 on: March 12, 2010, 08:56:38 »
 ;D