Inbound route to custom destination does not work

Discussion in 'General' started by Soze, Jun 9, 2009.

  1. Soze

    Joined:
    Jun 9, 2009
    Messages:
    2
    Likes Received:
    0
    I have a really weird problem.
    I did configured a2billing on piaf with asterisk-1.4 and it did well everything worked like a champ but my Zap fxo channel do not understand dtmf tones that the gsm box that I had connected to fxo sends. I tryed all options inbound and relax. But fxo channel understands dtmf signal sent to it by my pots line. I need only gsm box to work so I changed to elastix to see if its newer zap drivers do it better actually it is dahdi now. Ok I installed elastix and it found a new hardware as it was said in a elastix whithout tears book. I configured every thing without a problem
    but this "zap channel did"s work wery unpredictably. I did change from-pstn context to from-zaptel in chan_Dahdi.conf And configured two zap channel dids to send a call flow to custom-a2billing-2 contex which I created for that purpose.And ewery time I call those two number s(they should send incoming calls to a custom destination) they just hung up on me actually they do not even pickup a call but in cli it says call starting and transfered to a2billing agi and hung up. I thought my be the problem is in misconfigured [agi-conf2] and it makes zap channel hungup and to check my thoughts tryed to resent it to first other custom destination and second just to other ordinary destination like my extension well when I send it in inbound route to custom-a2billing it hungs up all the same and when I send it to the extenstion it works it means that "zap channel did" actually work and inbound route distinguish between incoming channels by that "zap dids" but when inbound route sends a call to a whatewer custom destinations the call gets disconnected and when it sends it to an ordinary destination not custom like diza or IVR or extention the call goes through.
    I am not able to send incoming calls to a sertain zap channel dids to a custom destinations but can to whatever other destination there are.
    Here is the output fo a CLI when I make a call to a zap channel did 4888066 which is sent to a custom-a2billing-2 contex by inbound route I configured inbound route to send zap channel did to that custom destination :

    -- Starting simple switch on 'DAHDI/4-1'
    -- Executing [s@from-zaptel:1] NoOp("DAHDI/4-1", "Entering from-zaptel with DID == ") in new stack
    -- Executing [s@from-zaptel:2] Ringing("DAHDI/4-1", "") in new stack
    -- Executing [s@from-zaptel:3] Set("DAHDI/4-1", "DID=s") in new stack
    -- Executing [s@from-zaptel:4] NoOp("DAHDI/4-1", "DID is now s") in new stack
    -- Executing [s@from-zaptel:5] GotoIf("DAHDI/4-1", "1?zapok:notzap") in new stack
    -- Goto (from-zaptel,s,8)
    -- Executing [s@from-zaptel:8] NoOp("DAHDI/4-1", "Is a Zaptel Channel") in new stack
    -- Executing [s@from-zaptel:9] Set("DAHDI/4-1", "CHAN=4-1") in new stack
    -- Executing [s@from-zaptel:10] Set("DAHDI/4-1", "CHAN=4") in new stack
    -- Executing [s@from-zaptel:11] Macro("DAHDI/4-1", "from-zaptel-4|s|1") in new stack
    -- Executing [s@macro-from-zaptel-4:1] NoOp("DAHDI/4-1", "Entering macro-from-zaptel-4 with DID = s and setting to: 4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:2] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:3] Goto("DAHDI/4-1", "from-trunk|4888066|1") in new stack
    -- Goto (from-trunk,4888066,1)
    == Channel 'DAHDI/4-1' jumping out of macro 'from-zaptel-4'
    -- Executing [4888066@from-trunk:1] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [4888066@from-trunk:2] Gosub("DAHDI/4-1", "app-blacklist-check|s|1") in new stack
    -- Executing [s@app-blacklist-check:1] LookupBlacklist("DAHDI/4-1", "") in new stack
    -- Executing [s@app-blacklist-check:2] GotoIf("DAHDI/4-1", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:3] Return("DAHDI/4-1", "") in new stack
    -- Executing [4888066@from-trunk:3] ExecIf("DAHDI/4-1", "1 |Set|CALLERID(name)=+998983074858") in new stack
    -- Executing [4888066@from-trunk:4] Set("DAHDI/4-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:5] SetCallerPres("DAHDI/4-1", "allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:6] Goto("DAHDI/4-1", "custom-a2billing-2|4888066|1") in new stack
    -- Goto (custom-a2billing-2,4888066,1)
    -- Hungup 'DAHDI/4-1'
    -- Starting simple switch on 'DAHDI/4-1'
    -- Executing [s@from-zaptel:1] NoOp("DAHDI/4-1", "Entering from-zaptel with DID == ") in new stack
    -- Executing [s@from-zaptel:2] Ringing("DAHDI/4-1", "") in new stack
    -- Executing [s@from-zaptel:3] Set("DAHDI/4-1", "DID=s") in new stack
    -- Executing [s@from-zaptel:4] NoOp("DAHDI/4-1", "DID is now s") in new stack
    -- Executing [s@from-zaptel:5] GotoIf("DAHDI/4-1", "1?zapok:notzap") in new stack
    -- Goto (from-zaptel,s,8)
    -- Executing [s@from-zaptel:8] NoOp("DAHDI/4-1", "Is a Zaptel Channel") in new stack
    -- Executing [s@from-zaptel:9] Set("DAHDI/4-1", "CHAN=4-1") in new stack
    -- Executing [s@from-zaptel:10] Set("DAHDI/4-1", "CHAN=4") in new stack
    -- Executing [s@from-zaptel:11] Macro("DAHDI/4-1", "from-zaptel-4|s|1") in new stack
    -- Executing [s@macro-from-zaptel-4:1] NoOp("DAHDI/4-1", "Entering macro-from-zaptel-4 with DID = s and setting to: 4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:2] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:3] Goto("DAHDI/4-1", "from-trunk|4888066|1") in new stack
    -- Goto (from-trunk,4888066,1)
    == Channel 'DAHDI/4-1' jumping out of macro 'from-zaptel-4'
    -- Executing [4888066@from-trunk:1] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [4888066@from-trunk:2] Gosub("DAHDI/4-1", "app-blacklist-check|s|1") in new stack
    -- Executing [s@app-blacklist-check:1] LookupBlacklist("DAHDI/4-1", "") in new stack
    -- Executing [s@app-blacklist-check:2] GotoIf("DAHDI/4-1", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:3] Return("DAHDI/4-1", "") in new stack
    -- Executing [4888066@from-trunk:3] ExecIf("DAHDI/4-1", "1 |Set|CALLERID(name)=") in new stack
    -- Executing [4888066@from-trunk:4] Set("DAHDI/4-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:5] SetCallerPres("DAHDI/4-1", "allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:6] Goto("DAHDI/4-1", "custom-a2billing-2|4888066|1") in new stack
    -- Goto (custom-a2billing-2,4888066,1)
    -- Hungup 'DAHDI/4-1'
    -- Starting simple switch on 'DAHDI/4-1'
    -- Executing [s@from-zaptel:1] NoOp("DAHDI/4-1", "Entering from-zaptel with DID == ") in new stack
    -- Executing [s@from-zaptel:2] Ringing("DAHDI/4-1", "") in new stack
    -- Executing [s@from-zaptel:3] Set("DAHDI/4-1", "DID=s") in new stack
    -- Executing [s@from-zaptel:4] NoOp("DAHDI/4-1", "DID is now s") in new stack
    -- Executing [s@from-zaptel:5] GotoIf("DAHDI/4-1", "1?zapok:notzap") in new stack
    -- Goto (from-zaptel,s,8)
    -- Executing [s@from-zaptel:8] NoOp("DAHDI/4-1", "Is a Zaptel Channel") in new stack
    -- Executing [s@from-zaptel:9] Set("DAHDI/4-1", "CHAN=4-1") in new stack
    -- Executing [s@from-zaptel:10] Set("DAHDI/4-1", "CHAN=4") in new stack
    -- Executing [s@from-zaptel:11] Macro("DAHDI/4-1", "from-zaptel-4|s|1") in new stack
    -- Executing [s@macro-from-zaptel-4:1] NoOp("DAHDI/4-1", "Entering macro-from-zaptel-4 with DID = s and setting to: 4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:2] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:3] Goto("DAHDI/4-1", "from-trunk|4888066|1") in new stack
    -- Goto (from-trunk,4888066,1)
    == Channel 'DAHDI/4-1' jumping out of macro 'from-zaptel-4'
    -- Executing [4888066@from-trunk:1] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [4888066@from-trunk:2] Gosub("DAHDI/4-1", "app-blacklist-check|s|1") in new stack
    -- Executing [s@app-blacklist-check:1] LookupBlacklist("DAHDI/4-1", "") in new stack
    -- Executing [s@app-blacklist-check:2] GotoIf("DAHDI/4-1", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:3] Return("DAHDI/4-1", "") in new stack
    -- Executing [4888066@from-trunk:3] ExecIf("DAHDI/4-1", "1 |Set|CALLERID(name)=") in new stack
    -- Executing [4888066@from-trunk:4] Set("DAHDI/4-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:5] SetCallerPres("DAHDI/4-1", "allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:6] Goto("DAHDI/4-1", "custom-a2billing-2|4888066|1") in new stack
    -- Goto (custom-a2billing-2,4888066,1)
    -- Hungup 'DAHDI/4-1'
    elastix*CLI>
    AND now the output of a CLI when I configured in Inbound route to sent this zap channel did to other custom destination custom-a2billing:
    == Manager 'admin' logged off from 127.0.0.1
    -- Starting simple switch on 'DAHDI/4-1'
    -- Executing [s@from-zaptel:1] NoOp("DAHDI/4-1", "Entering from-zaptel with DID == ") in new stack
    -- Executing [s@from-zaptel:2] Ringing("DAHDI/4-1", "") in new stack
    -- Executing [s@from-zaptel:3] Set("DAHDI/4-1", "DID=s") in new stack
    -- Executing [s@from-zaptel:4] NoOp("DAHDI/4-1", "DID is now s") in new stack
    -- Executing [s@from-zaptel:5] GotoIf("DAHDI/4-1", "1?zapok:notzap") in new stack
    -- Goto (from-zaptel,s,8)
    -- Executing [s@from-zaptel:8] NoOp("DAHDI/4-1", "Is a Zaptel Channel") in new stack
    -- Executing [s@from-zaptel:9] Set("DAHDI/4-1", "CHAN=4-1") in new stack
    -- Executing [s@from-zaptel:10] Set("DAHDI/4-1", "CHAN=4") in new stack
    -- Executing [s@from-zaptel:11] Macro("DAHDI/4-1", "from-zaptel-4|s|1") in new stack
    -- Executing [s@macro-from-zaptel-4:1] NoOp("DAHDI/4-1", "Entering macro-from-zaptel-4 with DID = s and setting to: 4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:2] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:3] Goto("DAHDI/4-1", "from-trunk|4888066|1") in new stack
    -- Goto (from-trunk,4888066,1)
    == Channel 'DAHDI/4-1' jumping out of macro 'from-zaptel-4'
    -- Executing [4888066@from-trunk:1] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [4888066@from-trunk:2] Gosub("DAHDI/4-1", "app-blacklist-check|s|1") in new stack
    -- Executing [s@app-blacklist-check:1] LookupBlacklist("DAHDI/4-1", "") in new stack
    -- Executing [s@app-blacklist-check:2] GotoIf("DAHDI/4-1", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:3] Return("DAHDI/4-1", "") in new stack
    -- Executing [4888066@from-trunk:3] ExecIf("DAHDI/4-1", "1 |Set|CALLERID(name)=+9xxxx3074858") in new stack
    -- Executing [4888066@from-trunk:4] Set("DAHDI/4-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:5] SetCallerPres("DAHDI/4-1", "allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:6] Goto("DAHDI/4-1", "custom-a2billing|4888066|1") in new stack
    -- Goto (custom-a2billing,4888066,1)
    -- Hungup 'DAHDI/4-1'
    -- Starting simple switch on 'DAHDI/4-1'
    -- Executing [s@from-zaptel:1] NoOp("DAHDI/4-1", "Entering from-zaptel with DID == ") in new stack
    -- Executing [s@from-zaptel:2] Ringing("DAHDI/4-1", "") in new stack
    -- Executing [s@from-zaptel:3] Set("DAHDI/4-1", "DID=s") in new stack
    -- Executing [s@from-zaptel:4] NoOp("DAHDI/4-1", "DID is now s") in new stack
    -- Executing [s@from-zaptel:5] GotoIf("DAHDI/4-1", "1?zapok:notzap") in new stack
    -- Goto (from-zaptel,s,8)
    -- Executing [s@from-zaptel:8] NoOp("DAHDI/4-1", "Is a Zaptel Channel") in new stack
    -- Executing [s@from-zaptel:9] Set("DAHDI/4-1", "CHAN=4-1") in new stack
    -- Executing [s@from-zaptel:10] Set("DAHDI/4-1", "CHAN=4") in new stack
    -- Executing [s@from-zaptel:11] Macro("DAHDI/4-1", "from-zaptel-4|s|1") in new stack
    -- Executing [s@macro-from-zaptel-4:1] NoOp("DAHDI/4-1", "Entering macro-from-zaptel-4 with DID = s and setting to: 4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:2] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:3] Goto("DAHDI/4-1", "from-trunk|4888066|1") in new stack
    -- Goto (from-trunk,4888066,1)
    == Channel 'DAHDI/4-1' jumping out of macro 'from-zaptel-4'
    -- Executing [4888066@from-trunk:1] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [4888066@from-trunk:2] Gosub("DAHDI/4-1", "app-blacklist-check|s|1") in new stack
    -- Executing [s@app-blacklist-check:1] LookupBlacklist("DAHDI/4-1", "") in new stack
    -- Executing [s@app-blacklist-check:2] GotoIf("DAHDI/4-1", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:3] Return("DAHDI/4-1", "") in new stack
    -- Executing [4888066@from-trunk:3] ExecIf("DAHDI/4-1", "1 |Set|CALLERID(name)=") in new stack
    -- Executing [4888066@from-trunk:4] Set("DAHDI/4-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:5] SetCallerPres("DAHDI/4-1", "allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:6] Goto("DAHDI/4-1", "custom-a2billing|4888066|1") in new stack
    -- Goto (custom-a2billing,4888066,1)
    -- Hungup 'DAHDI/4-1'
    -- Starting simple switch on 'DAHDI/4-1'
    -- Executing [s@from-zaptel:1] NoOp("DAHDI/4-1", "Entering from-zaptel with DID == ") in new stack
    -- Executing [s@from-zaptel:2] Ringing("DAHDI/4-1", "") in new stack
    -- Executing [s@from-zaptel:3] Set("DAHDI/4-1", "DID=s") in new stack
    -- Executing [s@from-zaptel:4] NoOp("DAHDI/4-1", "DID is now s") in new stack
    -- Executing [s@from-zaptel:5] GotoIf("DAHDI/4-1", "1?zapok:notzap") in new stack
    -- Goto (from-zaptel,s,8)
    -- Executing [s@from-zaptel:8] NoOp("DAHDI/4-1", "Is a Zaptel Channel") in new stack
    -- Executing [s@from-zaptel:9] Set("DAHDI/4-1", "CHAN=4-1") in new stack
    -- Executing [s@from-zaptel:10] Set("DAHDI/4-1", "CHAN=4") in new stack
    -- Executing [s@from-zaptel:11] Macro("DAHDI/4-1", "from-zaptel-4|s|1") in new stack
    -- Executing [s@macro-from-zaptel-4:1] NoOp("DAHDI/4-1", "Entering macro-from-zaptel-4 with DID = s and setting to: 4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:2] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:3] Goto("DAHDI/4-1", "from-trunk|4888066|1") in new stack
    -- Goto (from-trunk,4888066,1)
    == Channel 'DAHDI/4-1' jumping out of macro 'from-zaptel-4'
    -- Executing [4888066@from-trunk:1] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [4888066@from-trunk:2] Gosub("DAHDI/4-1", "app-blacklist-check|s|1") in new stack
    -- Executing [s@app-blacklist-check:1] LookupBlacklist("DAHDI/4-1", "") in new stack
    -- Executing [s@app-blacklist-check:2] GotoIf("DAHDI/4-1", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:3] Return("DAHDI/4-1", "") in new stack
    -- Executing [4888066@from-trunk:3] ExecIf("DAHDI/4-1", "1 |Set|CALLERID(name)=") in new stack
    -- Executing [4888066@from-trunk:4] Set("DAHDI/4-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:5] SetCallerPres("DAHDI/4-1", "allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:6] Goto("DAHDI/4-1", "custom-a2billing|4888066|1") in new stack
    -- Goto (custom-a2billing,4888066,1)
    -- Hungup 'DAHDI/4-1'
    elastix*CLI> I am hearing the long call waiting tones on the other end and call does not ever answered by asterisk but cli shows that it managed to answer and hungup on channel dahdi/4-1 where my box is connected at least two times

    This is the output of a CLI when I send incoming call to zap channel did to ordinary not custom destinatin like my extension:

    Manager 'admin' logged off from 127.0.0.1
    -- Starting simple switch on 'DAHDI/4-1'
    -- Executing [s@from-zaptel:1] NoOp("DAHDI/4-1", "Entering from-zaptel with DID == ") in new stack
    -- Executing [s@from-zaptel:2] Ringing("DAHDI/4-1", "") in new stack
    -- Executing [s@from-zaptel:3] Set("DAHDI/4-1", "DID=s") in new stack
    -- Executing [s@from-zaptel:4] NoOp("DAHDI/4-1", "DID is now s") in new stack
    -- Executing [s@from-zaptel:5] GotoIf("DAHDI/4-1", "1?zapok:notzap") in new stack
    -- Goto (from-zaptel,s,8)
    -- Executing [s@from-zaptel:8] NoOp("DAHDI/4-1", "Is a Zaptel Channel") in new stack
    -- Executing [s@from-zaptel:9] Set("DAHDI/4-1", "CHAN=4-1") in new stack
    -- Executing [s@from-zaptel:10] Set("DAHDI/4-1", "CHAN=4") in new stack
    -- Executing [s@from-zaptel:11] Macro("DAHDI/4-1", "from-zaptel-4|s|1") in new stack
    -- Executing [s@macro-from-zaptel-4:1] NoOp("DAHDI/4-1", "Entering macro-from-zaptel-4 with DID = s and setting to: 4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:2] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [s@macro-from-zaptel-4:3] Goto("DAHDI/4-1", "from-trunk|4888066|1") in new stack
    -- Goto (from-trunk,4888066,1)
    == Channel 'DAHDI/4-1' jumping out of macro 'from-zaptel-4'
    -- Executing [4888066@from-trunk:1] Set("DAHDI/4-1", "__FROM_DID=4888066") in new stack
    -- Executing [4888066@from-trunk:2] Gosub("DAHDI/4-1", "app-blacklist-check|s|1") in new stack
    -- Executing [s@app-blacklist-check:1] LookupBlacklist("DAHDI/4-1", "") in new stack
    -- Executing [s@app-blacklist-check:2] GotoIf("DAHDI/4-1", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:3] Return("DAHDI/4-1", "") in new stack
    -- Executing [4888066@from-trunk:3] ExecIf("DAHDI/4-1", "1 |Set|CALLERID(name)=+9xxxx3074858") in new stack
    -- Executing [4888066@from-trunk:4] Set("DAHDI/4-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:5] SetCallerPres("DAHDI/4-1", "allowed_not_screened") in new stack
    -- Executing [4888066@from-trunk:6] Goto("DAHDI/4-1", "from-did-direct|6005|1") in new stack
    -- Goto (from-did-direct,6005,1)
    -- Executing [6005@from-did-direct:1] Macro("DAHDI/4-1", "exten-vm|novm|6005") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("DAHDI/4-1", "user-callerid") in new stack
    -- Executing [s@macro-user-callerid:1] Set("DAHDI/4-1", "AMPUSER=+9xxxx3074858") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/4-1", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/4-1", "1|Set|REALCALLERIDNUM=+9xxxx3074858") in new stack
    -- Executing [s@macro-user-callerid:4] Set("DAHDI/4-1", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("DAHDI/4-1", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/4-1", "1?report") in new stack
    -- Goto (macro-user-callerid,s,11)
    -- Executing [s@macro-user-callerid:11] GotoIf("DAHDI/4-1", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:12] Set("DAHDI/4-1", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("DAHDI/4-1", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,20)
    -- Executing [s@macro-user-callerid:20] NoOp("DAHDI/4-1", "Using CallerID "+9xxxx3074858" <+9xxxx3074858>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("DAHDI/4-1", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("DAHDI/4-1", "VMBOX=novm") in new stack
    -- Executing [s@macro-exten-vm:4] Set("DAHDI/4-1", "EXTTOCALL=6005") in new stack
    -- Executing [s@macro-exten-vm:5] Set("DAHDI/4-1", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("DAHDI/4-1", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("DAHDI/4-1", "RT=""") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("DAHDI/4-1", "record-enable|6005|IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("DAHDI/4-1", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("DAHDI/4-1", "recordingcheck|20090609-163601|1244547361.51") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
    recordingcheck|20090609-163601|1244547361.51: Inbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("DAHDI/4-1", "") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("DAHDI/4-1", "dial||tr|6005") in new stack
    -- Executing [s@macro-dial:1] GotoIf("DAHDI/4-1", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("DAHDI/4-1", "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 '+9XXXX3074858' number is '+9XXXX3074858'
    dialparties.agi: Methodology of ring is 'none'
    -- dialparties.agi: Added extension 6005 to extension map
    -- dialparties.agi: Extension 6005 cf is disabled
    -- dialparties.agi: Extension 6005 do not disturb is disabled
    dialparties.agi: Extension 6005 has ExtensionState: 0
    -- dialparties.agi: Checking CW and CFB status for extension 6005
    -- dialparties.agi: dbset CALLTRACE/6005 to +9XXXX3074858
    -- dialparties.agi: Filtered ARG3: 6005
    == Manager 'admin' logged off from 127.0.0.1
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("DAHDI/4-1", "DAHDI/5||tr") in new stack
    -- Called 5
    -- DAHDI/5-1 is ringing
    -- DAHDI/5-1 is ringing
    -- DAHDI/5-1 is ringing
    -- DAHDI/5-1 is ringing
    -- DAHDI/5-1 is ringing
    -- DAHDI/5-1 is ringing
    -- Hungup 'DAHDI/5-1'
    == Spawn extension (macro-dial, s, 7) exited non-zero on 'DAHDI/4-1' in macro 'dial'
    == Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'DAHDI/4-1' in macro 'exten-vm'
    == Spawn extension (from-did-direct, 6005, 1) exited non-zero on 'DAHDI/4-1'
    -- Executing [h@macro-dial:1] Macro("DAHDI/4-1", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("DAHDI/4-1", "vw") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("DAHDI/4-1", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("DAHDI/4-1", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("DAHDI/4-1", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("DAHDI/4-1", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("DAHDI/4-1", "") in new stack
    == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'DAHDI/4-1' in macro 'hangupcall'
    == Spawn extension (macro-dial, h, 1) exited non-zero on 'DAHDI/4-1'
    -- Hungup 'DAHDI/4-1'
    It rung as it should And I just hung up a call it works but previouse two not.

    So how can I send incoming calls to a custom destinations withou getting hung ups??
     

Share This Page