Retrieve call details from IAM message

HI All,

I am using asterisk with SS7 E1’s

Whenever a user forwards a call, the call will land on the asterisk box.

I would like to retrieve calling, called, originally called number to use it for hte application

Pls help on how to retrieve.

	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: 1
		NI: 0
		Numbering plan: 1
		Address signals: 7829700161#
		[ 08 81 10 87 92 07 10 16 0f ]
	--OPTIONAL PARMS--
	Calling Party Number:
		Nature of address: 3
		NI: 0
		Numbering plan: 1
		Presentation: 0
		Screening: 1
		Address signals: 1534520441
		[ 0a 07 03 11 51 43 25 40 14 ]
	Redirecting Number:
		Nature of address: 3
		NI: 0
		Numbering plan: 1
		Presentation: 1
		Screening: 0
		Address signals: 7829710787
		[ 0b 07 03 14 87 92 17 70 78 ]
	Redirection Information:
		Redirecting indicator: Call diverted (3)
		Original redirection reason: User busy (national use) (1)
		Redirection counter: 1
		Redirecting reason: User busy (1)
		[ 13 02 13 11 ]
	Original called number:
		Nature of address: 3
		Numbering plan: 1

telephonybackup*CLI> Presentation: 1
Address signals: 7829710787
[ 28 07 03 14 87 92 17 70 78 ]
User Service Information:
[ 1d 03 80 90 a3 ]
Propagation Delay Counter:
Delay: 0ms
[ 31 02 00 00 ]
Parameter Compatibility Information:
[ 39 02 31 c0 ]

Its bit urgent, pls help

Thanks
Karthik

Try the various options under ${CALLERID(…)}. If it is not there, you will need to modify the source code.

Dear David,

thanks for the reply.

I am gettting empty values when i use callerid(rdnis) message.

Could you please suggest on how to do code changes to get the Original called number.

Thanks,
Karthik