Can not call with a2billing

Discussion in 'General' started by henrik Ekenberg, Nov 21, 2010.

  1. henrik Ekenberg

    Joined:
    Nov 20, 2010
    Messages:
    11
    Likes Received:
    0
    Hi,

    Normal calling is working great with my elastix server.
    Now I wanted to test to use a2billing.
    I upgraded to last a2billing version - looks ok -

    When I call it hangs up. I post the stack maybe you can give me some advices.

    I made some test also

    ls -rtla /var/lib/asterisk/agi-bin/a2billing.php
    lrwxrwxrwx 1 asterisk asterisk 42 Nov 21 11:32 /var/lib/asterisk/agi-bin/a2billing.php -> /usr/local/src/a2billing/AGI/a2billing.php

    php /var/lib/asterisk/agi-bin/a2billing.php -v
    A2Billing - Version 1.8.1 (Corylus)

    yes "" | php /var/lib/asterisk/agi-bin/a2billing.php 1
    GET VARIABLE IDCONF
    ANSWER
    GET DATA prepaid-enter-pin-number 6000 15
    STREAM FILE prepaid-invalid-digits "#" 0
    GET DATA prepaid-enter-pin-number 6000 15
    STREAM FILE prepaid-invalid-digits "#" 0
    GET DATA prepaid-enter-pin-number 6000 15
    HANGUP


    -----------------------------
    Stack -


    [Nov 21 12:53:24] VERBOSE[4195] netsock.c: == Using SIP RTP TOS bits 184
    [Nov 21 12:53:24] VERBOSE[4195] netsock.c: == Using SIP RTP CoS mark 5
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [0046857841901@from-internal:1] Macro("SIP/7407574-00000005", "user-callerid,SKIPTTL,") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/7407574-00000005", "AMPUSER=7407574") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/7407574-00000005", "0?report") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/7407574-00000005", "1?Set(REALCALLERIDNUM=7407574)") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/7407574-00000005", "AMPUSER=7407574") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/7407574-00000005", "AMPUSERCIDNAME=Henrik") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/7407574-00000005", "0?report") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/7407574-00000005", "AMPUSERCID=7407574") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-user-callerid:8] Set("SIP/7407574-00000005", "CALLERID(all)="Henrik" <7407574>") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-user-callerid:9] ExecIf("SIP/7407574-00000005", "0?Set(CHANNEL(language)=)") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-user-callerid:10] GotoIf("SIP/7407574-00000005", "1?continue") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Goto (macro-user-callerid,s,19)
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-user-callerid:19] NoOp("SIP/7407574-00000005", "Using CallerID "Henrik" <7407574>") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [0046857841901@from-internal:2] NoOp("SIP/7407574-00000005", "Calling Out Route: Abilling") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [0046857841901@from-internal:3] Set("SIP/7407574-00000005", "MOHCLASS=default") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [0046857841901@from-internal:4] ExecIf("SIP/7407574-00000005", "1?Set(TRUNKCIDOVERRIDE=02507104612)") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [0046857841901@from-internal:5] Set("SIP/7407574-00000005", "_NODEST=") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [0046857841901@from-internal:6] Macro("SIP/7407574-00000005", "record-enable,7407574,OUT,") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/7407574-00000005", "1?check") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Goto (macro-record-enable,s,4)
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-record-enable:4] ExecIf("SIP/7407574-00000005", "0?MacroExit()") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-record-enable:5] GotoIf("SIP/7407574-00000005", "0?Group:OUT") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Goto (macro-record-enable,s,15)
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-record-enable:15] GotoIf("SIP/7407574-00000005", "0?IN") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-record-enable:16] ExecIf("SIP/7407574-00000005", "1?MacroExit()") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [0046857841901@from-internal:7] Macro("SIP/7407574-00000005", "dialout-trunk,2,0046857841901,") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/7407574-00000005", "DIAL_TRUNK=2") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/7407574-00000005", "0?sub-pincheck,s,1") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/7407574-00000005", "0?disabletrunk,1") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/7407574-00000005", "DIAL_NUMBER=0046857841901") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/7407574-00000005", "DIAL_TRUNK_OPTIONS=tr") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/7407574-00000005", "OUTBOUND_GROUP=OUT_2") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/7407574-00000005", "1?nomax") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Goto (macro-dialout-trunk,s,9)
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/7407574-00000005", "0?skipoutcid") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/7407574-00000005", "DIAL_TRUNK_OPTIONS=") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/7407574-00000005", "outbound-callerid,2") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/7407574-00000005", "0?Set(CALLERPRES()=)") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/7407574-00000005", "0?Set(REALCALLERIDNUM=7407574)") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/7407574-00000005", "1?normcid") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Goto (macro-outbound-callerid,s,6)
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-outbound-callerid:6] Set("SIP/7407574-00000005", "USEROUTCID=") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/7407574-00000005", "EMERGENCYCID=") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/7407574-00000005", "TRUNKOUTCID=") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/7407574-00000005", "1?trunkcid") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Goto (macro-outbound-callerid,s,12)
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/7407574-00000005", "0?Set(CALLERID(all)=)") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/7407574-00000005", "0?Set(CALLERID(all)=)") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/7407574-00000005", "1?Set(CALLERID(all)=02507104612)") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/7407574-00000005", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/7407574-00000005", "0?sub-flp-2,s,1") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/7407574-00000005", "OUTNUM=0046857841901") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/7407574-00000005", "custom=AMP") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/7407574-00000005", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/7407574-00000005", "dialout-trunk-predial-hook,") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/7407574-00000005", "") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/7407574-00000005", "0?bypass,1") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/7407574-00000005", "1?customtrunk") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Goto (macro-dialout-trunk,s,22)
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:22] Set("SIP/7407574-00000005", "pre_num=AMP:Local/") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:23] Set("SIP/7407574-00000005", "the_num=OUTNUM") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:24] Set("SIP/7407574-00000005", "post_num=@a2billing/n") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/7407574-00000005", "1?outnum:skipoutnum") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Goto (macro-dialout-trunk,s,26)
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:26] Set("SIP/7407574-00000005", "the_num=0046857841901") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] pbx.c: -- Executing [s@macro-dialout-trunk:27] Dial("SIP/7407574-00000005", "Local/0046857841901@a2billing/n,300,") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] app_dial.c: -- Called 0046857841901@a2billing/n
    [Nov 21 12:53:24] VERBOSE[4313] pbx.c: -- Executing [0046857841901@a2billing:1] Answer("Local/0046857841901@a2billing-c597;2", "") in new stack
    [Nov 21 12:53:24] VERBOSE[4312] app_dial.c: -- Local/0046857841901@a2billing-c597;1 answered SIP/7407574-00000005
    [Nov 21 12:53:25] VERBOSE[4313] pbx.c: -- Executing [0046857841901@a2billing:2] Wait("Local/0046857841901@a2billing-c597;2", "1") in new stack
    [Nov 21 12:53:26] VERBOSE[4313] pbx.c: -- Executing [0046857841901@a2billing:3] DeadAGI("Local/0046857841901@a2billing-c597;2", "a2billing.php|1") in new stack
    [Nov 21 12:53:26] WARNING[4313] pbx.c: The application delimiter is now the comma, not the pipe. Did you forget to convert your dialplan? (DeadAGI(a2billing.php|1))
    [Nov 21 12:53:26] WARNING[4313] res_agi.c: DeadAGI has been deprecated, please use AGI in all cases!
    [Nov 21 12:53:26] WARNING[4313] res_agi.c: Failed to execute '/var/lib/asterisk/agi-bin/a2billing.php|1': File does not exist.
    [Nov 21 12:53:26] VERBOSE[4313] pbx.c: -- Executing [0046857841901@a2billing:4] Hangup("Local/0046857841901@a2billing-c597;2", "") in new stack
    [Nov 21 12:53:26] VERBOSE[4313] pbx.c: == Spawn extension (a2billing, 0046857841901, 4) exited non-zero on 'Local/0046857841901@a2billing-c597;2'
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [h@macro-dialout-trunk:1] Macro("SIP/7407574-00000005", "hangupcall,") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/7407574-00000005", "1?noautomon") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Goto (macro-hangupcall,s,3)
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:3] NoOp("SIP/7407574-00000005", "TOUCH_MONITOR_OUTPUT=") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/7407574-00000005", "1?skiprg") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Goto (macro-hangupcall,s,7)
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/7407574-00000005", "1?skipblkvm") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Goto (macro-hangupcall,s,10)
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:10] GotoIf("SIP/7407574-00000005", "1?theend") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Goto (macro-hangupcall,s,12)
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:12] Hangup("SIP/7407574-00000005", "") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] app_macro.c: == Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/7407574-00000005' in macro 'hangupcall'
    [Nov 21 12:53:26] VERBOSE[4312] features.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/7407574-00000005'
    [Nov 21 12:53:26] VERBOSE[4312] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 27) exited non-zero on 'SIP/7407574-00000005' in macro 'dialout-trunk'
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: == Spawn extension (from-internal, 0046857841901, 7) exited non-zero on 'SIP/7407574-00000005'
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [h@from-internal:1] Macro("SIP/7407574-00000005", "hangupcall") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/7407574-00000005", "1?noautomon") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Goto (macro-hangupcall,s,3)
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:3] NoOp("SIP/7407574-00000005", "TOUCH_MONITOR_OUTPUT=") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/7407574-00000005", "1?skiprg") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Goto (macro-hangupcall,s,7)
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/7407574-00000005", "1?skipblkvm") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Goto (macro-hangupcall,s,10)
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:10] GotoIf("SIP/7407574-00000005", "1?theend") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Goto (macro-hangupcall,s,12)
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: -- Executing [s@macro-hangupcall:12] Hangup("SIP/7407574-00000005", "") in new stack
    [Nov 21 12:53:26] VERBOSE[4312] app_macro.c: == Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/7407574-00000005' in macro 'hangupcall'
    [Nov 21 12:53:26] VERBOSE[4312] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/7407574-00000005'
     
  2. mm.alpha2k

    Joined:
    Jun 19, 2010
    Messages:
    165
    Likes Received:
    0
    Aca esta el problema

    [Nov 21 12:53:26] WARNING[4313] res_agi.c: DeadAGI has been deprecated, please use AGI in all cases!
    [Nov 21 12:53:26] WARNING[4313] res_agi.c: Failed to execute '/var/lib/asterisk/agi-bin/a2billing.php|1': File does not exist.
    [Nov 21 12:53:26] VERBOSE[4313] pbx.c: -- Executing [0046857841901@a2billing:4] Hangup("Local/0046857841901@a2billing-c597;2", "") in


    En extensions_a2billing.conf cambia
    exten => _X.,n,DeadAGI(a2billing.php|1)

    Por esta otra
    exten => _X.,n,DeadAGI(a2billing.php)
     
  3. cfcnightmare

    Joined:
    Sep 4, 2010
    Messages:
    2
    Likes Received:
    0
  4. henrik Ekenberg

    Joined:
    Nov 20, 2010
    Messages:
    11
    Likes Received:
    0
    Re: Re:Can not call with a2billing

    Hi,

    I have test those step by step but still have problems.

    B.R
    H.E
     
  5. henrik Ekenberg

    Joined:
    Nov 20, 2010
    Messages:
    11
    Likes Received:
    0
    mm.alpha2k escribió:

    Thanks this solved part of my problem :)

    in extensions_a2billing.conf I correct the line

    [a2billing]

    exten => _X.,1,Answer
    exten => _X.,n,Wait(1)
    exten => _X.,n,DeadAGI(a2billing.php)
    exten => _X.,n,Hangup

    .

    My new problem is that I do not get direct dial but need to dial a nummer.

    So new searching now :)
     
  6. mm.alpha2k

    Joined:
    Jun 19, 2010
    Messages:
    165
    Likes Received:
    0
    that you noted with direct line?
    when you dial a number, then you ask again that you enter the number that you want to call?
    if so, under system setting => agi-conf1
    Yes use_dnid
     
  7. henrik Ekenberg

    Joined:
    Nov 20, 2010
    Messages:
    11
    Likes Received:
    0
    mm.alpha2k escribió:
    Hi,

    Thanks that solved my problem :)

    New issue - not a problem -.

    B.R
    H.E
     
  8. Jeleo

    Joined:
    Aug 4, 2010
    Messages:
    32
    Likes Received:
    0
    En mi caso no he podido sacar llamadas. sigo tu concejo pero aún nada.

    Agradecería mucho el que me puedan ayudar, he buscado por toda la web y hay muy poco material al respecto.

    De antemano muchas gracias ...


    Lo que se me muestra es lo siguiente:

    elastix2*CLI>
    elastix2*CLI>
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    -- Executing [3003310488@from-internal:1] Macro("SIP/2000-00000018", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/2000-00000018", "AMPUSER=2000") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/2000-00000018", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/2000-00000018", "1?Set(REALCALLERIDNUM=2000)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/2000-00000018", "AMPUSER=2000") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/2000-00000018", "AMPUSERCIDNAME=jeleo") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/2000-00000018", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/2000-00000018", "AMPUSERCID=2000") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/2000-00000018", "CALLERID(all)="jeleo" <2000>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/2000-00000018", "1?Set(CHANNEL(language)=es)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/2000-00000018", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/2000-00000018", "Using CallerID "jeleo" <2000>") in new stack
    -- Executing [3003310488@from-internal:2] Set("SIP/2000-00000018", "_NODEST=") in new stack
    -- Executing [3003310488@from-internal:3] Macro("SIP/2000-00000018", "record-enable,2000,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/2000-00000018", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/2000-00000018", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/2000-00000018", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/2000-00000018", "0?IN") in new stack
    -- Executing [s@macro-record-enable:16] ExecIf("SIP/2000-00000018", "1?MacroExit()") in new stack
    -- Executing [3003310488@from-internal:4] Macro("SIP/2000-00000018", "dialout-trunk,3,3003310488,,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/2000-00000018", "DIAL_TRUNK=3") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/2000-00000018", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/2000-00000018", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/2000-00000018", "DIAL_NUMBER=3003310488") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/2000-00000018", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/2000-00000018", "OUTBOUND_GROUP=OUT_3") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/2000-00000018", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/2000-00000018", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/2000-00000018", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/2000-00000018", "outbound-callerid,3") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/2000-00000018", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/2000-00000018", "0?Set(REALCALLERIDNUM=2000)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/2000-00000018", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/2000-00000018", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/2000-00000018", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/2000-00000018", "TRUNKOUTCID=1234") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/2000-00000018", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/2000-00000018", "1?Set(CALLERID(all)=1234)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/2000-00000018", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/2000-00000018", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/2000-00000018", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/2000-00000018", "0?AGI(fixlocalprefix)") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/2000-00000018", "OUTNUM=3003310488") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/2000-00000018", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/2000-00000018", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/2000-00000018", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/2000-00000018", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/2000-00000018", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/2000-00000018", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/2000-00000018", "pre_num=AMP:localhost/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/2000-00000018", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/2000-00000018", "post_num=@a2billing/n") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/2000-00000018", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/2000-00000018", "the_num=3003310488") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/2000-00000018", "localhost/3003310488@a2billing/n,300,") in new stack
    == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:28] NoOp("SIP/2000-00000018", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 66") in new stack
    -- Executing [s@macro-dialout-trunk:29] Goto("SIP/2000-00000018", "s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/2000-00000018", "RC=66") in new stack
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/2000-00000018", "66,1") in new stack
    -- Goto (macro-dialout-trunk,66,1)
    -- Executing [66@macro-dialout-trunk:1] Goto("SIP/2000-00000018", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/2000-00000018", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/2000-00000018", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 66 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] Set("SIP/2000-00000018", "CALLERID(number)=2000") in new stack
    -- Executing [3003310488@from-internal:5] Macro("SIP/2000-00000018", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("SIP/2000-00000018", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("SIP/2000-00000018", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("SIP/2000-00000018", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("SIP/2000-00000018", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- <SIP/2000-00000018> Playing 'all-circuits-busy-now.gsm' (language 'es')
    -- <SIP/2000-00000018> Playing 'pls-try-call-later.gsm' (language 'es')
    == Spawn extension (macro-outisbusy, s, 4) exited non-zero on 'SIP/2000-00000018' in macro 'outisbusy'
    == Spawn extension (from-internal, 3003310488, 5) exited non-zero on 'SIP/2000-00000018'
    -- Executing [h@from-internal:1] Macro("SIP/2000-00000018", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/2000-00000018", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] NoOp("SIP/2000-00000018", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/2000-00000018", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/2000-00000018", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,10)
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/2000-00000018", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,12)
    -- Executing [s@macro-hangupcall:12] Hangup("SIP/2000-00000018", "") in new stack
    == Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/2000-00000018' in macro 'hangupcall'
    == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/2000-00000018'
    elastix2*CLI>
     

Share This Page