Trunk IAX - appel seulement dans un sens [RESOLU]

Discussion in 'Elastix 2.x' started by bart_r83, Mar 2, 2011.

  1. bart_r83

    Joined:
    Mar 2, 2011
    Messages:
    12
    Likes Received:
    0
    Bonjour, c'est mon premier post sur ce forum. Je ne sais pas si j'ai posté au bon endroit. J'ai fais pas mal de recherche sur google et sur le forum mais je n'ai pas réussi à trouvé de solution.

    Voila mon probleme : (désolé pour la longueur du post mais j'essaie d'expliqer au mieu mon problème)

    J'ai 2 serveur distant qui sont connecté par un trunk IAX mais les appels ne passe que dans un sens.

    Le peer IAX entre les 2 serveurs elastix et elastix-odc est fontionnel :

    ¤ elastix*CLI> iax2 show peers
    Name/Username Host Mask Port Status
    odc-odbee/odc-o X.X.X.X (S) 255.255.255.255 4569 (T) OK (35 ms)

    ¤ elastix-odc*CLI> iax2 show peers
    Name/Username Host Mask Port Status
    odc-elastix/odc X.X.X.X (S) 255.255.255.255 4569 (T) OK (36 ms)


    ¤ En gros je peu passer un appel du serveur "elastix-odc" vers le serveur "elastix" mais ca me marche pas dans l'autre sens.
    J'ai un message d'erreur qui me dit que tous les circuits sont occupé.


    ¤ Voila la copie des logs du serveur elastix lorsque je fais mon appel :

    elastix*CLI>
    Executing [92000@from-internal:1] Set("SIP/0970758553-08ba3590", "INTRACOMPANYROUTE=YES") in new stack
    -- Executing [92000@from-internal:2] Macro("SIP/0970758553-08ba3590", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/0970758553-08ba3590", "AMPUSER=0970758553") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/0970758553-08ba3590", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/0970758553-08ba3590", "1|Set|REALCALLERIDNUM=0970758553") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/0970758553-08ba3590", "AMPUSER=0970758553") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/0970758553-08ba3590", "AMPUSERCIDNAME=baptiste") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/0970758553-08ba3590", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/0970758553-08ba3590", "AMPUSERCID=0970758553") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/0970758553-08ba3590", "CALLERID(all)="baptiste" <0970758553>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/0970758553-08ba3590", "1|Set|CHANNEL(language)=FR") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/0970758553-08ba3590", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("SIP/0970758553-08ba3590", "CALLERID(number)=0970758553") in new stack
    -- Executing [s@macro-user-callerid:20] Set("SIP/0970758553-08ba3590", "CALLERID(name)=baptiste") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("SIP/0970758553-08ba3590", "Using CallerID "baptiste" <0970758553>") in new stack
    -- Executing [92000@from-internal:3] Set("SIP/0970758553-08ba3590", "_NODEST=") in new stack
    -- Executing [92000@from-internal:4] Macro("SIP/0970758553-08ba3590", "record-enable|0970758553|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/0970758553-08ba3590", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/0970758553-08ba3590", "recordingcheck|20110302-094806|1299055686.62") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
    recordingcheck|20110302-094806|1299055686.62: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("SIP/0970758553-08ba3590", "") in new stack
    -- Executing [92000@from-internal:5] Macro("SIP/0970758553-08ba3590", "dialout-trunk|4|2000||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/0970758553-08ba3590", "DIAL_TRUNK=4") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/0970758553-08ba3590", "0?sub-pincheck|s|1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/0970758553-08ba3590", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/0970758553-08ba3590", "DIAL_NUMBER=2000") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/0970758553-08ba3590", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/0970758553-08ba3590", "OUTBOUND_GROUP=OUT_4") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/0970758553-08ba3590", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/0970758553-08ba3590", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/0970758553-08ba3590", "1?skipoutcid") in new stack
    -- Goto (macro-dialout-trunk,s,12)
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/0970758553-08ba3590", "1|AGI|fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    == fixlocalprefix: Dialpattern X. matched. 2000 -> 2000
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/0970758553-08ba3590", "OUTNUM=2000") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/0970758553-08ba3590", "custom=IAX2/odc-odbee") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/0970758553-08ba3590", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)tr") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/0970758553-08ba3590", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/0970758553-08ba3590", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/0970758553-08ba3590", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/0970758553-08ba3590", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/0970758553-08ba3590", "IAX2/odc-odbee/2000|300|tr") in new stack
    -- Called odc-odbee/2000
    -- Hungup 'IAX2/odc-odbee-16384'
    == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:20] Goto("SIP/0970758553-08ba3590", "s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/0970758553-08ba3590", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/0970758553-08ba3590", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
    -- Executing [92000@from-internal:6] Macro("SIP/0970758553-08ba3590", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/0970758553-08ba3590", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/0970758553-08ba3590> Playing 'all-circuits-busy-now' (language 'FR')
    -- Executing [s@macro-outisbusy:2] Playback("SIP/0970758553-08ba3590", "pls-try-call-later|noanswer") in new stack
    -- <SIP/0970758553-08ba3590> Playing 'pls-try-call-later' (language 'FR')
    -- Executing [s@macro-outisbusy:3] Macro("SIP/0970758553-08ba3590", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/0970758553-08ba3590", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,4)
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/0970758553-08ba3590", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/0970758553-08ba3590", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] Hangup("SIP/0970758553-08ba3590", "") in new stack
    == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/0970758553-08ba3590' in macro 'hangupcall'
    == Spawn extension (macro-outisbusy, s, 3) exited non-zero on 'SIP/0970758553-08ba3590' in macro 'outisbusy'
    == Spawn extension (from-internal, 92000, 6) exited non-zero on 'SIP/0970758553-08ba3590'
    -- Executing [h@from-internal:1] Macro("SIP/0970758553-08ba3590", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/0970758553-08ba3590", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,4)
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/0970758553-08ba3590", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/0970758553-08ba3590", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] Hangup("SIP/0970758553-08ba3590", "") in new stack
    == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/0970758553-08ba3590' in macro 'hangupcall'
    == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/0970758553-08ba3590'



    ¤ Pour ce qui est de la configuration de mes trunks IAX2 :

    - serveur elastix-odc :

    Dial Rules: X.

    Outgoing Settings

    Trunk Name: odc-elastix

    PEER Details:
    username=odc-elastix
    type=friend
    secret=pass
    qualify=yes
    host=X.X.X.X
    context=from-internal
    trunk=yes
    disallow=all
    auth=md5
    allow=alaw&ulaw&gsm


    Incoming Settings

    USER Context: odc-odbee
    USER Details:
    type=user
    secret=pass
    host=X.X.X.X
    context=from-internal
    disallow=all
    allow=alaw&ulaw&gsm

    registration : vide


    - serveur elastix :

    Dial Rules: X.

    Outgoing Settings

    Trunk Name: odc-odbee

    PEER Details:
    username=odc-odbee
    type=friend
    secret=pass
    qualify=yes
    host=Y.Y.Y.Y
    context=from-internal
    trunk=yes
    disallow=all
    auth=md5
    allow=alaw&ulaw&gsm

    Incoming Settings

    USER Context: odc-elastix
    USER Details:
    type=user
    secret=pass
    host=Y.Y.Y.Y
    context=from-internal
    disallow=all
    allow=alaw&ulaw&gsm


    ¤ Pour ce qui est de la route sortante du serveur elastix

    Intra Company Route: coché

    Dial Patterns :

    9|X.

    Trunk sequence :
    trunk IAX2/odc-odbee


    Je vous remercie d'avance de vos réponse et j'espère avoir étais assez explicite.

    Baptiste
     
  2. bart_r83

    Joined:
    Mar 2, 2011
    Messages:
    12
    Likes Received:
    0
    Re: Trunk IAX - les appels ne passe que dans un sens

    Finalement, j'ai résolu mon problème. J'ai remarqué dans mes logs d'asterisk (/var/log/asterisk/full) que l'appel était rejeté :

    [Mar 2 09:48:06] ERROR[3413] chan_iax2.c: Call rejected, CallToken Support required. If unexpected, resolve by placing address @ip in the calltokenoptional list or setting user odc-odbee requirecalltoken=no

    J'ai du rajouter dans le configuration du trunk du serveur elaxtix-odc l'option suivante :

    dans incomming setting :

    requirecalltoken=auto

    le lien qui m'a aidé si ca peu aidé d'autre personne :
    http://www.hafizonline.net/blog/?p=151
     
  3. danardf

    Joined:
    Dec 3, 2007
    Messages:
    8,069
    Likes Received:
    12
    Re: Trunk IAX - les appels ne passe que dans un sens

    Salut bart_r83 et bienvenue sur notre Forum Elastix. :)

    Oui, ce genre de paramètres est obligatoire à partir des versions 1.6 d'Asterisk si je me rappelle bien.
    C'est une question de sécurité du trunk.

    Si tu as trouvée la solution, alors cool... B)
     
  4. bart_r83

    Joined:
    Mar 2, 2011
    Messages:
    12
    Likes Received:
    0
    Re: Trunk IAX - les appels ne passe que dans un sens

    Merci de ta réponse. :)

    Je risque de poster à nouveau car j'ai d'autre fonctionnalité à mettre en place pour un projet en cour. Mais d'abord je cherche de mon coté.
     
  5. paguira

    Joined:
    Jan 17, 2008
    Messages:
    127
    Likes Received:
    0
    Re: Trunk IAX - les appels ne passe que dans un sens

    Bonjour,
    sinon on peut aussi placer (dans iax_custom.conf):
    calltokenoptional = XXX.XXX.XXX.XXX/255.255.255.0
    ou
    calltokenoptional = 0.0.0.0/0.0.0.0

    P.S: le CID passe pour vous ?, moi j'ai le numéro du Trunk et pas celui de l'émetteur de l'appel
     
  6. bart_r83

    Joined:
    Mar 2, 2011
    Messages:
    12
    Likes Received:
    0
    Re: Trunk IAX - les appels ne passe que dans un sens

    bonjour,

    merci, je vais regarder ces 2 paramètres. Mais quels est la différence avec l'autre option ?

    Sinon moi aussi je n'arrive pas à modifier le CID, j'ai le numéro du trunk en sortie.
    D'après mon opérateur de téléphonie cela viendrai de ma conf.

    Dans mon cas, j'aimerai pouvoir attribué un numéro sortant pour chaque extension. (j'ai une plage de numéro de téléphone attribué par mon opérateur et il ma confirmé que cela est possible).
     
  7. danardf

    Joined:
    Dec 3, 2007
    Messages:
    8,069
    Likes Received:
    12
    Re: Trunk IAX - les appels ne passe que dans un sens

    Salut.

    Ça aurait pu faire parti d'un autre sujet, bien qu'il ait été évoqué dans ce forum (sur un trunk OVH). ;)

    Dans la parti trunk, il y a la possibilité d'émettre un CID et si ton poste en à un autre, que celui-ci soit émis à la place du CID du trunk.
    Côté extension: Outbound CID
    Côté Trunk : Outbound Caller ID
    Jouer sur : CID Options

    Conté opérateur, (pour OVH en tout cas), il faut autoriser l'émission du n°.
     
  8. bart_r83

    Joined:
    Mar 2, 2011
    Messages:
    12
    Likes Received:
    0
    Re: Trunk IAX - les appels ne passe que dans un sens

    salut,

    en faite le numéro transmis par mon trunk est le "username" du trunk. Ce que je trouve bizard.

    Sinon pour la configuration :

    ¤ Côté Trunk :

    - Outbound Caller ID : j'ai laissé ce champ vide
    comme je veut que se soit le CID de l'extension qui soit pris en compte

    - CID Options : Allow any CID

    après je ne pense pas que les paramètres du "peer details" change quelque chose dans l'envoie du CID.

    ¤ Côté extension: (j'ai mis le numéro d'extension et le CID différents pour bien diférencier dans les logs mais ce sont des numéro qui me sont attribué)

    - numéro ext : 0970758551
    - Outbound CID : "baptiste"<0970758550>

    ¤ Au niveau des logs asterisk, j'ai bien le numéro qui est transmis donc je me demande si ca viens de ma configuration ou de mon opérateur téléphone.

    == Using SIP RTP CoS mark 5
    -- Executing [0625760658@from-internal:1] Macro("SIP/0970758551-00000157", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/0970758551-00000157", "AMPUSER=0970758551") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/0970758551-00000157", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/0970758551-00000157", "1?Set(REALCALLERIDNUM=0970758551)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/0970758551-00000157", "AMPUSER=0970758551") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/0970758551-00000157", "AMPUSERCIDNAME=0970758551") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/0970758551-00000157", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/0970758551-00000157", "AMPUSERCID=0970758551") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/0970758551-00000157", "CALLERID(all)="0970758551" <0970758551>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/0970758551-00000157", "1?Set(CHANNEL(language)=FR)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/0970758551-00000157", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("SIP/0970758551-00000157", "CALLERID(number)=0970758551") in new stack
    -- Executing [s@macro-user-callerid:20] Set("SIP/0970758551-00000157", "CALLERID(name)=0970758551") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("SIP/0970758551-00000157", "Using CallerID "0970758551" <0970758551>") in new stack
    -- Executing [0625760658@from-internal:2] Set("SIP/0970758551-00000157", "_NODEST=") in new stack
    -- Executing [0625760658@from-internal:3] Macro("SIP/0970758551-00000157", "record-enable,0970758551,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/0970758551-00000157", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/0970758551-00000157", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/0970758551-00000157", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/0970758551-00000157", "0?IN") in new stack
    -- Executing [s@macro-record-enable:16] ExecIf("SIP/0970758551-00000157", "1?MacroExit()") in new stack
    -- Executing [0625760658@from-internal:4] Macro("SIP/0970758551-00000157", "dialout-trunk,2,0625760658,,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/0970758551-00000157", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/0970758551-00000157", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/0970758551-00000157", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/0970758551-00000157", "DIAL_NUMBER=0625760658") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/0970758551-00000157", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/0970758551-00000157", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/0970758551-00000157", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/0970758551-00000157", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/0970758551-00000157", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/0970758551-00000157", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/0970758551-00000157", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/0970758551-00000157", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/0970758551-00000157", "0?Set(REALCALLERIDNUM=0970758551)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/0970758551-00000157", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/0970758551-00000157", "USEROUTCID="baptiste"<0970758550>") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/0970758551-00000157", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/0970758551-00000157", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/0970758551-00000157", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/0970758551-00000157", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/0970758551-00000157", "1?Set(CALLERID(all)=baptiste<0970758550>)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/0970758551-00000157", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/0970758551-00000157", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/0970758551-00000157", "1?AGI(fixlocalprefix)") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    == fixlocalprefix: Dialpattern 33+0|X. matched. 0625760658 -> 33625760658
    -- <SIP/0970758551-00000157>AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/0970758551-00000157", "OUTNUM=33625760658") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/0970758551-00000157", "custom=SIP/alphalink") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/0970758551-00000157", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/0970758551-00000157", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/0970758551-00000157", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/0970758551-00000157", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/0970758551-00000157", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/0970758551-00000157", "SIP/alphalink/33625760658,300,") in new stack
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    -- Called alphalink/33625760658
    -- SIP/alphalink-00000158 is ringing
    == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/0970758551-00000157' in macro 'dialout-trunk'
    == Spawn extension (from-internal, 0625760658, 4) exited non-zero on 'SIP/0970758551-00000157'
    -- Executing [h@from-internal:1] Macro("SIP/0970758551-00000157", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/0970758551-00000157", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] NoOp("SIP/0970758551-00000157", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/0970758551-00000157", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/0970758551-00000157", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,10)
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/0970758551-00000157", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,12)
    -- Executing [s@macro-hangupcall:12] Hangup("SIP/0970758551-00000157", "") in new stack
    == Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/0970758551-00000157' in macro 'hangupcall'
    == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/0970758551-00000157'



    Merci d'avance
     
  9. danardf

    Joined:
    Dec 3, 2007
    Messages:
    8,069
    Likes Received:
    12
    Re: Trunk IAX - les appels ne passe que dans un sens

    Pour ma part, je n'utilise jamais la partie user details.
    Seulement la partie peer details en y mettant le context from-trunk c'est tout.
    Attention dans les paramètres fromuser (s'il y en a), ça change quelque chose sur ce sujet si je me rappelle bien.
     
  10. bart_r83

    Joined:
    Mar 2, 2011
    Messages:
    12
    Likes Received:
    0
    Re: Trunk IAX - les appels ne passe que dans un sens

    J'ai enlevé le paramètre "fromuser" dans la partie peer details.
    Et maintenant, j'ai le bon numéro qui s'affiche :)

    Franchement merci, tu m'a bien aidé.
     
  11. bart_r83

    Joined:
    Mar 2, 2011
    Messages:
    12
    Likes Received:
    0
    Re: Trunk IAX - les appels ne passe que dans un sens

    Par contre j'ai essayé depuis mon serveur principal ou est raccordé mon trunk SIP.
    Quand j'essaye de mon serveur local qui passe par le trunk IAX je sort en masqué maintenant.
    Je vais voir ca.


    [EDIT] En faite j'ai rien dit j'ai fait mon boulet, j'ai oublié que j'avais un prefix (9) pour sortir sur mon trunk. Je sortai par ma ligne RNIS qui affiche le numéro en masqué :blush:
     

Share This Page