Call forwarding to outside number with recording

There is a bug in the posting system and I have to break this up, as it says I cannot mention 2 users in the same post, as a new user.

We have a few numbers coming into the PBX that we want forwarded out to to outside sales people. They are using a single 800# that distributes the calls to them. We also want to record these call. After some research I setup a custom extension. Any help would be appreciated.

Local/[email protected]

This works and records the call. The only issue is the first call rings through fine, but additional calls just ring, and hang up. Here is the debug from the system. It seems it is not pushing out the call. The extension is set for call waiting.

Current setup is incoming route - time conditions - extension - to dial prefix above.

Good call…

-- Executing [[email protected]:16] ExecIf("Local/[email protected];2", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
-- Executing [[email protected]:17] Macro("Local/[email protected];2", "dialout-trunk-predial-hook,") in new stack
-- Executing [[email protected]:1] MacroExit("Local/[email protected];2", "") in new stack
-- Executing [[email protected]:18] GotoIf("Local/[email protected];2", "0?bypass,1") in new stack
-- Executing [[email protected]:19] ExecIf("Local/[email protected];2", "0?Set(CONNECTEDLINE(num,i)=8005551212)") in new stack
-- Executing [[email protected]:20] ExecIf("Local/[email protected];2", "0?Set(CONNECTEDLINE(name,i)=CID:6785075555)") in new stack
-- Executing [[email protected]:21] GotoIf("Local/[email protected];2", "0?customtrunk") in new stack
-- Executing [[email protected]:22] Dial("Local/[email protected];2", "SIP/carrier-outbound/8005551212,300,Tt") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/carrier-outbound/8005551212
    -- SIP/carrier-outbound-0000f8d1 is making progress passing it to Local/[email protected];2
    -- Local/[email protected];1 is making progress passing it to SIP/carrierity-inbound-0000f8d0

    -- SIP/carrier-outbound-0000f8d1 requested media update control 26, 
passing it to Local/[email protected];2
    -- SIP/carrier-outbound-0000f8d1 answered Local/[email protected];2
    -- Local/[email protected];1 answered SIP/carrierity-inbound-0000f8d0
    -- Executing [[email protected]:1] Macro("Local/[email protected];2", "hangupcall,") in new stack
    -- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)

    -- Executing [[email protected]:3] 
ExecIf("Local/[email protected];2", 
"0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] Hangup("Local/[email protected];2", "") in new stack

  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 
'Local/[email protected];2' in macro 'hangupcall'
  == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'Local/[email protected];2'

  == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 
'Local/[email protected];2' in macro 
'dialout-trunk'
  == Spawn extension (outbound-allroutes, 8005551212, 6) exited non-zero on 'Local/[email protected];2'
localhost*CLI>

bad call

-- Executing [[email protected]:15] ExecIf("Local/[email protected];2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
-- Executing [[email protected]:16] ExecIf("Local/[email protected];2", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
-- Executing [[email protected]:17] Macro("Local/[email protected];2", "dialout-trunk-predial-hook,") in new stack
-- Executing [[email protected]:1] MacroExit("Local/[email protected];2", "") in new stack
-- Executing [[email protected]:18] GotoIf("Local/[email protected];2", "0?bypass,1") in new stack
-- Executing [[email protected]:19] ExecIf("Local/[email protected];2", "0?Set(CONNECTEDLINE(num,i)=8005551212)") in new stack
-- Executing [[email protected]:20] ExecIf("Local/[email protected];2", "0?Set(CONNECTEDLINE(name,i)=CID:6785075555)") in new stack
-- Executing [[email protected]:21] GotoIf("Local/[email protected];2", "0?customtrunk") in new stack
-- Executing [[email protected]:22] Dial("Local/[email protected];2", "SIP/carrier-outbound/8005551212,300,Tt") in new stack

  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/carrier-outbound/8005551212
localhost*CLI>
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 
'Local/[email protected];2' in macro 
'dialout-trunk'

Not a bug The system sees the @ sign in a post and assumes you are trying to tag someone… You simply have to wrap your logs in tripple backtics(`)
Edited for you…

thanks any idea on the error.