this was not because of that, but because rdnis is write-only in 1.2. this fixed it:

roy

Index: channels/chan_zap.c
===================================================================
--- channels/chan_zap.c (revision 333)
+++ channels/chan_zap.c (working copy)
@@ -2029,6 +2029,8 @@
                int prilocaldialplan;
                int ldp_strip;
                int exclusive;
+               const char *rr_str;
+               int redirect_reason;
                c = strchr(dest, '/');
                if (c)
@@ -2135,8 +2137,24 @@
                }
pri_sr_set_caller(sr, l ? (l + ldp_strip) : NULL, n, prilocaldialplan, p->use_callingpres ? ast- >cid.cid_pres : (l ? PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN : PRES_NUMBER_NOT_AVAILABLE)); - pri_sr_set_redirecting(sr, ast->cid.cid_rdnis, p->pri- >localdialplan - 1, PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN, PRI_REDIR_UNCONDITIONAL);
+               redirect_reason = PRI_REDIR_UNCONDITIONAL;
+ if ((rr_str = pbx_builtin_getvar_helper(ast, "PRIREDIRECTREASON"))) {
+                       if (!strcasecmp(rr_str, "UNKNOWN"))
+                               redirect_reason = PRI_REDIR_UNKNOWN;
+                       else if (!strcasecmp(rr_str, "BUSY"))
+ redirect_reason = PRI_REDIR_FORWARD_ON_BUSY;
+                       else if (!strcasecmp(rr_str, "NO_REPLY"))
+ redirect_reason = PRI_REDIR_FORWARD_ON_NO_REPLY;
+                       else if (!strcasecmp(rr_str, "DEFLECTION"))
+                               redirect_reason = PRI_REDIR_DEFLECTION;
+ else if (!strcasecmp(rr_str, "DTE_OUT_OF_ORDER")) + redirect_reason = PRI_REDIR_DTE_OUT_OF_ORDER; + else if (!strcasecmp(rr_str, "FORWARDED_BY_DTE")) + redirect_reason = PRI_REDIR_FORWARDED_BY_DTE;
+               }
+ pri_sr_set_redirecting(sr, ast->cid.cid_rdnis, p->pri- >localdialplan - 1, PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN, redirect_reason);
+
#ifdef SUPPORT_USERUSER
                /* User-user info */
useruser = pbx_builtin_getvar_helper(p->owner, "USERUSERINFO");

On 2. des. 2006, at 09.50, Paul Cadach wrote:

Hello,

This is probably because of mis-configuration of your PRI zap span (wrong switchtype, etc.). Which version of
asterisk/libpri do you use?


WBR,
Paul.

----- Original Message -----
From: "Roy Sigurd Karlsbakk" <[EMAIL PROTECTED]>
To: "Asterisk Mailing List" <[email protected]>
Cc: "Mikael Bjerkland" <[EMAIL PROTECTED]>
Sent: Tuesday, November 07, 2006 4:02 AM
Subject: [asterisk-dev] RDNIS not set on diverted incoming calls?


hi all

when diverting a call from some phone to a number connected to my *
box, * does not decode  the incoming RDNIS. PRI debug shows the
number, but only as hex. Is this meant to be this way?

thanks

roy

PRI DEBUG:
< Protocol Discriminator: Q.931 (8)  len=77
< Call Ref: len= 2 (reference 5568/0x15C0) (Originator)
< Message type: SETUP (5)
< [04 03 80 90 a3]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer
capability: Speech (0)
<                              Ext: 1  Trans mode/rate: 64kbps,
circuit-mode (16)
<                              Ext: 1  User information layer 1: A-
Law (35)
< [18 03 a1 83 81]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0,
Preferred Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0   Number Specified
Channel Type: 3
<                       Ext: 1  Channel: 1 ]
< [1c 24 91 a1 21 02 01 25 02 01 0f 30 19 02 01 01 0a 01 01 a1 11 a0
0f a1 0d 0a 01 00 12 08 34 38 38 36 39 34 34 30]
< Facility (len=38, codeset=0) [ 0x91, 0xa1, 0x21, 0x02, 0x01, 0x25,
0x02, 0x01, 0x0f, '0', 0x19, 0x02, 0x01, 0x01, 0x0a, 0x01, 0x01,
0xa1, 0x11, 0xa0, 0x0f, 0xa1, 0x0d, 0x0a, 0x01, 0x00, 0x12, 0x08,
'48869440' ]
< [6c 0a 21 83 39 38 30 31 33 33 35 36]
< Calling Number (len=12) [ Ext: 0  TON: National Number (2)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)
<                           Presentation: Presentation allowed of
network provided number (3) '98013356' ]
< [70 09 a1 32 31 39 37 33 35 39 39]
< Called Number (len=11) [ Ext: 1  TON: National Number (2)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1) '21973599' ]
< [a1]*CLI>

--
Roy Sigurd Karlsbakk
[EMAIL PROTECTED]
-------------------------------
MICROSOFT: Acronym for "Most Intelligent Customers Realise Our
Software Only Fools Teenagers"

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

!DSPAM:45713e86253537650217951!




---
Roy Sigurd Karlsbakk
[EMAIL PROTECTED]
---------------------------------
Those people who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to