<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
[...snip...]<br>
<br>
You have to edit channels/sig_pri.c and define SUPPORT_USERUSER for
the
code that handles the user-user information to be in the compiled
code.
To get/set the user-user information is via the channel variable
USERUSERINFO.
Since it is normally not compiled into the code it has very little
testing.
<br>
Richard
<br>
<br>
Hello Richard,<br>
<br>
unfortunately I can`t modify our productive 1.8 asterisk... I have
two other machines running<br>
asterisk 1.6.1.1 with dahdi.<br>
I looked @ the source and found channels/chan_dahdi.c, in this file
I changed the line<br>
<br>
#undef SUPPORT_USERUSER<br>
<br>
into <br>
<br>
#define SUPPORT_USERUSER<br>
<br>
and recompiled with make / make install.<br>
After that both asterisks where running as before, nothing broken,
but my changes in the dialplan<br>
had no effect. The call is made, I hear the announcement (1-2-3),
but I was not able to transfer data <br>
between the two machines... when I trace the isdn-communication I
also do not see, that my data <br>
package gets send and therefore of cource not received.<br>
Did I forget any prerequisites? Do I have to modify my
dahdi-settings in any ways?<br>
<br>
Thats what I do on "sender" side:<br>
<font color="#3333ff"><tt><br>
[uuitest]<br>
exten => _X.,1,Set(CALLERID(name)=Yves)<br>
exten => _X.,n,Set(CALLERID(num)=621123456)<br>
exten =>
_X.,n,Set(USERUSERINFO=11111111110000000000222222222233)<br>
exten => _X.,n,Dial(DAHDI/g0/${EXTEN})<br>
</tt></font><br>
<br>
and on "receiver" side:<br>
<font color="#3333ff"><tt>[from-pstn]<br>
exten => 832113403,1,Answer()<br>
exten => 832113403,n,Verbose(CallerId all: ${CALLERID(all)});<br>
exten => 832113403,n,Verbose(CallerId num: ${CALLERID(num)});<br>
exten => 832113403,n,Verbose(CallerId name:
${CALLERID(name)});<br>
exten => 832113403,n,Verbose(UUI: ${USERUSERINFO});<br>
exten => 832113403,n,Verbose(DNID: ${DNID});<br>
exten => 832113403,n,Saydigits(123);<br>
exten => 832113403,n,Hangup();<br>
</tt></font><br>
<br>
<br>
the senders ISDN trace looks like this:<br>
<br>
<font color="#3333ff"><tt>asterisk*CLI> pri intensive debug span
1<br>
Enabled EXTENSIVE debugging on span 1<br>
T203 counter expired, sending RR and scheduling T203 again<br>
Sending Receiver Ready (0)<br>
<br>
> [ 00 01 01 01 ]<br>
<br>
> Supervisory frame:<br>
> SAPI: 00 C/R: 0 EA: 0<br>
> TEI: 000 EA: 1<br>
> Zero: 0 S: 0 01: 1 [ RR (receive ready) ]<br>
> N(R): 000 P/F: 1<br>
> 0 bytes of data<br>
asterisk*CLI><br>
< [ 02 01 01 fb ]<br>
<br>
< Supervisory frame:<br>
< SAPI: 00 C/R: 1 EA: 0<br>
< TEI: 000 EA: 1<br>
< Zero: 0 S: 0 01: 1 [ RR (receive ready) ]<br>
< N(R): 125 P/F: 1<br>
< 0 bytes of data<br>
Handling message for SAPI/TEI=0/0<br>
-- ACKing all packets from 124 to (but not including) 125<br>
-- Since there was nothing left, stopping T200 counter<br>
-- Stopping T203 counter since we got an ACK<br>
-- Nothing left, starting T203 counter<br>
-- Unsolicited RR with P/F bit, responding<br>
Sending Receiver Ready (0)<br>
<br>
> [ 02 01 01 01 ]<br>
<br>
> Supervisory frame:<br>
> SAPI: 00 C/R: 1 EA: 0<br>
> TEI: 000 EA: 1<br>
> Zero: 0 S: 0 01: 1 [ RR (receive ready) ]<br>
> N(R): 000 P/F: 1<br>
> 0 bytes of data<br>
-- Restarting T203 timer<br>
asterisk*CLI><br>
< [ 00 01 01 fb ]<br>
<br>
< Supervisory frame:<br>
< SAPI: 00 C/R: 0 EA: 0<br>
< TEI: 000 EA: 1<br>
< Zero: 0 S: 0 01: 1 [ RR (receive ready) ]<br>
< N(R): 125 P/F: 1<br>
< 0 bytes of data<br>
Handling message for SAPI/TEI=0/0<br>
-- ACKing all packets from 124 to (but not including) 125<br>
-- Since there was nothing left, stopping T200 counter<br>
-- Stopping T203 counter since we got an ACK<br>
-- Nothing left, starting T203 counter<br>
-- Got RR response to our frame<br>
-- Restarting T203 timer<br>
== Using SIP RTP CoS mark 5<br>
-- Executing [030832113403@uuitest:1]
Set("SIP/777-0a16b4f0", "CALLERID(name)=Yves") in new stack<br>
-- Executing [030832113403@uuitest:2]
Set("SIP/777-0a16b4f0", "CALLERID(num)=621123456") in new stack<br>
-- Executing [030832113403@uuitest:3]
Set("SIP/777-0a16b4f0",
"USERUSERINFO=11111111110000000000222222222233") in new stack<br>
-- Executing [030832113403@uuitest:4]
Dial("SIP/777-0a16b4f0", "DAHDI/g0/030832113403") in new stack<br>
-- Making new call for cr 32791<br>
-- Requested transfer capability: 0x00 - SPEECH<br>
-- Finally transmitting 125, since window opened up (0)<br>
<br>
> [ 00 01 fa 00 08 02 00 17 05 04 03 80 90 a3 18 03 a9 83 81
6c 0b 21 80 36 32 31 31 32 33 34 35 36 70 0d 80 30 33 30 38 33
32 31 31 33 34 30 33 a1 ]<br>
<br>
> Informational frame:<br>
> SAPI: 00 C/R: 0 EA: 0<br>
> TEI: 000 EA: 1<br>
> N(S): 125 0: 0<br>
> N(R): 000 P: 0<br>
> 44 bytes of data<br>
Stopping T_203 timer<br>
Starting T_200 timer<br>
-- Restarting T200 timer<br>
> Protocol Discriminator: Q.931 (8) len=44<br>
> Call Ref: len= 2 (reference 23/0x17) (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 capability: Speech (0)<br>
> Ext: 1 Trans mode/rate:
64kbps, circuit-mode (16)<br>
> User information layer 1:
A-Law (35)<br>
> [18 03 a9 83 81]<br>
> Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare:
0 Exclusive Dchan: 0<br>
> ChanSel: As indicated in following
octets<br>
> Ext: 1 Coding: 0 Number Specified
Channel Type: 3<br>
> Ext: 1 Channel: 1 ]<br>
> [6c 0b 21 80 36 32 31 31 32 33 34 35 36]<br>
> Calling Number (len=13) [ Ext: 0 TON: National Number (2)
NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)<br>
> Presentation: Presentation
permitted, user number not screened (0) '621123456' ]<br>
> [70 0d 80 30 33 30 38 33 32 31 31 33 34 30 33]<br>
> Called Number (len=15) [ Ext: 1 TON: Unknown Number Type
(0) NPI: Unknown Number Plan (0) '030832113403' ]<br>
> [a1]<br>
> Sending Complete (len= 1)<br>
q931.c:3134 q931_setup: call 32791 on channel 1 enters state 1
(Call Initiated)<br>
-- Called g0/030832113403<br>
asterisk*CLI><br>
< [ 00 01 01 fc ]<br>
<br>
< Supervisory frame:<br>
< SAPI: 00 C/R: 0 EA: 0<br>
< TEI: 000 EA: 1<br>
< Zero: 0 S: 0 01: 1 [ RR (receive ready) ]<br>
< N(R): 126 P/F: 0<br>
< 0 bytes of data<br>
Handling message for SAPI/TEI=0/0<br>
-- ACKing all packets from 124 to (but not including) 126<br>
-- ACKing packet 125, new txqueue is -1 (-1 means empty)<br>
-- Since there was nothing left, stopping T200 counter<br>
-- Nothing left, starting T203 counter<br>
-- Restarting T203 timer<br>
asterisk*CLI><br>
< [ 02 01 00 fc 08 02 80 17 02 18 03 a9 83 81 ]<br>
<br>
< Informational frame:<br>
< SAPI: 00 C/R: 1 EA: 0<br>
< TEI: 000 EA: 1<br>
< N(S): 000 0: 0<br>
< N(R): 126 P: 0<br>
< 10 bytes of data<br>
Handling message for SAPI/TEI=0/0<br>
-- ACKing all packets from 125 to (but not including) 126<br>
-- Since there was nothing left, stopping T200 counter<br>
-- Stopping T203 counter since we got an ACK<br>
-- Nothing left, starting T203 counter<br>
< Protocol Discriminator: Q.931 (8) len=10<br>
< Call Ref: len= 2 (reference 23/0x17) (Terminator)<br>
< Message type: CALL PROCEEDING (2)<br>
< [18 03 a9 83 81]<br>
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare:
0 Exclusive Dchan: 0<br>
< ChanSel: As indicated in following
octets<br>
< Ext: 1 Coding: 0 Number Specified
Channel Type: 3<br>
< Ext: 1 Channel: 1 ]<br>
-- Processing IE 24 (cs0, Channel Identification)<br>
q931.c:3683 q931_receive: call 32791 on channel 1 enters state 3
(Outgoing call Proceeding)<br>
Sending Receiver Ready (1)<br>
<br>
> [ 02 01 01 02 ]<br>
<br>
> Supervisory frame:<br>
> SAPI: 00 C/R: 1 EA: 0<br>
> TEI: 000 EA: 1<br>
> Zero: 0 S: 0 01: 1 [ RR (receive ready) ]<br>
> N(R): 001 P/F: 0<br>
> 0 bytes of data<br>
-- Restarting T203 timer<br>
-- DAHDI/1-1 is proceeding passing it to SIP/777-0a16b4f0<br>
asterisk*CLI><br>
< [ 02 01 02 fc 08 02 80 17 07 1e 02 81 82 29 05 0c 08 10 0e
12 ]<br>
<br>
< Informational frame:<br>
< SAPI: 00 C/R: 1 EA: 0<br>
< TEI: 000 EA: 1<br>
< N(S): 001 0: 0<br>
< N(R): 126 P: 0<br>
< 16 bytes of data<br>
Handling message for SAPI/TEI=0/0<br>
-- ACKing all packets from 125 to (but not including) 126<br>
-- Since there was nothing left, stopping T200 counter<br>
-- Stopping T203 counter since we got an ACK<br>
-- Nothing left, starting T203 counter<br>
< Protocol Discriminator: Q.931 (8) len=16<br>
< Call Ref: len= 2 (reference 23/0x17) (Terminator)<br>
< Message type: CONNECT (7)<br>
< [1e 02 81 82]<br>
< Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU)
standard (0) 0: 0 Location: Private network serving the local
user (1)<br>
< Ext: 1 Progress Description:
Called equipment is non-ISDN. (2) ]<br>
< [29 05 0c 08 10 0e 12]<br>
< Time Date (len= 7) [ 12-08-16 14:18 ]<br>
-- Processing IE 30 (cs0, Progress Indicator)<br>
-- Processing IE 41 (cs0, Date/Time)<br>
q931.c:3626 q931_receive: call 32791 on channel 1 enters state
10 (Active)<br>
-- Finally transmitting 126, since window opened up (0)<br>
<br>
> [ 00 01 fc 04 08 02 00 17 0f ]<br>
<br>
> Informational frame:<br>
> SAPI: 00 C/R: 0 EA: 0<br>
> TEI: 000 EA: 1<br>
> N(S): 126 0: 0<br>
> N(R): 002 P: 0<br>
> 5 bytes of data<br>
Stopping T_203 timer<br>
Starting T_200 timer<br>
-- Restarting T200 timer<br>
> Protocol Discriminator: Q.931 (8) len=5<br>
> Call Ref: len= 2 (reference 23/0x17) (Originator)<br>
> Message type: CONNECT ACKNOWLEDGE (15)<br>
-- Restarting T203 timer<br>
-- DAHDI/1-1 answered SIP/777-0a16b4f0<br>
<br>
< [ 00 01 01 fe ]<br>
<br>
< Supervisory frame:<br>
< SAPI: 00 C/R: 0 EA: 0<br>
< TEI: 000 EA: 1<br>
< Zero: 0 S: 0 01: 1 [ RR (receive ready) ]<br>
< N(R): 127 P/F: 0<br>
< 0 bytes of data<br>
Handling message for SAPI/TEI=0/0<br>
-- ACKing all packets from 125 to (but not including) 127<br>
-- ACKing packet 126, new txqueue is -1 (-1 means empty)<br>
-- Since there was nothing left, stopping T200 counter<br>
-- Stopping T203 counter since we got an ACK<br>
-- Nothing left, starting T203 counter<br>
-- Restarting T203 timer<br>
asterisk*CLI><br>
< [ 02 01 04 fe 08 02 80 17 45 08 02 81 90 1c 15 91 a1 12 02
02 73 b0 02 01 24 30 09 30 07 a1 05 30 03 02 01 01 1e 02 82 88 ]<br>
<br>
< Informational frame:<br>
< SAPI: 00 C/R: 1 EA: 0<br>
< TEI: 000 EA: 1<br>
< N(S): 002 0: 0<br>
< N(R): 127 P: 0<br>
< 36 bytes of data<br>
Handling message for SAPI/TEI=0/0<br>
-- ACKing all packets from 126 to (but not including) 127<br>
-- Since there was nothing left, stopping T200 counter<br>
-- Stopping T203 counter since we got an ACK<br>
-- Nothing left, starting T203 counter<br>
< Protocol Discriminator: Q.931 (8) len=36<br>
< Call Ref: len= 2 (reference 23/0x17) (Terminator)<br>
< Message type: DISCONNECT (69)<br>
< [08 02 81 90]<br>
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0)
Spare: 0 Location: Private network serving the local user (1)<br>
< Ext: 1 Cause: Normal Clearing (16), class
= Normal Event (1) ]<br>
< [1c 15 91 a1 12 02 02 73 b0 02 01 24 30 09 30 07 a1 05 30
03 02 01 01]<br>
< Facility (len=23, codeset=0) [ 0x91, 0xA1, 0x12, 0x02,
0x02, 's', 0xB0, 0x02, 0x01, '$0', 0x09, '0', 0x07, 0xA1, 0x05,
'0', 0x03, 0x02, 0x01, 0x01<br>
PROTOCOL 11<br>
A1 0012 (CONTEXT SPECIFIC [1])<br>
02 0002 73 B0 (INTEGER: 29616)<br>
02 0001 24 (INTEGER: 36)<br>
30 0009 (SEQUENCE)<br>
30 0007 (SEQUENCE)<br>
A1 0005 (CONTEXT SPECIFIC [1])<br>
30 0003 (SEQUENCE)<br>
02 0001 01 (INTEGER: 1)<br>
< [1e 02 82 88]<br>
< Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU)
standard (0) 0: 0 Location: Public network serving the local
user (2)<br>
< Ext: 1 Progress Description:
Inband information or appropriate pattern now available. (8) ]<br>
-- Processing IE 8 (cs0, Cause)<br>
-- Processing IE 28 (cs0, Facility)<br>
Handle Q.932 ROSE Invoke component<br>
[ Handling operation 36 ]<br>
-- Processing IE 30 (cs0, Progress Indicator)<br>
q931.c:3826 q931_receive: call 32791 on channel 1 enters state
12 (Disconnect Indication)<br>
Sending Receiver Ready (3)<br>
<br>
> [ 02 01 01 06 ]<br>
<br>
> Supervisory frame:<br>
> SAPI: 00 C/R: 1 EA: 0<br>
> TEI: 000 EA: 1<br>
> Zero: 0 S: 0 01: 1 [ RR (receive ready) ]<br>
> N(R): 003 P/F: 0<br>
> 0 bytes of data<br>
-- Restarting T203 timer<br>
-- Channel 0/1, span 1 got hangup request, cause 16<br>
-- Channel 0/1, span 1 received AOC-E charging 1 unit<br>
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect
Indication, peerstate Disconnect Request<br>
q931.c:2967 q931_release: call 32791 on channel 1 enters state
19 (Release Request)<br>
-- Finally transmitting 127, since window opened up (0)<br>
asterisk*CLI><br>
> [ 00 01 fe 06 08 02 00 17 4d 08 02 81 90 ]<br>
asterisk*CLI><br>
> Informational frame:<br>
> SAPI: 00 C/R: 0 EA: 0<br>
> TEI: 000 EA: 1<br>
> N(S): 127 0: 0<br>
> N(R): 003 P: 0<br>
> 9 bytes of data<br>
Stopping T_203 timer<br>
Starting T_200 timer<br>
-- Restarting T200 timer<br>
> Protocol Discriminator: Q.931 (8) len=9<br>
> Call Ref: len= 2 (reference 23/0x17) (Originator)<br>
> Message type: RELEASE (77)<br>
> [08 02 81 90]<br>
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0)
Spare: 0 Location: Private network serving the local user (1)<br>
> Ext: 1 Cause: Normal Clearing (16), class
= Normal Event (1) ]<br>
-- Hungup 'DAHDI/1-1'<br>
== Spawn extension (uuitest, 030832113403, 4) exited non-zero
on 'SIP/777-0a16b4f0'<br>
asterisk*CLI><br>
< [ 00 01 01 00 ]<br>
<br>
< Supervisory frame:<br>
< SAPI: 00 C/R: 0 EA: 0<br>
< TEI: 000 EA: 1<br>
< Zero: 0 S: 0 01: 1 [ RR (receive ready) ]<br>
< N(R): 000 P/F: 0<br>
< 0 bytes of data<br>
Handling message for SAPI/TEI=0/0<br>
-- ACKing all packets from 126 to (but not including) 0<br>
-- ACKing packet 127, new txqueue is -1 (-1 means empty)<br>
-- Since there was nothing left, stopping T200 counter<br>
-- Nothing left, starting T203 counter<br>
-- Restarting T203 timer<br>
asterisk*CLI><br>
< [ 02 01 06 00 08 02 80 17 5a ]<br>
<br>
< Informational frame:<br>
< SAPI: 00 C/R: 1 EA: 0<br>
< TEI: 000 EA: 1<br>
< N(S): 003 0: 0<br>
< N(R): 000 P: 0<br>
< 5 bytes of data<br>
Handling message for SAPI/TEI=0/0<br>
-- ACKing all packets from 127 to (but not including) 0<br>
-- Since there was nothing left, stopping T200 counter<br>
-- Stopping T203 counter since we got an ACK<br>
-- Nothing left, starting T203 counter<br>
< Protocol Discriminator: Q.931 (8) len=5<br>
< Call Ref: len= 2 (reference 23/0x17) (Terminator)<br>
< Message type: RELEASE COMPLETE (90)<br>
q931.c:3766 q931_receive: call 32791 on channel 1 enters state 0
(Null)<br>
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate
Null<br>
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate
Null<br>
Sending Receiver Ready (4)<br>
<br>
> [ 02 01 01 08 ]<br>
<br>
> Supervisory frame:<br>
> SAPI: 00 C/R: 1 EA: 0<br>
> TEI: 000 EA: 1<br>
> Zero: 0 S: 0 01: 1 [ RR (receive ready) ]<br>
> N(R): 004 P/F: 0<br>
> 0 bytes of data<br>
-- Restarting T203 timer<br>
asterisk*CLI> pri no debug span 1<br>
Disabled debugging on span 1<br>
</tt></font><br>
<br>
and finally the dahdi configuration looks like this:<br>
<br>
<font color="#3333ff"><tt>[channels]<br>
usecallerid=yes<br>
callwaiting=no<br>
usecallingpres=yes<br>
callwaitingcallerid=yes<br>
threewaycalling=yes<br>
transfer=yes<br>
canpark=yes<br>
cancallforward=yes<br>
callreturn=yes<br>
echocancel=no<br>
echocancelwhenbridged=no<br>
rxgain=3.0<br>
txgain=3.0<br>
group=1<br>
callgroup=1<br>
pickupgroup=1<br>
<br>
; Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" (MASTER)
HDB3/CCS/CRC4 ClockSource<br>
group=0,11<br>
context=from-pstn<br>
switchtype = euroisdn<br>
signalling = pri_cpe<br>
channel => 1-15,17-31<br>
context = default<br>
group = 63<br>
</tt></font><br>
As always... any hints are highly appreciated and thanks very much
for reading and helping!<br>
<br>
Yves<br>
<br>
</body>
</html>