Affichage des résultats 1 à 9 sur 9

Discussion: DAHDI ISDN bloquer (masquer) le numéro sortant

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre Association
    Date d'inscription
    septembre 2010
    Localisation
    SEINE ET MARNE
    Messages
    182
    Downloads
    0
    Uploads
    0
    Bonjour,

    Essayez de passer un CID bidon, non conforme, genre "ABCDE" (des lettres). Il arrive alors que certains opérateurs masquent le "faux numéro" présenté.

    Cordialement,
    Francois

  2. #2
    Membre
    Date d'inscription
    septembre 2010
    Localisation
    Lyon
    Messages
    64
    Downloads
    0
    Uploads
    0
    Salut,

    pour l'utiliser moi-même, SetCallerPres(prohib) est un moyen efficace de bloquer la présentation du CALLERID.

    Code:
    ;International numbers
    exten => _000Z.,1,NoOp(Outbound international call to number ==> ${EXTEN:1})
    same => n,NoOp(${CALLINGPRES})
    same => n,Set(CALLERID(number)=32321${CALLERID(num)})
    same => n,SetCallerPres(prohib)
    same => n,Dial(DAHDI/g11/${EXTEN:1})
    Tu auras ensuite dans ton SETUP ISDN normalement :
    Code:
    Presentation: Presentation restricted, Network provided (35)  '32321NNNNN'
    Et par sécurité, sur certains cas, je mets le CALLERID(num) à 0 (0000000000).

    @+

  3. #3
    Membre Junior
    Date d'inscription
    octobre 2010
    Messages
    5
    Downloads
    0
    Uploads
    0

    Unhappy

    Je viens de tester l'exemple de Al3x et de F6HQZ mais rien n'y fait


    example d'Al3x:
    Code:
     Using SIP RTP CoS mark 5
        -- Executing [00033625081954@from-sip-cyril:1] NoOp("SIP/7034-000000fa", "Outbound international call to number ==> 0033625081954") in new stack
        -- Executing [00033625081954@from-sip-cyril:2] NoOp("SIP/7034-000000fa", "0") in new stack
        -- Executing [00033625081954@from-sip-cyril:3] Set("SIP/7034-000000fa", "CALLERID(number)=323217034") in new stack
        -- Executing [00033625081954@from-sip-cyril:4] SetCallerPres("SIP/7034-000000fa", "prohib") in new stack
        -- Executing [00033625081954@from-sip-cyril:5] Dial("SIP/7034-000000fa", "DAHDI/g11/0033625081954") in new stack
    PRI Span: 1 -- Making new call for cref 32832
        -- Requested transfer capability: 0x00 - SPEECH
    PRI Span: 1 
    PRI Span: 1 > DL-DATA request
    PRI Span: 1 > Protocol Discriminator: Q.931 (8)  len=45
    PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 64/0x40) (Sent from originator)
    PRI Span: 1 > Message Type: SETUP (5)
    PRI Span: 1 TEI=0 Transmitting N(S)=56, window is open V(A)=56 K=7
    PRI Span: 1 
    PRI Span: 1 > Protocol Discriminator: Q.931 (8)  len=45
    PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 64/0x40) (Sent from originator)
    PRI Span: 1 > Message Type: SETUP (5)
    PRI Span: 1 > [04 03 80 90 a3]
    PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1  Coding-Std: 0  Info transfer capability: Speech (0)
    PRI Span: 1 >                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
    PRI Span: 1 >                                User information layer 1: A-Law (35)
    PRI Span: 1 > [18 03 a1 83 82]
    PRI Span: 1 > Channel ID (len= 5) [ Ext: 1  IntID: Implicit  Other(PRI)  Spare: 0  Preferred  Dchan: 0
    PRI Span: 1 >                       ChanSel: As indicated in following octets
    PRI Span: 1 >                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
    PRI Span: 1 >                       Ext: 1  Channel: 2 Type: CPE]
    PRI Span: 1 > [6c 0b 21 81 33 32 33 32 31 37 30 33 34]
    PRI Span: 1 > Calling Party Number (len=13) [ Ext: 0  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
    PRI Span: 1 >                                 Presentation: Presentation allowed, User-provided, verified and passed (1)  '323217034' ]
    PRI Span: 1 > [70 0e 80 30 30 33 33 36 32 35 30 38 31 39 35 34]
    PRI Span: 1 > Called Party Number (len=16) [ Ext: 1  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)  '0033625081954' ]
    PRI Span: 1 > [a1]
    PRI Span: 1 > Sending Complete (len= 1)
    2ème example d'Al3x avec callerid 0:
    Code:
    Executing [00033625081954@from-sip-cyril:1] NoOp("SIP/7034-000000fc", "Outbound international call to number ==> 0033625081954") in new stack
        -- Executing [00033625081954@from-sip-cyril:2] NoOp("SIP/7034-000000fc", "0") in new stack
        -- Executing [00033625081954@from-sip-cyril:3] Set("SIP/7034-000000fc", "CALLERID(number)=0000000000") in new stack
        -- Executing [00033625081954@from-sip-cyril:4] SetCallerPres("SIP/7034-000000fc", "prohib") in new stack
        -- Executing [00033625081954@from-sip-cyril:5] Dial("SIP/7034-000000fc", "DAHDI/g11/0033625081954") in new stack
    PRI Span: 1 -- Making new call for cref 32834
        -- Requested transfer capability: 0x00 - SPEECH
    PRI Span: 1 
    PRI Span: 1 > DL-DATA request
    PRI Span: 1 > Protocol Discriminator: Q.931 (8)  len=46
    PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 66/0x42) (Sent from originator)
    PRI Span: 1 > Message Type: SETUP (5)
    PRI Span: 1 TEI=0 Transmitting N(S)=64, window is open V(A)=64 K=7
    PRI Span: 1 
    PRI Span: 1 > Protocol Discriminator: Q.931 (8)  len=46
    PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 66/0x42) (Sent from originator)
    PRI Span: 1 > Message Type: SETUP (5)
    PRI Span: 1 > [04 03 80 90 a3]
    PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1  Coding-Std: 0  Info transfer capability: Speech (0)
    PRI Span: 1 >                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
    PRI Span: 1 >                                User information layer 1: A-Law (35)
    PRI Span: 1 > [18 03 a1 83 81]
    PRI Span: 1 > Channel ID (len= 5) [ Ext: 1  IntID: Implicit  Other(PRI)  Spare: 0  Preferred  Dchan: 0
    PRI Span: 1 >                       ChanSel: As indicated in following octets
    PRI Span: 1 >                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
    PRI Span: 1 >                       Ext: 1  Channel: 1 Type: CPE]
    PRI Span: 1 > [6c 0c 21 81 30 30 30 30 30 30 30 30 30 30]
    PRI Span: 1 > Calling Party Number (len=14) [ Ext: 0  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
    PRI Span: 1 >                                 Presentation: Presentation allowed, User-provided, verified and passed (1)  '0000000000' ]
    PRI Span: 1 > [70 0e 80 30 30 33 33 36 32 35 30 38 31 39 35 34]
    PRI Span: 1 > Called Party Number (len=16) [ Ext: 1  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)  '0033625081954' ]
    PRI Span: 1 > [a1]
    PRI Span: 1 > Sending Complete (len= 1)
    test de F6HQZ:
    Code:
     Parsing '/etc/asterisk/unistim.conf':   == Found
      == Using SIP RTP CoS mark 5
        -- Executing [00033625081954@from-sip-cyril:1] NoOp("SIP/7034-000000fe", "Outbound international call to number ==> 0033625081954") in new stack
        -- Executing [00033625081954@from-sip-cyril:2] NoOp("SIP/7034-000000fe", "0") in new stack
        -- Executing [00033625081954@from-sip-cyril:3] Set("SIP/7034-000000fe", "CALLERID(number)=000ABCD000") in new stack
        -- Executing [00033625081954@from-sip-cyril:4] SetCallerPres("SIP/7034-000000fe", "prohib") in new stack
        -- Executing [00033625081954@from-sip-cyril:5] Dial("SIP/7034-000000fe", "DAHDI/g11/0033625081954") in new stack
    PRI Span: 1 -- Making new call for cref 32835
        -- Requested transfer capability: 0x00 - SPEECH
    PRI Span: 1 
    PRI Span: 1 > DL-DATA request
    PRI Span: 1 > Protocol Discriminator: Q.931 (8)  len=46
    PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 67/0x43) (Sent from originator)
    PRI Span: 1 > Message Type: SETUP (5)
    PRI Span: 1 TEI=0 Transmitting N(S)=72, window is open V(A)=72 K=7
    PRI Span: 1 
    PRI Span: 1 > Protocol Discriminator: Q.931 (8)  len=46
    PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 67/0x43) (Sent from originator)
    PRI Span: 1 > Message Type: SETUP (5)
    PRI Span: 1 > [04 03 80 90 a3]
    PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1  Coding-Std: 0  Info transfer capability: Speech (0)
    PRI Span: 1 >                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
    PRI Span: 1 >                                User information layer 1: A-Law (35)
    PRI Span: 1 > [18 03 a1 83 81]
    PRI Span: 1 > Channel ID (len= 5) [ Ext: 1  IntID: Implicit  Other(PRI)  Spare: 0  Preferred  Dchan: 0
    PRI Span: 1 >                       ChanSel: As indicated in following octets
    PRI Span: 1 >                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
    PRI Span: 1 >                       Ext: 1  Channel: 1 Type: CPE]
    PRI Span: 1 > [6c 0c 21 81 30 30 30 41 42 43 44 30 30 30]
    PRI Span: 1 > Calling Party Number (len=14) [ Ext: 0  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
    PRI Span: 1 >                                 Presentation: Presentation allowed, User-provided, verified and passed (1)  '000ABCD000' ]
    PRI Span: 1 > [70 0e 80 30 30 33 33 36 32 35 30 38 31 39 35 34]
    PRI Span: 1 > Called Party Number (len=16) [ Ext: 1  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)  '0033625081954' ]
    PRI Span: 1 > [a1]
    PRI Span: 1 > Sending Complete (len= 1)

    peu importe ce que j'indique pour "prohiber" le CLI le paramètre présentation est toujours avec la même valeur:
    Presentation allowed, User-provided, verified and passed

    Je pense que c'est peut-être un bug car la pas moyen de modifier ce paramètre de présentation.

    Cordialement.

  4. #4
    Membre
    Date d'inscription
    septembre 2010
    Localisation
    Lyon
    Messages
    64
    Downloads
    0
    Uploads
    0
    Chan_dahdi.conf & version DAHDI ?

  5. #5
    Membre Junior
    Date d'inscription
    octobre 2010
    Messages
    5
    Downloads
    0
    Uploads
    0

    Thumbs up

    Bon j'ai trouvé d'où vient le problème, tellement facile que c'est énervant.

    En fait dans chan_dahdi.conf j'avais bien fait mon include de dahdi-channels.conf juste en dessous de [channels]

    il y avait bien le paramètre de usecallingpres=yes plus bas dans la configuration mais il n'était pas pris en compte par Asterisk, car si usecallingpres se trouve après ma déclaration de channel ce dernier n'était pas pris en compte.

    donc pour corriger le problème j'ai tout simplement modifié dahdi-channels.conf et ajouté usecallingpres=yes avant les channels
    Code:
    group=0,11
    context=from-colt-isdn
    switchtype = euroisdn
    signalling = pri_cpe
    usecallingpres=yes
    channel => 1-15,17-31

    Voilà une bonne journée de perdue juste pour ce paramètre à la mauvaise place...

    Merci à tous pour vos propositions et bonne continuation!

  6. #6
    Membre
    Date d'inscription
    septembre 2010
    Localisation
    Lyon
    Messages
    64
    Downloads
    0
    Uploads
    0
    Cool, bonne suite !

Les tags pour cette discussion

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •