PDA

Voir la version complète : problème d'appel sortant



Nightwars
23/04/2011, 03h53
Bonjour à tous,

Je viens faire appel à vous, car je n'arrive vraiment pas à cibler le problème.

Situation : asterisk 1.6 et Freepbx 2.8. carte te121 Digium

Problèm : les appels sortant ne sont pas composés correctement, j'ai une plage de 100 numéros, les internes doivent sortir avec leurs propre extension, le seul numéro que je reçois avec la composition est le numéro principal (xxxxxxx100)

Afin d'atteindre la route sortante les utilisateurs peuvent composer [03-9]. sans 0 de sortie, car cela doit être direct.

Si je compose normalement voici ce que cela me sort.


== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [0797941238@from-internal:1] Macro("SIP/120-0000002e", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/120-0000002e", "AMPUSER=120") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/120-0000002e", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/120-0000002e", "1?Set(REALCALLERIDNUM=120)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/120-0000002e", "AMPUSER=120") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/120-0000002e", "AMPUSERCIDNAME=RECEPTION") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/120-0000002e", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/120-0000002e", "AMPUSERCID=120") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/120-0000002e", "CALLERID(all)="RECEPTION" <120>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/120-0000002e", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/120-0000002e", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("SIP/120-0000002e", "CALLERID(number)=120") in new stack
-- Executing [s@macro-user-callerid:20] Set("SIP/120-0000002e", "CALLERID(name)=RECEPTION") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("SIP/120-0000002e", "Using CallerID "RECEPTION" <120>") in new stack
-- Executing [0797941238@from-internal:2] NoOp("SIP/120-0000002e", "Calling Out Route: All_Call") in new stack
-- Executing [0797941238@from-internal:3] Set("SIP/120-0000002e", "MOHCLASS=default") in new stack
-- Executing [0797941238@from-internal:4] Set("SIP/120-0000002e", "_NODEST=") in new stack
-- Executing [0797941238@from-internal:5] Macro("SIP/120-0000002e", "record-enable,120,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/120-0000002e", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/120-0000002e", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/120-0000002e", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/120-0000002e", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/120-0000002e", "1?MacroExit()") in new stack
-- Executing [0797941238@from-internal:6] Macro("SIP/120-0000002e", "dialout-trunk,1,0797941238,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/120-0000002e", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/120-0000002e", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/120-0000002e", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/120-0000002e", "DIAL_NUMBER=0797941238") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/120-0000002e", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/120-0000002e", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/120-0000002e", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/120-0000002e", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/120-0000002e", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/120-0000002e", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/120-0000002e", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/120-0000002e", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/120-0000002e", "0?Set(REALCALLERIDNUM=120)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/120-0000002e", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/120-0000002e", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/120-0000002e", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/120-0000002e", "TRUNKOUTCID="Quadra"<0223090111>") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/120-0000002e", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/120-0000002e", "1?Set(CALLERID(all)=Quadra<0223090111>)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/120-0000002e", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/120-0000002e", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/120-0000002e", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/120-0000002e", "0?sub-flp-1,s,1") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/120-0000002e", "OUTNUM=0797941238") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/120-0000002e", "custom=DAHDI/g0") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/120-0000002e", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/120-0000002e", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/120-0000002e", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/120-0000002e", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/120-0000002e", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/120-0000002e", "DAHDI/g0/0797941238,300,") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g0/0797941238
-- DAHDI/1-1 is proceeding passing it to SIP/120-0000002e
-- Channel 0/1, span 1 got hangup request, cause 1
-- Hungup 'DAHDI/1-1'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] NoOp("SIP/120-0000002e", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1") in new stack
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/120-0000002e", "s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/120-0000002e", "RC=1") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/120-0000002e", "1,1") in new stack
-- Goto (macro-dialout-trunk,1,1)
-- Executing [1@macro-dialout-trunk:1] Goto("SIP/120-0000002e", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/120-0000002e", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,continue,3)
-- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/120-0000002e", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 1 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:4] Set("SIP/120-0000002e", "CALLERID(number)=120") in new stack
-- Executing [0797941238@from-internal:7] Macro("SIP/120-0000002e", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("SIP/120-0000002e", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("SIP/120-0000002e", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("SIP/120-0000002e", "0?intracompany,1") in new stack
-- Executing [s@macro-outisbusy:4] Playback("SIP/120-0000002e", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
-- <SIP/120-0000002e> Playing 'all-circuits-busy-now.gsm' (language 'en')
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on 'SIP/120-0000002e' in macro 'outisbusy'
== Spawn extension (from-internal, 0797941238, 7) exited non-zero on 'SIP/120-0000002e'
-- Executing [h@from-internal:1] Macro("SIP/120-0000002e", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/120-0000002e", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/120-0000002e", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/120-0000002e", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/120-0000002e", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/120-0000002e' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/120-0000002e'





Et je me retrouve bloquer

Nightwars
23/04/2011, 03h53
Si je compose sans le 0


== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [797941238@from-internal:1] Macro("SIP/120-0000002f", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/120-0000002f", "AMPUSER=120") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/120-0000002f", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/120-0000002f", "1?Set(REALCALLERIDNUM=120)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/120-0000002f", "AMPUSER=120") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/120-0000002f", "AMPUSERCIDNAME=RECEPTION") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/120-0000002f", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/120-0000002f", "AMPUSERCID=120") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/120-0000002f", "CALLERID(all)="RECEPTION" <120>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/120-0000002f", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/120-0000002f", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("SIP/120-0000002f", "CALLERID(number)=120") in new stack
-- Executing [s@macro-user-callerid:20] Set("SIP/120-0000002f", "CALLERID(name)=RECEPTION") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("SIP/120-0000002f", "Using CallerID "RECEPTION" <120>") in new stack
-- Executing [797941238@from-internal:2] NoOp("SIP/120-0000002f", "Calling Out Route: All_Call") in new stack
-- Executing [797941238@from-internal:3] Set("SIP/120-0000002f", "MOHCLASS=default") in new stack
-- Executing [797941238@from-internal:4] Set("SIP/120-0000002f", "_NODEST=") in new stack
-- Executing [797941238@from-internal:5] Macro("SIP/120-0000002f", "record-enable,120,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/120-0000002f", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/120-0000002f", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/120-0000002f", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/120-0000002f", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/120-0000002f", "1?MacroExit()") in new stack
-- Executing [797941238@from-internal:6] Macro("SIP/120-0000002f", "dialout-trunk,1,797941238,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/120-0000002f", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/120-0000002f", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/120-0000002f", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/120-0000002f", "DIAL_NUMBER=797941238") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/120-0000002f", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/120-0000002f", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/120-0000002f", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/120-0000002f", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/120-0000002f", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/120-0000002f", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/120-0000002f", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/120-0000002f", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/120-0000002f", "0?Set(REALCALLERIDNUM=120)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/120-0000002f", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/120-0000002f", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/120-0000002f", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/120-0000002f", "TRUNKOUTCID="Quadra"<0223090111>") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/120-0000002f", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/120-0000002f", "1?Set(CALLERID(all)=Quadra<0223090111>)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/120-0000002f", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/120-0000002f", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/120-0000002f", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/120-0000002f", "0?sub-flp-1,s,1") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/120-0000002f", "OUTNUM=797941238") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/120-0000002f", "custom=DAHDI/g0") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/120-0000002f", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/120-0000002f", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/120-0000002f", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/120-0000002f", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/120-0000002f", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/120-0000002f", "DAHDI/g0/797941238,300,") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g0/797941238
-- DAHDI/1-1 is proceeding passing it to SIP/120-0000002f
-- DAHDI/1-1 is ringing
-- Hungup 'DAHDI/1-1'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/120-0000002f' in macro 'dialout-trunk'
== Spawn extension (from-internal, 797941238, 6) exited non-zero on 'SIP/120-0000002f'
-- Executing [h@from-internal:1] Macro("SIP/120-0000002f", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/120-0000002f", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/120-0000002f", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/120-0000002f", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/120-0000002f", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/120-0000002f' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/120-0000002f'



Ca fonctionne, mais ce n'est vraiment pas correct.

J'ai beaux tenter de comprendre je ne connais pas encore assez bien cette partie la pour trouver et pourtant ce n'est pas faute d'avoir essayé.

J'attends donc vos idées et ce que je dois vous afficher.

Merci

Reaper
23/04/2011, 11h24
Problèm : les appels sortant ne sont pas composés correctement, j'ai une plage de 100 numéros, les internes doivent sortir avec leurs propre extension, le seul numéro que je reçois avec la composition est le numéro principal (xxxxxxx100)

Votre message est incompressible, je ne comprends absolument pas ce que vous voulez faire.

Nightwars
23/04/2011, 18h47
Votre message est incompressible, je ne comprends absolument pas ce que vous voulez faire.

Veuillez m'excusez je remarque que effectivement mon problème était mail posé.

Voilà quand je passe un appel (je suis en Suisse) en composant le 022xxxxxxx mon appel est bloqué et me retourne une erreur comme si tous les cannaux étaient occupé.

Si je passe mon appel en composant sans le 0 (22xxxxxxx) l'appel passe correctement c'est extrêmement bizarre.

Les routes m'ont pourtant l'aire correct.



Avec le zéro


-- Executing [s@macro-dialout-trunk:19] Dial("SIP/120-0000002e", "DAHDI/g0/0797941238,300,") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g0/0797941238
-- DAHDI/1-1 is proceeding passing it to SIP/120-0000002e
-- Channel 0/1, span 1 got hangup request, cause 1
-- Hungup 'DAHDI/1-1'
== Everyone is busy/congested at this time (1:0/0/1)




Sans le zéro


-- Executing [s@macro-dialout-trunk:19] Dial("SIP/120-0000002f", "DAHDI/g0/797941238,300,") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g0/797941238
-- DAHDI/1-1 is proceeding passing it to SIP/120-0000002f
-- DAHDI/1-1 is ringing
-- Hungup 'DAHDI/1-1'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/120-0000002f' in macro 'dialout-trunk'
== Spawn extension (from-internal, 797941238, 6) exited non-zero on 'SIP/120-0000002f'
-

F6HQZ
23/04/2011, 20h30
Bonsoir,

A mon avis, votre provider SIP ne veut pas le "0" en préfixe devant le numéro composé. En format e164, le zéro n'existe pas.

Pour du national, vous composez sans le "0", le provider devrait présenter de même pour les CID des appelants.

Pour de l'international, vous composerez probablement de même, sans préfixe international "00" (depuis la France, je ne sais pas pour la Suisse) mais avec le code pays "33" pour appeler vers la France par exemple et le numéro demandé sans aucun "0" devant de la même façon que pour du national. LEs CID des appelants internationaux seront présentés probablement de même, code pays + numéro sans aucun "0" en préfixe.

Testez et confirmez.

Chaque opérateur procède comme il le désire...

Cordialement,
Francois

Nightwars
23/04/2011, 20h51
Bonsoir,

A mon avis, votre provider SIP ne veut pas le "0" en préfixe devant le numéro composé. En format e164, le zéro n'existe pas.

Pour du national, vous composez sans le "0", le provider devrait présenter de même pour les CID des appelants.

Pour de l'international, vous composerez probablement de même, sans préfixe international "00" (depuis la France, je ne sais pas pour la Suisse) mais avec le code pays "33" pour appeler vers la France par exemple et le numéro demandé sans aucun "0" devant de la même façon que pour du national. LEs CID des appelants internationaux seront présentés probablement de même, code pays + numéro sans aucun "0" en préfixe.

Testez et confirmez.

Chaque opérateur procède comme il le désire...

Cordialement,
Francois


Je n'utilise pas de provider SIP, mais une carte te121 donc une ligne PRA avec 30 canaux. Pour moi c'est un vrai problème dans le dialplan, car j'ai mis en service des installations identiques qui fonctionnent correctement donc avec la composition du 0.

c'est vraiment difficile à comprendre, car pour moi il y a un problème dans la composition, mais je ne trouve vraiment pas l'emplacement,

Vous pourriez m'indiquer les fichiers qui font cette composition peut être que j'ai loupé une macro dans extention.conf.

Nightwars
23/04/2011, 21h00
Voici ce que je retrouve dans mon extention_additional.conf



[general]
OUT_1 = DAHDI/g0
OUTCID_1 = "Quadra"<0223090111>
OUTMAXCHANS_1 = 30
OUTFAIL_1 =
OUTPREFIX_1 =
OUTDISABLE_1 = off
OUTKEEPCID_1 = off
FORCEDOUTCID_1 =
PREFIX_TRUNK_1 =
#include globals_custom.conf

;end of [globals]




[outbound-allroutes]
include => outbound-allroutes-custom
include => outrt-11 ; All_Call
exten => foo,1,Noop(bar)

; end of [outbound-allroutes]



[outrt-11] ; All_Call
include => outrt-11-custom
exten => _[03-9].,1,Macro(user-callerid,SKIPTTL,)
exten => _[03-9].,n,Noop(Calling Out Route: All_Call)
exten => _[03-9].,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _[03-9].,n,Set(_NODEST=)
exten => _[03-9].,n,Macro(record-enable,${AMPUSER},OUT,)
exten => _[03-9].,n,Macro(dialout-trunk,1,${EXTEN},)
exten => _[03-9].,n,Macro(outisbusy,)

; end of [outrt-11]


[macro-dialout-trunk]
include => macro-dialout-trunk-custom
exten => s,1,Set(DIAL_TRUNK=${ARG1})
exten => s,n,GosubIf($[$["${ARG3}" != ""] & $["${DB(AMPUSER/${AMPUSER}/pinless)}" != "NOPASSWD"]]?sub-pincheck,s,1)
exten => s,n,GotoIf($["x${OUTDISABLE_${DIAL_TRUNK}}" = "xon"]?disabletrunk,1)
exten => s,n,Set(DIAL_NUMBER=${ARG2})
exten => s,n,Set(DIAL_TRUNK_OPTIONS=${DIAL_OPTIONS})
exten => s,n,Set(OUTBOUND_GROUP=OUT_${DIAL_TRUNK})
exten => s,n,GotoIf($["${OUTMAXCHANS_${DIAL_TRUNK}}foo" = "foo"]?nomax)
exten => s,n,GotoIf($[ ${GROUP_COUNT(OUT_${DIAL_TRUNK})} >= ${OUTMAXCHANS_${DIAL_TRUNK}} ]?chanfull)
exten => s,n(nomax),GotoIf($["${INTRACOMPANYROUTE}" = "YES"]?skipoutcid)
exten => s,n,Set(DIAL_TRUNK_OPTIONS=${TRUNK_OPTIONS})
exten => s,n,Macro(outbound-callerid,${DIAL_TRUNK})
exten => s,n(skipoutcid),GosubIf($["${PREFIX_TRUNK_${DIAL_TRUNK}}" != ""]?sub-flp-${DIAL_TRUNK},s,1)
exten => s,n,Set(OUTNUM=${OUTPREFIX_${DIAL_TRUNK}}${DIAL_NU MBER})
exten => s,n,Set(custom=${CUT(OUT_${DIAL_TRUNK},:,1)})
exten => s,n,ExecIf($[$["${MOHCLASS}" != "default"] & $["${MOHCLASS}" != ""]]?Set(DIAL_TRUNK_OPTIONS=M(setmusic^${MOHCLASS})${D IAL_TRUNK_OPTIONS}))
exten => s,n(gocall),Macro(dialout-trunk-predial-hook,)
exten => s,n,GotoIf($["${PREDIAL_HOOK_RET}" = "BYPASS"]?bypass,1)
exten => s,n,GotoIf($["${custom}" = "AMP"]?customtrunk)
exten => s,n,Dial(${OUT_${DIAL_TRUNK}}/${OUTNUM},300,${DIAL_TRUNK_OPTIONS})
exten => s,n,Noop(Dial failed for some reason with DIALSTATUS = ${DIALSTATUS} and HANGUPCAUSE = ${HANGUPCAUSE})
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s,n(customtrunk),Set(pre_num=${CUT(OUT_${DIAL_TRUN K},$,1)})
exten => s,n,Set(the_num=${CUT(OUT_${DIAL_TRUNK},$,2)})
exten => s,n,Set(post_num=${CUT(OUT_${DIAL_TRUNK},$,3)})
exten => s,n,GotoIf($["${the_num}" = "OUTNUM"]?outnum:skipoutnum)
exten => s,n(outnum),Set(the_num=${OUTNUM})
exten => s,n(skipoutnum),Dial(${pre_num:4}${the_num}${post_ num},300,${DIAL_TRUNK_OPTIONS})
exten => s,n,Noop(Dial failed for some reason with DIALSTATUS = ${DIALSTATUS} and HANGUPCAUSE = ${HANGUPCAUSE})
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s,n(chanfull),Noop(max channels used up)
exten => s-BUSY,1,Noop(Dial failed due to trunk reporting BUSY - giving up)
exten => s-BUSY,n,Playtones(busy)
exten => s-BUSY,n,Busy(20)
exten => s-ANSWER,1,Noop(Call successfully answered - Hanging up now)
exten => s-ANSWER,n,Macro(hangupcall,)
exten => s-NOANSWER,1,Noop(Dial failed due to trunk reporting NOANSWER - giving up)
exten => s-NOANSWER,n,Progress
exten => s-NOANSWER,n,Playback(number-not-answering,noanswer)
exten => s-NOANSWER,n,Congestion(20)
exten => s-INVALIDNMBR,1,Noop(Dial failed due to trunk reporting Address Incomplete - giving up)
exten => s-INVALIDNMBR,n,Progress
exten => s-INVALIDNMBR,n,Playback(ss-noservice,noanswer)
exten => s-INVALIDNMBR,n,Busy(20)
exten => s-CHANGED,1,Noop(Dial failed due to trunk reporting Number Changed - giving up)
exten => s-CHANGED,n,Playtones(busy)
exten => s-CHANGED,n,Busy(20)
exten => _s-.,1,Set(RC=${IF($[${ISNULL(${HANGUPCAUSE})}]?0:${HANGUPCAUSE})})
exten => _s-.,n,Goto(${RC},1)
exten => 17,1,Goto(s-BUSY,1)
exten => 18,1,Goto(s-NOANSWER,1)
exten => 22,1,Goto(s-CHANGED,1)
exten => 23,1,Goto(s-CHANGED,1)
exten => 28,1,Goto(s-INVALIDNMBR,1)
exten => _X,1,Goto(continue,1)
exten => _X.,1,Goto(continue,1)
exten => continue,1,GotoIf($["${OUTFAIL_${ARG1}}" = ""]?noreport)
exten => continue,n,AGI(${OUTFAIL_${ARG1}})
exten => continue,n(noreport),Noop(TRUNK Dial failed due to ${DIALSTATUS} HANGUPCAUSE: ${HANGUPCAUSE} - failing through to other trunks)
exten => continue,n,Set(CALLERID(number)=${AMPUSER})
exten => disabletrunk,1,Noop(TRUNK: ${OUT_${DIAL_TRUNK}} DISABLED - falling through to next trunk)
exten => bypass,1,Noop(TRUNK: ${OUT_${DIAL_TRUNK}} BYPASSING because dialout-trunk-predial-hook)
exten => h,1,Macro(hangupcall,)

; end of [macro-dialout-trunk]

Reaper
23/04/2011, 21h34
Dans ce cas dans le plan de numérotation mettez le 0 mais retirer le avec
0|x.
Et le tour est joué. Et la ligne directement avec un téléphone analogique fonctionne avec le 0 ou sans ?

Nightwars
23/04/2011, 23h52
Dans ce cas dans le plan de numérotation mettez le 0 mais retirer le avec
0|x.
Et le tour est joué. Et la ligne directement avec un téléphone analogique fonctionne avec le 0 ou sans ?

C'est en fait ce que j'ai mis en place en attendant afin de faire sortir mes appels.

Ce qui pose problème c'est qu'en utilisant cette technique le numéro afficher sur le téléphone de l'appeler est le xxxxxxx100 alors que ma plage de sélection directe est de 100 a 199, j'ai beau indiquer le changement du callerID il ne change pas.

Je ne peux pas tester avec un téléphone analogique, car c'est une ligne 2Mb PRA.

Reaper
24/04/2011, 00h29
Je commence a saisir ce que vous voulez, je suppose Outbound CID ne fonctionne pas ? Pouvez vous essayer de le mettre sur une valeur sans 0 avant ?

F6HQZ
24/04/2011, 00h40
e164 = pas de "0" en préfixe, même pour le CID envoyé sur le réseau par l'IPBX.

De plus, certains opérateurs n'admettent pas que leur client change le CID et transmettent la "tête de réseau" ou numéro principal quelque soit ce qu'ils reçoivent.

Nightwars
25/04/2011, 13h07
oui pour ce qui est de e164 je suis d'accord mais ce n'est pas le cas ici, de plus mon opérateur me laisse utiliser la plage de 100 a 199 comme je le veux.

Je présise que j'ai mis en service des installation identique ou la plage de numéros et la route de sortie ne posait aucuns problèmes.

Nightwars
25/04/2011, 14h19
Je commence a saisir ce que vous voulez, je suppose Outbound CID ne fonctionne pas ? Pouvez vous essayer de le mettre sur une valeur sans 0 avant ?

J'ai tenté mais ca ne change rien.

Les deux problèmes restent identique, la route fonctionne que si je supprime le 0 dans la composition.

le numéro affiché a l'appelé reste dans tout les cas le numéro xxxxxxx100