Grandstream BT102 Transfer call

Discussion in 'General' started by possebon, Jul 11, 2009.

  1. possebon

    Joined:
    Dec 26, 2008
    Messages:
    46
    Likes Received:
    0
    Hi folks,

    I've been trying to figure out what it's happening with transfering calls.


    I have a Grandstream BT102 phone and when I try to transfer the call, I'm able to do it, but it seems that it does not use the transfer of asterisk.

    I'm trying to create a custom transfer macro (have changed on globals_custom.conf), and when I do transfer call with X-Lite (*2) or (##) I pass in to my transfer-custom macro.

    When I do the transfer with Grandstream BT102 (pressing Flash, dialing the extension, then pressing Transfer) it does not go through the transfer custom macro.

    I'm posting here the whole console

    Code:
    
        -- Executing [3519803190@from-sip-external:1] NoOp("SIP/TNTVoIP90-0930cd70", "Received incoming SIP connection from unknown peer to 000000000") in new stack
        -- Executing [3519803190@from-sip-external:2] Set("SIP/TNTVoIP90-0930cd70", "DID=000000000") in new stack
        -- Executing [3519803190@from-sip-external:3] Goto("SIP/TNTVoIP90-0930cd70", "s|1") in new stack
        -- Goto (from-sip-external,s,1)
        -- Executing [s@from-sip-external:1] GotoIf("SIP/TNTVoIP90-0930cd70", "1?from-trunk|000000000|1") in new stack
        -- Goto (from-trunk,3519803190,1)
        -- Executing [3519803190@from-trunk:1] Set("SIP/TNTVoIP90-0930cd70", "__FROM_DID=000000000") in new stack
        -- Executing [3519803190@from-trunk:2] ExecIf("SIP/TNTVoIP90-0930cd70", "0 |Set|CALLERID(name)=000000000") in new stack
        -- Executing [3519803190@from-trunk:3] Verbose("SIP/TNTVoIP90-0930cd70", "Contexto da Chamada=from-trunk") in new stack
    Contexto da Chamada=from-trunkd
        -- Executing [3519803190@from-trunk:4] Goto("SIP/TNTVoIP90-0930cd70", "mycustom-context|3015|1") in new stack
        -- Goto (mycustom-context,3015,1)
        -- Executing [3015@mycustom-context:1] Verbose("SIP/TNTVoIP90-0930cd70", "Chamada de entrada com o numero=000000000") in new stack
    Chamada de entrada com o numero=220161000
        -- Executing [3015@mycustom-context:2] Verbose("SIP/TNTVoIP90-0930cd70", "Valor de lastapp Verbose") in new stack
    Valor de lastapp Verbose reload
        -- Executing [3015@mycustom-context:3] Verbose("SIP/TNTVoIP90-0930cd70", "Valor de lastdata Valor de lastapp Verbose") in new stack
    Valor de lastdata Valor de lastapp Verbose
        -- Executing [3015@mycustom-context:4] Verbose("SIP/TNTVoIP90-0930cd70", "Valor de dcontext from-sip-external") in new stack
    Valor de dcontext from-sip-external
        -- Executing [3015@mycustom-context:5] Verbose("SIP/TNTVoIP90-0930cd70", "Valor de channel SIP/TNTVoIP90-0930cd70") in new stack
    Valor de channel SIP/TNTVoIP90-0930cd70
        -- Executing [3015@mycustom-context:6] Verbose("SIP/TNTVoIP90-0930cd70", "Valor de dstchannel ") in new stack
    Valor de dstchannel plan reload
        -- Executing [3015@mycustom-context:7] Verbose("SIP/TNTVoIP90-0930cd70", "Valor de amaflags DOCUMENTATION") in new stack
    Valor de amaflags DOCUMENTATION
        -- Executing [3015@mycustom-context:8] SetCallerPres("SIP/TNTVoIP90-0930cd70", "allowed") in new stack
        -- Executing [3015@mycustom-context:9] Answer("SIP/TNTVoIP90-0930cd70", "") in new stack
        -- Executing [3015@mycustom-context:10] Verbose("SIP/TNTVoIP90-0930cd70", "NUMERO que entra na central=3015") in new stack
    NUMERO que entra na central=3015
        -- Executing [3015@mycustom-context:11] Playback("SIP/TNTVoIP90-0930cd70", "beep") in new stack
        -- <SIP/TNTVoIP90-0930cd70> Playing 'beep' (language 'br')
        -- Executing [3015@mycustom-context:12] Verbose("SIP/TNTVoIP90-0930cd70", "Contexto da Chamada=mycustom-context") in new stack
    Contexto da Chamada=mycustom-context
        -- Executing [3015@mycustom-context:13] Set("SIP/TNTVoIP90-0930cd70", "TIMEOUT(absolute) = 60") in new stack
        -- Executing [3015@mycustom-context:14] Set("SIP/TNTVoIP90-0930cd70", "LIMIT_PLAYAUDIO_CALLEE=yes") in new stack
        -- Executing [3015@mycustom-context:15] Set("SIP/TNTVoIP90-0930cd70", "LIMIT_WARNING_FILE=beep") in new stack
        -- Executing [3015@mycustom-context:16] Set("SIP/TNTVoIP90-0930cd70", "LIMIT_TIMEOUT_FILE=beep") in new stack
        -- Executing [3015@mycustom-context:17] Dial("SIP/TNTVoIP90-0930cd70", "SIP/3015|10|L(60000:60000:30000)r") in new stack
        -- Limit Data for this call:
           > timelimit      = 60000
           > play_warning   = 60000
           > play_to_caller = yes
           > play_to_callee = yes
           > warning_freq   = 30000
           > start_sound    = (null)
           > warning_sound  = beep
           > end_sound      = beep
        -- Called 3015
        -- SIP/3015-092ed838 is ringing
        -- SIP/3015-092ed838 answered SIP/TNTVoIP90-0930cd70
        -- <SIP/TNTVoIP90-0930cd70> Playing 'beep' (language 'br')
        -- <SIP/3015-092ed838> Playing 'beep' (language 'br')
        -- Started music on hold, class 'default', on SIP/TNTVoIP90-0930cd70
        -- Executing [3001@from-internal:1] Macro("SIP/3015-09361948", "exten-vm|novm|3001") in new stack
        -- Executing [s@macro-exten-vm:1] Macro("SIP/3015-09361948", "user-callerid") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/3015-09361948", "AMPUSER=3015") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/3015-09361948", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/3015-09361948", "1|Set|REALCALLERIDNUM=3015") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/3015-09361948", "AMPUSER=3015") in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/3015-09361948", "AMPUSERCIDNAME=(Casa)") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/3015-09361948", "0?report") in new stack
        -- Executing [s@macro-user-callerid:7] Set("SIP/3015-09361948", "AMPUSERCID=3003") in new stack
        -- Executing [s@macro-user-callerid:8] Set("SIP/3015-09361948", "CALLERID(all)="(Casa)" <3003>") in new stack
        -- Executing [s@macro-user-callerid:9] Set("SIP/3015-09361948", "REALCALLERIDNUM=3015") in new stack
        -- Executing [s@macro-user-callerid:10] ExecIf("SIP/3015-09361948", "0|Set|CHANNEL(language)=") in new stack
        -- Executing [s@macro-user-callerid:11] GotoIf("SIP/3015-09361948", "0?continue") in new stack
        -- Executing [s@macro-user-callerid:12] Set("SIP/3015-09361948", "__TTL=64") in new stack
        -- Executing [s@macro-user-callerid:13] GotoIf("SIP/3015-09361948", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,20)
        -- Executing [s@macro-user-callerid:20] NoOp("SIP/3015-09361948", "Using CallerID "(Casa)" <3003>") in new stack
        -- Executing [s@macro-exten-vm:2] Set("SIP/3015-09361948", "RingGroupMethod=none") in new stack
        -- Executing [s@macro-exten-vm:3] Set("SIP/3015-09361948", "VMBOX=novm") in new stack
        -- Executing [s@macro-exten-vm:4] Set("SIP/3015-09361948", "EXTTOCALL=3001") in new stack
        -- Executing [s@macro-exten-vm:5] Set("SIP/3015-09361948", "CFUEXT=") in new stack
        -- Executing [s@macro-exten-vm:6] Set("SIP/3015-09361948", "CFBEXT=") in new stack
        -- Executing [s@macro-exten-vm:7] Set("SIP/3015-09361948", "RT=""") in new stack
        -- Executing [s@macro-exten-vm:8] Macro("SIP/3015-09361948", "record-enable|3001|IN") in new stack
        -- Executing [s@macro-record-enable:1] GotoIf("SIP/3015-09361948", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] AGI("SIP/3015-09361948", "recordingcheck|20090711-174213|1247330533.46") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
      recordingcheck|20090711-174213|1247330533.46: Inbound recording not enabled
        -- AGI Script recordingcheck completed, returning 0
        -- Executing [s@macro-record-enable:5] MacroExit("SIP/3015-09361948", "") in new stack
        -- Executing [s@macro-exten-vm:9] Macro("SIP/3015-09361948", "dial||Tt|3001") in new stack
        -- Executing [s@macro-dial:1] GotoIf("SIP/3015-09361948", "1?dial") in new stack
        -- Goto (macro-dial,s,3)oad
        -- Executing [s@macro-dial:3] AGI("SIP/3015-09361948", "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 '(Casa)' number is '3003'
      dialparties.agi: Methodology of ring is  'none'
        --  dialparties.agi: Added extension 3001 to extension map
        --  dialparties.agi: Extension 3001 cf is disabled
        --  dialparties.agi: Extension 3001 do not disturb is disabled
      dialparties.agi: Extension 3001 has ExtensionState: 0
        --  dialparties.agi: Checking CW and CFB status for extension 3001
        --  dialparties.agi: dbset CALLTRACE/3001 to 3003
        --  dialparties.agi: Filtered ARG3: 3001
      == Manager 'admin' logged off from 127.0.0.1
        -- AGI Script dialparties.agi completed, returning 0
        -- Executing [s@macro-dial:7] Dial("SIP/3015-09361948", "SIP/3001||Tt") in new stack
        -- Called 3001alplan reload
        -- SIP/3001-0936c780 is ringing
        -- SIP/3001-0936c780 answered SIP/3015-09361948
        -- Started music on hold, class 'default', on SIP/3001-0936c780
        -- Stopped music on hold on SIP/TNTVoIP90-0930cd70
        -- Stopped music on hold on SIP/3001-0936c780
        -- Executing [h@mycustom-context:1] Macro("SIP/3015-09361948<ZOMBIE>", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/3015-09361948<ZOMBIE>", "vw") in new stack
        -- Executing [s@macro-hangupcall:2] NoCDR("SIP/3015-09361948<ZOMBIE>", "") in new stack
        -- Executing [s@macro-hangupcall:3] GotoIf("SIP/3015-09361948<ZOMBIE>", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,6)
        -- Executing [s@macro-hangupcall:6] GotoIf("SIP/3015-09361948<ZOMBIE>", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] GotoIf("SIP/3015-09361948<ZOMBIE>", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,11)
        -- Executing [s@macro-hangupcall:11] Hangup("SIP/3015-09361948<ZOMBIE>", "") in new stack
      == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/3015-09361948<ZOMBIE>' in macro 'hangupcall'
      == Spawn h extension (mycustom-context, h, 1) exited non-zero on 'SIP/3015-09361948<ZOMBIE>'
      == Spawn extension (mycustom-context, 3015, 17) exited non-zero on 'SIP/3015-09361948<ZOMBIE>'
        -- Executing [h@macro-dial:1] Macro("SIP/TNTVoIP90-0930cd70", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/TNTVoIP90-0930cd70", "vw") in new stack
        -- Executing [s@macro-hangupcall:2] NoCDR("SIP/TNTVoIP90-0930cd70", "") in new stack
        -- Executing [s@macro-hangupcall:3] GotoIf("SIP/TNTVoIP90-0930cd70", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,6)
        -- Executing [s@macro-hangupcall:6] GotoIf("SIP/TNTVoIP90-0930cd70", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] GotoIf("SIP/TNTVoIP90-0930cd70", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,11)
        -- Executing [s@macro-hangupcall:11] Hangup("SIP/TNTVoIP90-0930cd70", "") in new stack
      == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/TNTVoIP90-0930cd70' in macro 'hangupcall'
      == Spawn h extension (macro-dial, h, 1) exited non-zero on 'SIP/TNTVoIP90-0930cd70'
      == Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/TNTVoIP90-0930cd70' in macro 'dial'
      == Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/TNTVoIP90-0930cd70' in macro 'exten-vm'
      == Spawn extension (from-internal, 3001, 1) exited non-zero on 'SIP/TNTVoIP90-0930cd70
    
    
    I need to change this because, my call when incomes to asterisk, has a different treatment (the call will be limited to 1 minute, and will beep after 30 seconds). If I transfer the call, before 30 seconds or 60 seconds, this limitation will not be applied and even the beep will not be played.

    Some help on this?

    Fernando Possebon
     

Share This Page