<HTML>
<HEAD>
<TITLE>Re: [asterisk-dev] Q.932 ROSE Support libpri</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Thank you for your answer, <BR>
i changed the switchtype to qsig and in libpri/pri_facility.h changed the value of </SPAN></FONT><FONT SIZE="1"><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:9pt'>ROSE_DIVERTING_LEG_INFORMATION2 from 0x15 to 0x0f<BR>
<BR>
Now I obtain the correct value.<BR>
<BR>
Bye <BR>
<BR>
Matteo<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<BR>
Il 18/01/10 18.26, "Richard Mudgett" <<a href="rmudgett@digium.com">rmudgett@digium.com</a>> ha scritto:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Asterisk trunk and libpri branch 1.4 now handle this message as part of the connected line presentation (COLP) feature added. The COLP feature is scheduled to be included as part of the upcoming Asterisk 1.8 release.<BR>
<BR>
I am assuming that the ISDN switch type is EuroISDN (ETSI). For EuroISDN that ROSE operation is defined as DivertingLegInformation2 and makes sense for the scenario you have described.<BR>
<BR>
Richard<BR>
----- "Matteo Degasperi" <a href="Degasperi@unitn.it">Degasperi@unitn.it</a>> wrote:<BR>
<BR>
> hi,<BR>
> I'm working on a sip-based telephony project with gateways to the<BR>
> "old" Siemens PBX implemented with Asterisk (1.4.26.3) with digium<BR>
> TE420B PRI cards.<BR>
><BR>
> when i transfer calls between the sip world (based on opensips) and<BR>
> the Siemens PBX i see on the pri debug that the pbx correctly sends<BR>
> RDNIS information but the dialplan function CALLERID(rdnis) returns an<BR>
> empty value.<BR>
> the call is :<BR>
><BR>
> 3674 (SIP) -->ASTERISK GW --> 2943 (PBX) redirected to 3671 (SIP) via<BR>
> ASTERISK GW<BR>
><BR>
> in particular the not handled ROSE operation is the number 15<BR>
><BR>
> Handle Q.932 ROSE Invoke component<BR>
> [ Handling operation 15 ]<BR>
> !! Unable to handle ROSE operation 15 [ 30 10 02 01 01 0A 01 01 A1 08<BR>
> A0 06 80 04 32 39 34 33 ] - [0.............2943]<BR>
><BR>
> is there a way to handle this message?<BR>
><BR>
><BR>
> bye<BR>
> Matteo Degasperi<BR>
> University of Trento<BR>
><BR>
><BR>
> the debug trace is the following<BR>
><BR>
> < Protocol Discriminator: Q.931 (8) len=60<BR>
> < Call Ref: len= 2 (reference 17/0x11) (Originator)<BR>
> < Message type: SETUP (5)<BR>
> < [04 03 80 90 a3]<BR>
> < Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer<BR>
> capability: Speech (0)<BR>
> < Ext: 1 Trans mode/rate: 64kbps,<BR>
> circuit-mode (16)<BR>
> < User information layer 1: A-Law (35)<BR>
> < [18 03 a1 83 86]<BR>
> < Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0<BR>
> Preferred Dchan: 0<BR>
> < ChanSel: As indicated in following octets<BR>
> < Ext: 1 Coding: 0 Number Specified Channel<BR>
> Type: 3<BR>
> < Ext: 1 Channel: 6 ]<BR>
> < [1c 1c 91 a1 19 02 02 d0 ff 02 01 0f 30 10 02 01 01 0a 01 01 a1 08<BR>
> a0 06 80 04 32 39 34 33]<BR>
> < Facility (len=30, codeset=0) [ 0x91, 0xA1, 0x19, 0x02, 0x02, 0xD0,<BR>
> 0xFF, 0x02, 0x01, 0x0F, '0', 0x10, 0x02, 0x01, 0x01, 0x0A, 0x01, 0x01,<BR>
> 0xA1, 0x08, 0xA0, 0x06, 0x80, 0x04, '2943' ]<BR>
> PROTOCOL 11<BR>
> A1 0019 (CONTEXT SPECIFIC [1])<BR>
> 02 0002 D0 FF (INTEGER: 53503)<BR>
> 02 0001 0F (INTEGER: 15)<BR>
> 30 0010 (SEQUENCE)<BR>
> 02 0001 01 (INTEGER: 1)<BR>
> 0A 0001 01 (ENUMERATED: 1)<BR>
> A1 0008 (CONTEXT SPECIFIC [1])<BR>
> A0 0006 (CONTEXT SPECIFIC [0])<BR>
> 80 0004 32 39 34 33 (CONTEXT SPECIFIC [0])<BR>
> < [6c 06 00 80 33 36 37 34]<BR>
> < Calling Number (len= 8) [ Ext: 0 TON: Unknown Number Type (0) NPI:<BR>
> Unknown Number Plan (0)<BR>
> < Presentation: Presentation permitted, user<BR>
> number not screened (0) '3674' ]<BR>
> < [70 05 80 33 36 37 31]<BR>
> < Called Number (len= 7) [ Ext: 1 TON: Unknown Number Type (0) NPI:<BR>
> Unknown Number Plan (0) '3671' ]<BR>
> -- Making new call for cr 17<BR>
> -- Processing Q.931 Call Setup<BR>
> -- Processing IE 4 (cs0, Bearer Capability)<BR>
> -- Processing IE 24 (cs0, Channel Identification)<BR>
> -- Processing IE 28 (cs0, Facility)<BR>
> Handle Q.932 ROSE Invoke component<BR>
> [ Handling operation 15 ]<BR>
> !! Unable to handle ROSE operation 15 [ 30 10 02 01 01 0A 01 01 A1 08<BR>
> A0 06 80 04 32 39 34 33 ] - [0.............2943]<BR>
> -- Processing IE 108 (cs0, Calling Party Number)<BR>
> -- Processing IE 112 (cs0, Called Party Number)<BR>
> q931.c:3551 q931_receive: call 17 on channel 6 enters state 6 (Call<BR>
> Present)<BR>
> q931.c:2868 q931_setup_ack: call 17 on channel 6 enters state 25<BR>
> (Overlap Receiving)<BR>
> > Protocol Discriminator: Q.931 (8) len=14<BR>
> > Call Ref: len= 2 (reference 17/0x11) (Terminator)<BR>
> > Message type: SETUP ACKNOWLEDGE (13)<BR>
> > [18 03 a9 83 86]<BR>
> > Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0<BR>
> Exclusive Dchan: 0<BR>
> > ChanSel: As indicated in following octets<BR>
> > Ext: 1 Coding: 0 Number Specified Channel<BR>
> Type: 3<BR>
> > Ext: 1 Channel: 6 ]<BR>
> > [1e 02 81 82]<BR>
> > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard<BR>
> (0) 0: 0 Location: Private network serving the local user (1)<BR>
> > Ext: 1 Progress Description: Called<BR>
> equipment is non-ISDN. (2) ]<BR>
> -- Accepting call from '3674' to '3671' on channel 0/6, span 3<BR>
> -- Executing [3671@from-pbx:1] Dial("DAHDI/68-1",<BR>
> "<a href="SIP/3671@unitn.it|30"">SIP/3671@unitn.it|30"</a>) in new stack<BR>
> -- ast_get_srv: SRV lookup for '_sip._udp.unitn.it' mapped to host<BR>
> sip.unitn.it, port 5060<BR>
> -- Called <a href="3671@unitn.it">3671@unitn.it</a><BR>
> -- SIP/unitn.it-089b3450 is ringing<BR>
> q931.c:2816 q931_call_proceeding: call 17 on channel 6 enters state 9<BR>
> (Incoming Call Proceeding)<BR>
> > Protocol Discriminator: Q.931 (8) len=10<BR>
> > Call Ref: len= 2 (reference 17/0x11) (Terminator)<BR>
> > Message type: CALL PROCEEDING (2)<BR>
> > [18 03 a9 83 86]<BR>
> > Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0<BR>
> Exclusive Dchan: 0<BR>
> > ChanSel: As indicated in following octets<BR>
> > Ext: 1 Coding: 0 Number Specified Channel<BR>
> Type: 3<BR>
> > Ext: 1 Channel: 6 ]<BR>
> q931.c:2844 q931_alerting: call 17 on channel 6 enters state 7 (Call<BR>
> Received)<BR>
> > Protocol Discriminator: Q.931 (8) len=9<BR>
> > Call Ref: len= 2 (reference 17/0x11) (Terminator)<BR>
> > Message type: ALERTING (1)<BR>
> > [1e 02 81 88]<BR>
> > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard<BR>
> (0) 0: 0 Location: Private network serving the local user (1)<BR>
> > Ext: 1 Progress Description: Inband<BR>
> information or appropriate pattern now available. (8) ]<BR>
> -- SIP/unitn.it-089b3450 answered DAHDI/68-1<BR>
> q931.c:2951 q931_connect: call 17 on channel 6 enters state 8 (Connect<BR>
> Request)<BR>
> > Protocol Discriminator: Q.931 (8) len=14<BR>
> > Call Ref: len= 2 (reference 17/0x11) (Terminator)<BR>
> > Message type: CONNECT (7)<BR>
> > [18 03 a9 83 86]<BR>
> > Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0<BR>
> Exclusive Dchan: 0<BR>
> > ChanSel: As indicated in following octets<BR>
> > Ext: 1 Coding: 0 Number Specified Channel<BR>
> Type: 3<BR>
> Ext: 1 Channel: 6 ]<BR>
> > [1e 02 81 82]<BR>
> > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard<BR>
> (0) 0: 0 Location: Private network serving the local user (1)<BR>
> > Ext: 1 Progress Description: Called<BR>
> equipment is non-ISDN. (2) ]<BR>
> < Protocol Discriminator: Q.931 (8) len=5<BR>
> < Call Ref: len= 2 (reference 17/0x11) (Originator)<BR>
> < Message type: CONNECT ACKNOWLEDGE (15)<BR>
> q931.c:3711 q931_receive: call 17 on channel 6 enters state 10<BR>
> (Active)<BR>
> == Spawn extension (from-pbx, 3671, 1) exited non-zero on<BR>
> 'DAHDI/68-1'<BR>
> NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate<BR>
> Active<BR>
> q931.c:3015 q931_disconnect: call 17 on channel 6 enters state 11<BR>
> (Disconnect Request)<BR>
> > Protocol Discriminator: Q.931 (8) len=9<BR>
> > Call Ref: len= 2 (reference 17/0x11) (Terminator)<BR>
> > Message type: DISCONNECT (69)<BR>
> > [08 02 81 90]I><BR>
> > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0<BR>
> Location: Private network serving the local user (1)<BR>
> > Ext: 1 Cause: Normal Clearing (16), class = Normal<BR>
> Event (1) ]<BR>
> -- Hungup 'DAHDI/68-1'<BR>
> < Protocol Discriminator: Q.931 (8) len=9<BR>
> < Call Ref: len= 2 (reference 17/0x11) (Originator)<BR>
> < Message type: RELEASE (77)<BR>
> < [08 02 80 90]<BR>
> < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0<BR>
> Location: User (0)<BR>
> < Ext: 1 Cause: Normal Clearing (16), class = Normal<BR>
> Event (1) ]<BR>
> -- Processing IE 8 (cs0, Cause)<BR>
> q931.c:3801 q931_receive: call 17 on channel 6 enters state 0 (Null)<BR>
> NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate<BR>
> Release Request<BR>
> > Protocol Discriminator: Q.931 (8) len=9<BR>
> > Call Ref: len= 2 (reference 17/0x11) (Terminator)<BR>
> > Message type: RELEASE COMPLETE (90)<BR>
> > [08 02 81 90]<BR>
> > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0<BR>
> Location: Private network serving the local user (1)<BR>
> > Ext: 1 Cause: Normal Clearing (16), class = Normal<BR>
> Event (1) ]<BR>
> NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null<BR>
> NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null<BR>
><BR>
><BR>
> --<BR>
> _____________________________________________________________________<BR>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<BR>
><BR>
> asterisk-dev mailing list<BR>
> To UNSUBSCRIBE or update options visit:<BR>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><BR>
<BR>
--<BR>
_____________________________________________________________________<BR>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<BR>
<BR>
asterisk-dev mailing list<BR>
To UNSUBSCRIBE or update options visit:<BR>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>