Problems with the map fields when setting to PRI and SS7

Good evening!
Please help in solving the next question. There was a need to activate call forwarding subscriber.
The scheme is as follows: a subscriber receives a telephone number in the code of 84991234567. This number comes on the EWSD, and then by forwarding an SS7 on asterisk.
At asterisk he falls into the context of incoming_pri, which verifies whether the subscriber has call forwarding or not. If
there is, the redirection is performed, if not, then the number of forwarding an SIP SoftSwitch and goes on to the subscriber.
The problem itself as follows: when is activated must come 3 fields (the number from which you called, the number from which there was a call forwarding number where there was a redirect)
As a result, the call goes, but at rates not seen EWSD WHERE OCCURRED divert.
Below cite trace calls.
I using libss7 and asterisk 1.6.2.13 and DAHDI Version: 2.4.0 Echo Canceller: MG2.

[root@ss71 ~]# asterisk -r
Asterisk 1.6.2.13, Copyright © 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

== Parsing ‘/etc/asterisk/extconfig.conf’: == Found
Connected to Asterisk 1.6.2.13 currently running on ss71 (pid = 4056)
Verbosity is at least 9
Incoming call of PSTN (PRI)

Len = 61 [ 92 8f 3a c5 00 00 00 00 14 00 01 00 20 01 0a 00 02 0a 08 83 90 94 49 81 20 20 0f 0a 07 03 11 94 49 81 00 12 31 02 00 00 3d 01 1f 03 04 7d 02 91 81 1d 03 80 90 a3 39 04 31 c0 3d c0 00 ]
FSN: 15 FIB 1
BSN: 18 BIB 1
<[0] MSU
[ 92 8f 3a ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 OPC 111 SLS 4
[ 00 00 00 00 ]
CIC: 20
[ 14 00 ]
Message Type: IAM
[ 01 ]
–FIXED LENGTH PARMS[4]–
Nature of Connection Indicator:
Satellites in connection: 0
Continuity Check: Check not required (0)
Outgoing half echo control device: not included (0)
[ 00 ]
Forward Call Indicators:
Nat/Intl Call Ind: call to be treated as a national call (0)
End to End Method Ind: no end-to-end method(s) available (0)
Interworking Ind: no interworking encountered (0)
End to End Info Ind: no end-to-end information available (0)
ISDN User Part Ind: ISDN user part used all the way (1)
ISDN User Part Pref Ind: ISDN user part preferred all the way (0)
ISDN Access Ind: originating access ISDN (1)
SCCP Method Ind: no indication (0)
[ 20 01 ]
Calling Party’s Category:
Category: Ordinary calling subscriber (10)
[ 0a ]
Transmission Medium Requirements:
Speech (0)
[ 00 ]
–VARIABLE LENGTH PARMS[1]–
Called Party Number:
Nature of address: 3
NI: 1
Numbering plan: 1
Address signals: called_num#
[ 08 83 90 94 49 81 20 20 0f ]
–OPTIONAL PARMS–
Calling Party Number:
Nature of address: 3
NI: 0
Numbering plan: 1
Presentation: 0
Screening: 1
Address signals: calling_num
[ 0a 07 03 11 94 49 81 00 12 ]
Propagation Delay Counter:
Delay: 0ms
[ 31 02 00 00 ]
Hop Counter:
[ 3d 01 1f ]
Access Transport:
[ 03 04 7d 02 91 81 ]
User Service Information:
[ 1d 03 80 90 a3 ]
Parameter Compatibility Information:
[ 39 04 31 c0 3d c0 ]

Unhandled optional parameter 0x31 ‘Propagation Delay Counter’
[0x0 0x0 ]
Unhandled optional parameter 0x39 ‘Parameter Compatibility Information’
[0x31 0xc0 0x3d 0xc0 ]
– Accepting call to ‘called_num’ on CIC 20
Len = 14 [ 8f 93 0b c5 02 c1 30 40 14 00 06 40 14 00 ]
FSN: 19 FIB 1
BSN: 15 BIB 1

[0] MSU
[ 8f 93 0b ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 DPC 111 SLS 4
[ 02 c1 30 40 ]
CIC: 20
[ 14 00 ]
Message Type: ACM
[ 06 ]
–FIXED LENGTH PARMS[1]–
Backward Call Indicator:
Charge indicator: 0
Called party’s status indicator: 0
Called party’s category indicator: 0
End to End method indicator: 1
Interworking indicator: 0
End to End information indicator: 0
ISDN user part indicator: 1
Holding indicator: 0
ISDN access indicator: 1
Echo control device indicator: 0
SCCP method indicator: 0
[ 40 14 ]

– Executing [called_num@from-pstn:1] NoOp(“DAHDI/20-1”, “”) in new stack
– Executing [called_num@from-pstn:2] NoOp(“DAHDI/20-1”, “called_num#”) in new stack
– Executing [called_num@from-pstn:3] Set(“DAHDI/20-1”, “__SS7_ORIG_CALLED_NUM=calling_num”) in new stack
– Executing [called_num@from-pstn:4] Set(“DAHDI/20-1”, “CALLERID(num)=called_num”) in new stack
– Executing [called_num@from-pstn:5] Set(“DAHDI/20-1”, “CHANNEL(transfercapability)=3K1AUDIO”) in new stack
– Executing [called_num@from-pstn:6] Set(“DAHDI/20-1”, “__SS7_LSPI_IDENT=ON”) in new stack
– Executing [called_num@from-pstn:7] Set(“DAHDI/20-1”, “__SS7_RLT_ON=YES”) in new stack
– Executing [called_num@from-pstn:8] Set(“DAHDI/20-1”, “__SS7_REDIRECTING_NUMBER=called_num”) in new stack
– Executing [called_num@from-pstn:9] Set(“DAHDI/20-1”, “CALLERID(RDNIS)=called_num#”) in new stack
– Executing [called_num@from-pstn:10] Set(“DAHDI/20-1”, “CALLERID(DNID)=called_num#”) in new stack
– Executing [called_num@from-pstn:11] NoOp(“DAHDI/20-1”, “called_num#”) in new stack
– Executing [called_num@from-pstn:12] NoOp(“DAHDI/20-1”, “called_num#”) in new stack
– Executing [called_num@from-pstn:13] SetCallerPres(“DAHDI/20-1”, “allowed_passed_screen”) in new stack
– Executing [called_num@from-pstn:14] Dial(“DAHDI/20-1”, “DAHDI/35/redirecting_number,tT”) in new stack
– Called 35/С-номер
Beginning diversions…
Len = 37 [ 8f 94 22 c5 02 c1 30 40 24 00 01 00 60 01 0a 00 02 0a 08 83 10 94 25 52 69 30 0f 0a 07 03 11 94 49 81 20 20 00 ]
FSN: 20 FIB 1
BSN: 15 BIB 1

[0] MSU
[ 8f 94 22 ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 DPC 111 SLS 4
[ 02 c1 30 40 ]
CIC: 36
[ 24 00 ]
Message Type: IAM
[ 01 ]
–FIXED LENGTH PARMS[4]–
Nature of Connection Indicator:
Satellites in connection: 0
Continuity Check: Check not required (0)
Outgoing half echo control device: not included (0)
[ 00 ]
Forward Call Indicators:
Nat/Intl Call Ind: call to be treated as a national call (0)
End to End Method Ind: no end-to-end method(s) available (0)
Interworking Ind: no interworking encountered (0)
End to End Info Ind: no end-to-end information available (0)
ISDN User Part Ind: ISDN user part used all the way (1)
ISDN User Part Pref Ind: ISDN user part not preferred all the way (1)
ISDN Access Ind: originating access ISDN (1)
SCCP Method Ind: no indication (0)
[ 60 01 ]
Calling Party’s Category:
Category: Ordinary calling subscriber (10)
[ 0a ]
Transmission Medium Requirements:
Speech (0)
[ 00 ]
–VARIABLE LENGTH PARMS[1]–
Called Party Number:
Nature of address: 3
NI: 0
Numbering plan: 1
Address signals: С-номер#
[ 08 83 10 94 25 52 69 30 0f ]
–OPTIONAL PARMS–
Calling Party Number:
Nature of address: 3
NI: 0
Numbering plan: 1
Presentation: 0
Screening: 1
Address signals: called_num
[ 0a 07 03 11 94 49 81 20 20 ]

Len = 22 [ 94 90 13 c5 00 00 00 00 24 00 06 12 14 01 2e 01 00 39 02 2e c0 00 ]
FSN: 16 FIB 1
BSN: 20 BIB 1
<[0] MSU
[ 94 90 13 ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 OPC 111 SLS 4
[ 00 00 00 00 ]
CIC: 36
[ 24 00 ]
Message Type: ACM
[ 06 ]
–FIXED LENGTH PARMS[1]–
Backward Call Indicator:
Charge indicator: 2
Called party’s status indicator: 0
Called party’s category indicator: 1
End to End method indicator: 0
Interworking indicator: 0
End to End information indicator: 0
ISDN user part indicator: 1
Holding indicator: 0
ISDN access indicator: 1
Echo control device indicator: 0
SCCP method indicator: 0
[ 12 14 ]
–OPTIONAL PARMS–
Access Delivery Information:
[ 2e 01 00 ]
Parameter Compatibility Information:
[ 39 02 2e c0 ]

Unhandled optional parameter 0x2e ‘Access Delivery Information’
[0x0 ]
Unhandled optional parameter 0x39 ‘Parameter Compatibility Information’
[0x2e 0xc0 ]
– DAHDI/35-1 is proceeding passing it to DAHDI/20-1
Len = 20 [ 94 91 11 c5 00 00 00 00 24 00 2c 02 01 03 04 1e 02 80 88 00 ]
FSN: 17 FIB 1
BSN: 20 BIB 1
<[0] MSU
[ 94 91 11 ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 OPC 111 SLS 4
[ 00 00 00 00 ]
CIC: 36
[ 24 00 ]
Message Type: CPG
[ 2c ]
–FIXED LENGTH PARMS[1]–
Event Information:
PROGRESS
[ 02 ]
–OPTIONAL PARMS–
Access Transport:
[ 03 04 1e 02 80 88 ]

– DAHDI/35-1 is making progress passing it to DAHDI/20-1
Len = 13 [ 91 95 0a c5 02 c1 30 40 14 00 2c 03 00 ]
FSN: 21 FIB 1
BSN: 17 BIB 1

[0] MSU
[ 91 95 0a ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 DPC 111 SLS 4
[ 02 c1 30 40 ]
CIC: 20
[ 14 00 ]
Message Type: CPG
[ 2c ]
–FIXED LENGTH PARMS[1]–
Event Information:
In-band information or an appropriate pattern is now available
[ 03 ]

Len = 21 [ 95 92 12 c5 00 00 00 00 24 00 09 01 2d 02 00 00 39 02 2d c0 00 ]
FSN: 18 FIB 1
BSN: 21 BIB 1
<[0] MSU
[ 95 92 12 ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 OPC 111 SLS 4
[ 00 00 00 00 ]
CIC: 36
[ 24 00 ]
Message Type: ANM
[ 09 ]
–OPTIONAL PARMS–
Unknown Parameter (0x2d):
[ 00 00 ]
Parameter Compatibility Information:
[ 39 02 2d c0 ]

Unhandled optional parameter 0x2d ‘Unknown’
[0x0 0x0 ]
Unhandled optional parameter 0x39 ‘Parameter Compatibility Information’
[0x2d 0xc0 ]
– DAHDI/35-1 answered DAHDI/20-1
Len = 12 [ 92 96 09 c5 02 c1 30 40 14 00 09 00 ]
FSN: 22 FIB 1
BSN: 18 BIB 1

[0] MSU
[ 92 96 09 ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 DPC 111 SLS 4
[ 02 c1 30 40 ]
CIC: 20
[ 14 00 ]
Message Type: ANM
[ 09 ]

Len = 16 [ 96 93 0d c5 00 00 00 00 14 00 0c 02 00 02 80 90 ]
FSN: 19 FIB 1
BSN: 22 BIB 1
<[0] MSU
[ 96 93 0d ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 OPC 111 SLS 4
[ 00 00 00 00 ]
CIC: 20
[ 14 00 ]
Message Type: REL
[ 0c ]
–VARIABLE LENGTH PARMS[1]–
Cause Indicator:
Coding Standard: 0
Location: 0
Cause Class: 1
Cause Subclass: 0
Cause: Normal call clearing (16)
[ 02 80 90 ]

Len = 12 [ 93 97 09 c5 02 c1 30 40 14 00 10 00 ]
FSN: 23 FIB 1
BSN: 19 BIB 1

[0] MSU
[ 93 97 09 ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 DPC 111 SLS 4
[ 02 c1 30 40 ]
CIC: 20
[ 14 00 ]
Message Type: RLC
[ 10 ]

– Hungup ‘DAHDI/35-1’
== Spawn extension (from-pstn, called_num, 14) exited non-zero on ‘DAHDI/20-1’
– Hungup 'DAHDI/20-1’
Len = 16 [ 93 98 0d c5 02 c1 30 40 24 00 0c 02 00 02 81 90 ]
FSN: 24 FIB 1
BSN: 19 BIB 1

[0] MSU
[ 93 98 0d ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 DPC 111 SLS 4
[ 02 c1 30 40 ]
CIC: 36
[ 24 00 ]
Message Type: REL
[ 0c ]
–VARIABLE LENGTH PARMS[1]–
Cause Indicator:
Coding Standard: 0
Location: 1
Cause Class: 1
Cause Subclass: 0
Cause: Normal call clearing (16)
[ 02 81 90 ]

Len = 12 [ 98 94 09 c5 00 00 00 00 24 00 10 00 ]
FSN: 20 FIB 1
BSN: 24 BIB 1
<[0] MSU
[ 98 94 09 ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 000 OPC 111 SLS 4
[ 00 00 00 00 ]
CIC: 36
[ 24 00 ]
Message Type: RLC
[ 10 ]

Shows a stack trace, which are 3 numbers. Called_number with whom I’m calling. Calling_number, the number of which I’m calling. Room C, which put the number at “redirection”.
On EWSD I do not see a field that indicates that the call diverted.

Unhandled optional parameter 0x31 ‘Propagation Delay Counter’
[0x0 0x0 ]
Unhandled optional parameter 0x39 ‘Parameter Compatibility Information’
[0x31 0xc0 0x3d 0xc0 ]
Unhandled optional parameter 0x2e ‘Access Delivery Information’
[0x0 ]

Down context from incoming and outgoing calls.

s71*CLI> dialplan show from-pstn
[ Context ‘from-pstn’ created by ‘pbx_config’ ]
’_X.’ => 1. NoOp(${CALLERID(rdnis)}) [pbx_config]
2. NoOp(${CALLERID(dnid)}) [pbx_config]
3. Set(__SS7_ORIG_CALLED_NUM=${CALLERID(ani)}) [pbx_config]
4. Set(CALLERID(num)=${EXTEN}) [pbx_config]
5. Set(CHANNEL(transfercapability)=3K1AUDIO) [pbx_config]
6. Set(__SS7_LSPI_IDENT=ON) [pbx_config]
7. Set(__SS7_RLT_ON=YES) [pbx_config]
8. Set(__SS7_REDIRECTING_NUMBER=${EXTEN}) [pbx_config]
9. Set(CALLERID(RDNIS)=${CALLERID(dnid)}) [pbx_config]
10. Set(CALLERID(DNID)=${CALLERID(dnid)}) [pbx_config]
11. NoOp(${CALLERID(rdnis)}) [pbx_config]
12. NoOp(${CALLERID(dnid)}) [pbx_config]
13. SetCallerPres(allowed_passed_screen) [pbx_config]
14. Dial(DAHDI/35/redirecting_number,tT) [pbx_config]

-= 1 extension (14 priorities) in 1 context. =-
ss71*CLI>
I not see REDIRECTing number.

My system consists of one card Digium TE210P, motherboard with Atom 1.6 and 1Gb Ram.