How to send SS7_ORIG_CALLED_NUM in asterisk+libss7

Hi all, the scenario is as follows,
I need to send CALLERID(num) and also SS7_ORIG_CALLED_NUM value in an outgoing call from an asterisk box via SS7 E1s(we’re using libss7).
we’re able to set value to both CALLERID(num) and SS7_ORIG_CALLED_NUM(ss7 channel variable) in the dial plan before dialing, but unable to get the value in ISUP: IAM Message. kindly help me as it is very urgent.
Thanks.

dial plan example:
exten => _X.,1,Set(CALLERID(num)=1800000001)
exten => _X.,2,Set(_SS7_ORIG_CALLED_NUM=9876543210)
exten => _X.,3,Set(CALLERPRES()=allowed)
exten => _x.,4,Dial(DAHDI/G1/1234567890)

i need to dial 1234567890 with callerid as 1800000001 and original called number as 9876543210. At the incoming server i need to get these values in IAM message.

If it can be done at all, I would imagine that you would do it with CALLERID(dnid).

You should also take note of the first sticky posting on this forum.

Also note that peer support forums do not normally take account of the urgency of requirements.