[asterisk-ss7] AutoPC patch for chan_ss7 0.9.

Jakub Klausa j.klausa at ss7.pl
Mon Dec 4 12:32:04 MST 2006


Hello,

	here's another patch we, at ss7.pl wrote for chan_ss7 0.9.

	AutoPC, or Auto Point Code patch, gives you the ability to ommit the
opc/dpc configuration entirely, and refain the point code addresses from the
link (if it's configured right at the other end - as an exercise, try to
link asterisks with AutoPC on on both ends of a link ;)).

	All you need to do, is to add:

	[19:57:04] [70] manhattan:jacke:~> tail ss7.conf

	[host-manhattan]
	enabled => yes
	autopc => yes
	;opc => 0x1111
	;dpc => test:0x2222
	links => l1:1,l2:2

	The 'autopc => yes' directive allows you not to specify any opc and
dcp parameters. If you include them, they're ignored anyway.

	After starting asterisk, you'll get something like this:

	[chan_ss7.so] => (SS7 Protocol Support)
	[...]
	Dec  4 19:16:13 NOTICE[26879]: config.c:860 load_config: Configuring DPC 0 for linkset 'test'.
	[...]
		-- SS7 channel loaded successfully.
	Dec  4 19:16:23 WARNING[26902]: mtp.c:822 timeout_sltm_t1: No SLTA received within Q.707 timer T1, trying again on link 'l1'.
	Dec  4 19:16:23 NOTICE[26901]: mtp.c:1195 mtp2_good_frame: autopc = 1
	Dec  4 19:16:23 WARNING[26902]: chan_ss7.c:651 monitor_main: MTP is now UP on link 'l1'.
	Dec  4 19:16:23 WARNING[26902]: chan_ss7.c:661 monitor_main: MTP is now INSERVICE for linkset 'test'.
	*CLI> ss7 show links
	Number of linksets: 1.
	Linkset 1 name is: test.
		Number of links in linkset: 2.
		Link number 1 name is: l1
		Link number 2 name is: l2
		Config opc=0x1111, dpc=0x2222

	The warning is fine, as understandably we have to sit silet and wait for the other side to send us something, so we can guess the point codes.

	As you see - the command 'ss7 show links' will show you the opc and dpc parameters being used. 

	The patch can be found at:

	http://www.ss7.pl/~jacke/patches/chan_ss7/chan_ss7-0.9.patch-2.gz
	
	(in the combined form, with the previous chan_ss7 0.9 patch by ss7.pl)
	
	If you have any questions - drop me a note.

-- 
Jakub Klausa | j.klausa at ss7.pl | http://www.ss7.pl/ 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-ss7/attachments/20061204/ed712b2b/attachment.pgp


More information about the asterisk-ss7 mailing list