Trouble with DID

Discussion in 'General' started by amartin, Sep 11, 2009.

  1. amartin

    Joined:
    Sep 11, 2008
    Messages:
    37
    Likes Received:
    0
    I have a SIP DID that if you send it to a extension and someone answers it works correctly. It also works with find me follow me to a cell phone but again someone must answer. But if it hits voice mail on the sip extension the call ends, but the CLI thinks it sent it to VM. If I send the DID to a time condition or a IVR it gets stuck at -- Executing [s@ivr-2:13] WaitExten("SIP/BandtelE-b650abc8", "|") in new stack. I tried checking off the option to send a ring back to carrier and it didn't work. I also tried sending the call to a IVR through find me follow me but, that didn't work either.

    I noticed I never see anything like Playing 'custom/Intro' (language 'en')

    Code:
    Here is an example if the calling an extension and then the call dropping.
    Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
    This is free software, with components licensed under the GNU General Public
    License version 2 and other licenses; you are welcome to redistribute it under
    certain conditions. Type 'core show license' for details.
    =========================================================================
      == Parsing '/etc/asterisk/asterisk.conf': Found
      == Parsing '/etc/asterisk/extconfig.conf': Found
    Connected to Asterisk 1.4.25 currently running on voip (pid = 2973)
    Verbosity is at least 5
        -- Executing [0200800XXXXXXX@from-pstn:1] Set("SIP/BandtelE-b747bff0", "__FROM_DID=0200800XXXXXXX") in new stack
        -- Executing [0200800XXXXXXX@from-pstn:2] ExecIf("SIP/BandtelE-b747bff0", "1 |Set|CALLERID(name)=XXXXXXXXXX") in new stack
        -- Executing [0200800XXXXXXX@from-pstn:3] Set("SIP/BandtelE-b747bff0", "__CALLINGPRES_SV=allowed_not_screened") in new stack
        -- Executing [0200800XXXXXXX@from-pstn:4] SetCallerPres("SIP/BandtelE-b747bff0", "allowed_not_screened") in new stack
        -- Executing [0200800XXXXXXX@from-pstn:5] Goto("SIP/BandtelE-b747bff0", "from-did-direct|101|1") in new stack
        -- Goto (from-did-direct,101,1)
        -- Executing [101@from-did-direct:1] Macro("SIP/BandtelE-b747bff0", "exten-vm|101|101") in new stack
        -- Executing [s@macro-exten-vm:1] Macro("SIP/BandtelE-b747bff0", "user-callerid") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/BandtelE-b747bff0", "AMPUSER=XXXXXXXXXX") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/BandtelE-b747bff0", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/BandtelE-b747bff0", "1|Set|REALCALLERIDNUM=XXXXXXXXXX") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/BandtelE-b747bff0", "AMPUSER=") in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/BandtelE-b747bff0", "AMPUSERCIDNAME=") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/BandtelE-b747bff0", "1?report") in new stack
        -- Goto (macro-user-callerid,s,10)
        -- Executing [s@macro-user-callerid:10] GotoIf("SIP/BandtelE-b747bff0", "0?continue") in new stack
        -- Executing [s@macro-user-callerid:11] Set("SIP/BandtelE-b747bff0", "__TTL=64") in new stack
        -- Executing [s@macro-user-callerid:12] GotoIf("SIP/BandtelE-b747bff0", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,19)
        -- Executing [s@macro-user-callerid:19] NoOp("SIP/BandtelE-b747bff0", "Using CallerID "XXXXXXXXXX" <XXXXXXXXXX>") in new stack
        -- Executing [s@macro-exten-vm:2] Set("SIP/BandtelE-b747bff0", "RingGroupMethod=none") in new stack
        -- Executing [s@macro-exten-vm:3] Set("SIP/BandtelE-b747bff0", "VMBOX=101") in new stack
        -- Executing [s@macro-exten-vm:4] Set("SIP/BandtelE-b747bff0", "EXTTOCALL=101") in new stack
        -- Executing [s@macro-exten-vm:5] Set("SIP/BandtelE-b747bff0", "CFUEXT=") in new stack
        -- Executing [s@macro-exten-vm:6] Set("SIP/BandtelE-b747bff0", "CFBEXT=") in new stack
        -- Executing [s@macro-exten-vm:7] Set("SIP/BandtelE-b747bff0", "RT=25") in new stack
        -- Executing [s@macro-exten-vm:8] Macro("SIP/BandtelE-b747bff0", "record-enable|101|IN") in new stack
        -- Executing [s@macro-record-enable:1] GotoIf("SIP/BandtelE-b747bff0", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] AGI("SIP/BandtelE-b747bff0", "recordingcheck|20090910-193012|1252625412.14835") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
      recordingcheck|20090910-193012|1252625412.14835: Inbound recording not enabled
        -- AGI Script recordingcheck completed, returning 0
        -- Executing [s@macro-record-enable:5] MacroExit("SIP/BandtelE-b747bff0", "") in new stack
        -- Executing [s@macro-exten-vm:9] Macro("SIP/BandtelE-b747bff0", "dial|25|tr|101") in new stack
        -- Executing [s@macro-dial:1] GotoIf("SIP/BandtelE-b747bff0", "1?dial") in new stack
        -- Goto (macro-dial,s,3)
        -- Executing [s@macro-dial:3] AGI("SIP/BandtelE-b747bff0", "dialparties.agi") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
      dialparties.agi: Starting New Dialparties.agi
      == Parsing '/etc/asterisk/manager.conf': Found
      == Parsing '/etc/asterisk/manager_additional.conf': Found
      == Parsing '/etc/asterisk/manager_custom.conf': Found
      == Manager 'admin' logged on from 127.0.0.1
      dialparties.agi: Caller ID name is 'XXXXXXXXXX' number is 'XXXXXXXXXX'
      dialparties.agi: USE_CONFIRMATION:  'FALSE'
      dialparties.agi: RINGGROUP_INDEX:   ''
      dialparties.agi: Methodology of ring is  'none'
        --  dialparties.agi: Added extension 101 to extension map
           >  dialparties.agi: Extension 101 has call screening off
        --  dialparties.agi: Extension 101 cf is disabled
        --  dialparties.agi: Extension 101 do not disturb is disabled
           >  dialparties.agi: extnum 101 has:  cw: 0; hascfb: 0 [] hascfu: 0 []
           >  dialparties.agi: ExtensionState: 0
      dialparties.agi: Extension 101 has ExtensionState: 0
        --  dialparties.agi: Checking CW and CFB status for extension 101
        --  dialparties.agi: dbset CALLTRACE/101 to XXXXXXXXXX
        --  dialparties.agi: Filtered ARG3: 101
      == Manager 'admin' logged off from 127.0.0.1
        -- AGI Script dialparties.agi completed, returning 0
        -- Executing [s@macro-dial:7] Dial("SIP/BandtelE-b747bff0", "SIP/101|25|tr") in new stack
        -- Called 101
        -- SIP/101-09fe9188 is ringing
        -- Nobody picked up in 25000 ms
        -- Executing [s@macro-dial:8] Set("SIP/BandtelE-b747bff0", "DIALSTATUS=NOANSWER") in new stack
        -- Executing [s@macro-dial:9] GosubIf("SIP/BandtelE-b747bff0", "0?NOANSWER|1") in new stack
        -- Executing [s@macro-exten-vm:10] GotoIf("SIP/BandtelE-b747bff0", "0?exit|return") in new stack
        -- Executing [s@macro-exten-vm:11] Set("SIP/BandtelE-b747bff0", "SV_DIALSTATUS=NOANSWER") in new stack
        -- Executing [s@macro-exten-vm:12] GosubIf("SIP/BandtelE-b747bff0", "0?docfu|1") in new stack
        -- Executing [s@macro-exten-vm:13] GosubIf("SIP/BandtelE-b747bff0", "0?docfb|1") in new stack
        -- Executing [s@macro-exten-vm:14] Set("SIP/BandtelE-b747bff0", "DIALSTATUS=NOANSWER") in new stack
        -- Executing [s@macro-exten-vm:15] NoOp("SIP/BandtelE-b747bff0", "Voicemail is 101") in new stack
        -- Executing [s@macro-exten-vm:16] GotoIf("SIP/BandtelE-b747bff0", "0?s-NOANSWER|1") in new stack
        -- Executing [s@macro-exten-vm:17] NoOp("SIP/BandtelE-b747bff0", "Sending to Voicemail box 101") in new stack
        -- Executing [s@macro-exten-vm:18] Macro("SIP/BandtelE-b747bff0", "vm|101|NOANSWER|") in new stack
        -- Executing [s@macro-vm:1] Macro("SIP/BandtelE-b747bff0", "user-callerid|SKIPTTL") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/BandtelE-b747bff0", "AMPUSER=XXXXXXXXXX") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/BandtelE-b747bff0", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/BandtelE-b747bff0", "0|Set|REALCALLERIDNUM=XXXXXXXXXX") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/BandtelE-b747bff0", "AMPUSER=") in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/BandtelE-b747bff0", "AMPUSERCIDNAME=") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/BandtelE-b747bff0", "1?report") in new stack
        -- Goto (macro-user-callerid,s,10)
        -- Executing [s@macro-user-callerid:10] GotoIf("SIP/BandtelE-b747bff0", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,19)
        -- Executing [s@macro-user-callerid:19] NoOp("SIP/BandtelE-b747bff0", "Using CallerID "XXXXXXXXXX" <XXXXXXXXXX>") in new stack
        -- Executing [s@macro-vm:2] Set("SIP/BandtelE-b747bff0", "VMGAIN=""") in new stack
        -- Executing [s@macro-vm:3] GotoIf("SIP/BandtelE-b747bff0", "1?vmx|1") in new stack
        -- Goto (macro-vm,vmx,1)
        -- Executing [vmx@macro-vm:1] GotoIf("SIP/BandtelE-b747bff0", "0?s-NOANSWER|1") in new stack
        -- Executing [vmx@macro-vm:2] Set("SIP/BandtelE-b747bff0", "MODE=unavail") in new stack
        -- Executing [vmx@macro-vm:3] GotoIf("SIP/BandtelE-b747bff0", "1?notdirect") in new stack
        -- Goto (macro-vm,vmx,5)
        -- Executing [vmx@macro-vm:5] NoOp("SIP/BandtelE-b747bff0", "Checking if ext 101 is enabled: ") in new stack
        -- Executing [vmx@macro-vm:6] GotoIf("SIP/BandtelE-b747bff0", "1?s-NOANSWER|1") in new stack
        -- Goto (macro-vm,s-NOANSWER,1)
        -- Executing [s-NOANSWER@macro-vm:1] Macro("SIP/BandtelE-b747bff0", "get-vmcontext|101") in new stack
        -- Executing [s@macro-get-vmcontext:1] Set("SIP/BandtelE-b747bff0", "VMCONTEXT=default") in new stack
        -- Executing [s@macro-get-vmcontext:2] GotoIf("SIP/BandtelE-b747bff0", "0?200:300") in new stack
        -- Goto (macro-get-vmcontext,s,300)
        -- Executing [s@macro-get-vmcontext:300] NoOp("SIP/BandtelE-b747bff0", "") in new stack
        -- Executing [s-NOANSWER@macro-vm:2] VoiceMail("SIP/BandtelE-b747bff0", "101@default|su") in new stack
      == Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on 'SIP/BandtelE-b747bff0' in macro 'vm'
      == Spawn extension (macro-exten-vm, s, 18) exited non-zero on 'SIP/BandtelE-b747bff0' in macro 'exten-vm'
      == Spawn extension (from-did-direct, 101, 1) exited non-zero on 'SIP/BandtelE-b747bff0'
    voip*CLI>
    
    
     
  2. amartin

    Joined:
    Sep 11, 2008
    Messages:
    37
    Likes Received:
    0
    Here is what happens if the call goes to a IVR

    Code:
        -- Executing [0200800XXXXXXX@from-pstn:1] Set("SIP/BandtelE-b650abc8", "__FROM_DID=0200800XXXXXXX") in new stack
        -- Executing [0200800XXXXXXX@from-pstn:2] ExecIf("SIP/BandtelE-b650abc8", "1 |Set|CALLERID(name)=603XXXXXXX") in new stack
        -- Executing [0200800XXXXXXX@from-pstn:3] Ringing("SIP/BandtelE-b650abc8", "") in new stack
        -- Executing [0200800XXXXXXX@from-pstn:4] Set("SIP/BandtelE-b650abc8", "__CALLINGPRES_SV=allowed_not_screened") in new stack
        -- Executing [0200800XXXXXXX@from-pstn:5] SetCallerPres("SIP/BandtelE-b650abc8", "allowed_not_screened") in new stack
        -- Executing [0200800XXXXXXX@from-pstn:6] Goto("SIP/BandtelE-b650abc8", "ivr-2|s|1") in new stack
        -- Goto (ivr-2,s,1)
        -- Executing [s@ivr-2:1] Set("SIP/BandtelE-b650abc8", "MSG=custom/Intro&custom/If_you_know_Parties_Extension&custom/sales&custom/press1&custom/support&custom/press2&custom/for_accounting&custom/press3&custom/for_dial_by&custom/press4&custom/for_asstance&custom/press0") in new stack
        -- Executing [s@ivr-2:2] Set("SIP/BandtelE-b650abc8", "LOOPCOUNT=0") in new stack
        -- Executing [s@ivr-2:3] Set("SIP/BandtelE-b650abc8", "__DIR-CONTEXT=default") in new stack
        -- Executing [s@ivr-2:4] Set("SIP/BandtelE-b650abc8", "_IVR_CONTEXT_ivr-2=") in new stack
        -- Executing [s@ivr-2:5] Set("SIP/BandtelE-b650abc8", "_IVR_CONTEXT=ivr-2") in new stack
        -- Executing [s@ivr-2:6] GotoIf("SIP/BandtelE-b650abc8", "0?begin") in new stack
        -- Executing [s@ivr-2:7] Answer("SIP/BandtelE-b650abc8", "") in new stack
        -- Executing [s@ivr-2:8] Wait("SIP/BandtelE-b650abc8", "1") in new stack
        -- Executing [s@ivr-2:9] Set("SIP/BandtelE-b650abc8", "TIMEOUT(digit)=3") in new stack
        -- Digit timeout set to 3
        -- Executing [s@ivr-2:10] Set("SIP/BandtelE-b650abc8", "TIMEOUT(response)=10") in new stack
        -- Response timeout set to 10
        -- Executing [s@ivr-2:11] Set("SIP/BandtelE-b650abc8", "__IVR_RETVM=") in new stack
        -- Executing [s@ivr-2:12] ExecIf("SIP/BandtelE-b650abc8", "1|Background|custom/Intro&custom/If_you_know_Parties_Extension&custom/sales&custom/press1&custom/support&custom/press2&custom/for_accounting&custom/press3&custom/for_dial_by&custom/press4&custom/for_asstance&custom/press0") in new stack
        -- Executing [s@ivr-2:13] WaitExten("SIP/BandtelE-b650abc8", "|") in new stack
    voip*CLI>
     

Share This Page