[asterisk-dev] callerid on redirected calls

Roy Sigurd Karlsbakk roy at karlsbakk.net
Fri Dec 8 05:28:03 MST 2006


hi all

I've been fighting this for a while, and telco tells me i'm doing it  
wrong and all, although I'm doing it after the book (or so I  
beleive). To divert a call, I do as follows

exten => s,n,Set(CALLERID(rdnis)=${CALLERID(number)})
exten => s,n,Set(CALLERID(number)=${EXTEN})
exten => s,n,Set(CALLERID(ani)=${EXTEN})
exten => s,n,Dial(${DIVERT_TO_NUMEBER})

This looks all fine to me, pri trace looks right according to Q.931  
and all, but switch monkey says it's wrong, that I have to do it his  
way, which is to use a PRI OPVAL type callRerou.

Is it possible to have asterisk do this?

Attached are pri traces done on the switch by the telco. asterisk.txt  
is the one from asterisk, and opval is the one from the telco.

thanks

roy
-------------- next part --------------
Wednesday 06-12-2006 15:58:25.921

Signalling Message
RxB Count 1
Q.921
 SAPI :0 = CCP                                         00
 C/R  :......0.
 EA0  :.......0
 TEI  :0                                               01
 EA1  :.......1
  CTRL1:11101010b = I/UI                               EA
  CTRL2:11111000b                                      F8
   PDC  :08h = Q.931                                   08
    SPARE:0000....                                     02
    LCREF:2
    FLAG :0.......                                     00
    CREF :0013h                                        13
    TYPE :05h = SETUP                                  05
    ISDNIEID:
      IEID0:04h = BC                                   04
      LIE  :3                                          03
      EXT3 :1.......                                   80
      COST :.00.....
      ITC  :...00000 = SPEACH
      EXT4 :1.......                                   90
      TRMOD:.00.....
      ITR1 :...10000
      EXT  :1.......                                   A3
      LYRID:.01.....
      UIL1P:...00011
      IEID0:18h = CHANNELID                            18
      LIE  :3                                          03
      EXT3 :1.......                                   A9
      IIDP :.0......
      ITYPE:..1.....
      SPARE:...0....
      P/E  :....1...
      DCHIN:.....0..
      CHSEL:......01
      EXT3b:1.......                                   83
      COST :.00.....
      N/M  :...0....
      C/ME :....0011
      EXT33:1.......                                   83
      CHNO :3
      IEID0:6Ch = CALGPARNO                            6C
      LIE  :10                                         0A
      EXT3 :0.......                                   21
      TON  :.010....
      NPID :....0001
      EXT3a:1.......                                   83
      PRIN :.00.....
      SPARE:...000..
      SCRIN:......11
      NO   :'21973577'                   3231393733353737
      IEID0:70h = CALDPARNO                            70
      LIE  :9                                          09
      EXT3 :1.......                                   A1
      TON  :.010....
      NPID :....0001
      NO   :'91736786'                   3931373336373836
      IEID0:74h = REDGNO                               74
      LIE  :11                                         0B
      EXT3 :0.......                                   21
      TON  :.010....
      NPID :....0001
      EXT3a:0.......                                   01
      PRIN :.00.....
      SPARE:...000..
      SCRIN:......01
      EXT3b:1.......                                   82
      SPARE:.000....
      REASO:2h
      NO   :'98013356'                   3938303133333536
-------------- next part --------------
Friday 08-12-2006 10:44:06.679

Signalling Message
RxA Count 1
Q.921
 SAPI :0 = CCP                                         02
 C/R  :......1.
 EA0  :.......0
 TEI  :0                                               01
 EA1  :.......1
  CTRL1:00100000b = I/UI                               20
  CTRL2:00101100b                                      2C
   PDC  :08h = Q.931                                   08
    SPARE:0000....                                     02
    LCREF:2
    FLAG :0.......                                     0A
    CREF :0A44h                                        44
    TYPE :05h = SETUP                                  05
    ISDNIEID:
      IEID0:04h = BC                                   04
      LIE  :3                                          03
      EXT3 :1.......                                   80
      COST :.00.....
      ITC  :...00000 = SPEACH
      EXT4 :1.......                                   90
      TRMOD:.00.....
      ITR1 :...10000
      EXT  :1.......                                   A3
      LYRID:.01.....
      UIL1P:...00011
      IEID0:18h = CHANNELID                            18
      LIE  :3                                          03
      EXT3 :1.......                                   A1
      IIDP :.0......
      ITYPE:..1.....
      SPARE:...0....
      P/E  :....0...
      DCHIN:.....0..
      CHSEL:......01
      EXT3b:1.......                                   83
      COST :.00.....
      N/M  :...0....
      C/ME :....0011
      EXT33:1.......                                   83
      CHNO :3
      IEID0:6Ch = CALGPARNO                            6C
      LIE  :10                                         0A
      EXT3 :0.......                                   21
      TON  :.010....
      NPID :....0001
      EXT3a:1.......                                   81
      PRIN :.00.....
      SPARE:...000..
      SCRIN:......01
      NO   :'69204403'                   3639323034343033
      IEID0:70h = CALDPARNO                            70
      LIE  :9                                          09
      EXT3 :1.......                                   A1
      TON  :.010....
      NPID :....0001
      NO   :'21932203'                   3231393332323033
      IEID0:7Dh = HLC                                  7D
      LIE  :2                                          02
      EXT3 :1.......                                   91
      COST :.00.....
      INTPT:...100..
      PMPP :......01
      EXT4 :1.......                                   81
      CHAR :.0000001 = TELEPHONY
      IEID0:7Eh = UUI                                  7E
      LIE  :1                                          01
      UUPDC:04h = IA5_CHARS                            04
      IEID0:A1h = SENDCOMP                             A1
-----
Friday 08-12-2006 10:44:06.779

Signalling Message
RxB Count 1
Q.921
 SAPI :0 = CCP                                         00
 C/R  :......0.
 EA0  :.......0
 TEI  :0                                               01
 EA1  :.......1
  CTRL1:00101110b = I/UI                               2E
  CTRL2:00100010b                                      22
   PDC  :08h = Q.931                                   08
    SPARE:0000....                                     02
    LCREF:2
    FLAG :1.......                                     8A
    CREF :0A44h                                        44
    TYPE :62h = FACILITY                               62
    ISDNIEID:
      IEID0:1Ch = FACIL                                1C
      LIE  :45                                         2D
      EXT3 :1.......                                   91
      SPARE:.00.....
      SD   :11h
      COMPT:A1h = INVOK                                A1
       LSFI :42                                        2A
       INT  :02h                                       02
       LEN  :1                                         01
       INVID:01h                                       01
       CMPID:02h = OPVAL                               02
        LEN  :1                                        01
        OPVAL:14 = callRerou                           0E
         ID   :30h                                     30
         SEQ
         LSFI :34                                      22
         CMPID:0Ah = RERUR                             0A
          LEN  :1                                      01
          ENUM :01h                                    01
         CMPID:30h = calldAddr                         30
          LSFI :10                                     0A
          CMPID:80h = UPTYN                            80
          LEN  :8                                      08
          NMSTR:45011450				   h   3435303131343530
         CMPID:02h = RROUC                             02
          LEN  :1                                      01
          INT  :01h                                    01
         ??   :40                                      40
Dump :05 04 03 80 90 A3 A1 02 82
 00 A2 03 0A 01 02 = Unknown
-------------- next part --------------
---
Roy Sigurd Karlsbakk
roy at karlsbakk.net
---------------------------------
Those people who think they know everything are a great annoyance to  
those of us who do. (Isaac Asimov)




More information about the asterisk-dev mailing list