Handle calls from inside E1

Hello! I have a trouble with handling calls from my PBX through the E1.
We have old Samsung IDCS 500 connected to FreePBX 2.7.0.5 with wcte12xp+ d161:8001 Wildcard TE122 card. We cant update the version of FPBX because it was rebuilded with some third-party statistic modules, and we have no contact with developer. I try to redirect calls from idcs500 to sip trunk, but dont understand how to do it. For example, I add my mobile phone number 89117894252 to sip trunk templates, and call from office phone to this numder. Here is the part of log:

– Accepting overlap call from ‘3341075’ to ‘’ on channel 0/3, span 1
– Starting simple switch on ‘DAHDI/3-1’
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2836 __ast_read: DTMF end ‘8’ received on DAHDI/3-1, duration 0 ms
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2881 __ast_read: DTMF end accepted without begin ‘8’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2892 __ast_read: DTMF end passthrough ‘8’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2836 __ast_read: DTMF end ‘9’ received on DAHDI/3-1, duration 0 ms
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2881 __ast_read: DTMF end accepted without begin ‘9’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2892 __ast_read: DTMF end passthrough ‘9’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2836 __ast_read: DTMF end ‘1’ received on DAHDI/3-1, duration 0 ms
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2881 __ast_read: DTMF end accepted without begin ‘1’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2892 __ast_read: DTMF end passthrough ‘1’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2836 __ast_read: DTMF end ‘1’ received on DAHDI/3-1, duration 0 ms
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2881 __ast_read: DTMF end accepted without begin ‘1’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2892 __ast_read: DTMF end passthrough ‘1’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2836 __ast_read: DTMF end ‘7’ received on DAHDI/3-1, duration 0 ms
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2881 __ast_read: DTMF end accepted without begin ‘7’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2892 __ast_read: DTMF end passthrough ‘7’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2836 __ast_read: DTMF end ‘8’ received on DAHDI/3-1, duration 0 ms
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2881 __ast_read: DTMF end accepted without begin ‘8’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2892 __ast_read: DTMF end passthrough ‘8’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2836 __ast_read: DTMF end ‘9’ received on DAHDI/3-1, duration 0 ms
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2881 __ast_read: DTMF end accepted without begin ‘9’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2892 __ast_read: DTMF end passthrough ‘9’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2836 __ast_read: DTMF end ‘4’ received on DAHDI/3-1, duration 0 ms
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2881 __ast_read: DTMF end accepted without begin ‘4’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2892 __ast_read: DTMF end passthrough ‘4’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2836 __ast_read: DTMF end ‘2’ received on DAHDI/3-1, duration 0 ms
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2881 __ast_read: DTMF end accepted without begin ‘2’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2892 __ast_read: DTMF end passthrough ‘2’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2836 __ast_read: DTMF end ‘5’ received on DAHDI/3-1, duration 0 ms
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2881 __ast_read: DTMF end accepted without begin ‘5’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2892 __ast_read: DTMF end passthrough ‘5’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2836 __ast_read: DTMF end ‘2’ received on DAHDI/3-1, duration 0 ms
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2881 __ast_read: DTMF end accepted without begin ‘2’ on DAHDI/3-1
[2013-09-04 09:20:33] DTMF[29647]: channel.c:2892 __ast_read: DTMF end passthrough ‘2’ on DAHDI/3-1
– Executing [89117894252@from-pstn:1] NoOp(“DAHDI/3-1”, “Проверяем входящие”) in new stack
– Executing [89117894252@from-pstn:2] NoOp(“DAHDI/3-1”, “GROUP_COUNT(OUT_7):0”) in new stack
– Executing [89117894252@from-pstn:3] ExecIf(“DAHDI/3-1”, “0?Busy()”) in new stack
– Executing [89117894252@from-pstn:4] Goto(“DAHDI/3-1”, “ext-did,89117894252,1”) in new stack
– Goto (ext-did,89117894252,1)
[2013-09-04 09:20:36] WARNING[29647]: pbx.c:3781 __ast_pbx_run: Channel ‘DAHDI/3-1’ sent into invalid extension ‘89117894252’ in context ‘ext-did’, but no invalid handler
– Hungup 'DAHDI/3-1’

What should I do to redirect this call to sip trunk?

You have your DAHDI context as from-pstn, that context has no access to outbound routes, try using from-internal.