[Help] External DID call forward to external Line

Hi,
I’m using a digium G200 gatway with E1 line.

When calling from an external line directly to the DID associated with an inbound route directly to an external number the call hangs up instantly (altough I see the call has been initiated) .
when calling from the system (e.g. 7777 route or dialing the ext with the call forward) I can forward successfully.

when dialing internally :

  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/G200-Bezeq/0548928544
    -- SIP/G200-Bezeq-00000157 is ringing
    -- Local/90548928544@from-internal-00000123;1 is ringing
    -- Local/FMGL-90548928544#@from-internal-00000122;1 is ringing
    -- SIP/G200-Bezeq-00000157 is making progress passing it to Local/90548928544@from-internal-00000123;2
    -- Local/90548928544@from-internal-00000123;1 is making progress passing it to Local/FMGL-90548928544#@from-internal-00000122;2
    -- Stopped music on hold on SIP/301-00000156
  == Spawn extension (macro-dial, s, 11) exited non-zero on 'SIP/301-00000156' in macro 'dial'
  == Spawn extension (macro-dial, s, 11) exited non-zero on 'Local/FMGL-90548928544#@from-internal-00000122;2' in macro 'dial'

when dialing from external line to direct DID :
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/G200-Bezeq/0548928544
– Stopped music on hold on SIP/G200_Telrad-00000158
== Spawn extension (macro-dial, s, 11) exited non-zero on ‘Local/FMGL-90548928544#@from-internal-00000125;2’ in macro ‘dial’
== Spawn extension (from-internal, FMGL-90548928544#, 7) exited non-zero on ‘Local/FMGL-90548928544#@from-internal-00000125;2’
== Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on ‘Local/90548928544@from-internal-00000126;2’ in macro ‘dialout-trunk’
– Executing [h@from-internal:1] Macro(“Local/FMGL-90548928544#@from-internal-00000125;2”, “hangupcall”) in new stack
== Spawn extension (restrictedroute-453e406dcee4d18174d4ff623f52dcd8, 90548928544, 6) exited non-zero on ‘Local/90548928544@from-internal-00000126;2’
– Executing [h@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:1] Hangup(“Local/90548928544@from-internal-00000126;2”, “”) in new stack
== Spawn extension (restrictedroute-453e406dcee4d18174d4ff623f52dcd8, h, 1) exited non-zero on ‘Local/90548928544@from-internal-00000126;2’
– Executing [s@macro-hangupcall:1] GotoIf(“Local/FMGL-90548928544#@from-internal-00000125;2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
== Spawn extension (macro-dial, s, 11) exited non-zero on ‘SIP/G200_Telrad-00000158’ in macro ‘dial’
== Spawn extension (from-did-direct, 318, 24) exited non-zero on ‘SIP/G200_Telrad-00000158’
– Executing [h@from-did-direct:1] Macro(“SIP/G200_Telrad-00000158”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/G200_Telrad-00000158”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“Local/FMGL-90548928544#@from-internal-00000125;2”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/G200_Telrad-00000158”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“Local/FMGL-90548928544#@from-internal-00000125;2”, “”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“SIP/G200_Telrad-00000158”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘Local/FMGL-90548928544#@from-internal-00000125;2’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/G200_Telrad-00000158’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘Local/FMGL-90548928544#@from-internal-00000125;2’
== Spawn extension (from-did-direct, h, 1) exited non-zero on ‘SIP/G200_Telrad-00000158’

I’m not really sure why my other trunk pops up here. (G200_Telrad)
but I do get a very brief buzz on my cellphone and the call goes out and instantly hangs up.

I tried blocking the forien CID as suggested in other posts and setup static CID but that didn’t help.

I also tried setting up a custom dial plan where I playback “your call is being transferred” and then forward to the follow me extension, that worked well. so right now when the freepbx 13 system tries to call forward without picking up the call first I get this hangup.

any help is much appreciated.

Ask the person who wrote the dialplan as to the significance of “restrictedroute”. This dialplan is not part of Asterisk. It looks like it might be part of FreePBX, for which peer support is provided at http://community.freepbx.org/ .

Thank you for the reply.
I’ve also posted there.
just odd that the call goes out and then hangs up , and works ok when the call goes through the freepbx first without direct did to external route. I thought it had to do with the G200 gateway configuration.