Salut,

J'ai exactement le même problème que tu as eu avec tes trois numéros dont un est le numéro de tête.

Sur Asterisk/1.8.13.1 GUI-version : 2.1.0-rc1, j'ai des trunks sip pro chez sipcall, plusieurs numéros qui se suivent, mais que j'appelle n'importe lequel, Asterisk GUI ne fait pas la différence et croit toujours que ça arrive du trunk 1 (parce que c'est la même adresse IP) et je n'arrive pas à router les appels, c'est toujours le même poste qui sonne.

j'ai aussi trois numéros dont seulement le premier est enregistrable et les deux autres sont virtuels (Trunk sip de chez VTX) mais je n'arrive pas à faire comme toi dans "Incoming Calling Rules" en mettant sous Pattern le numéro, lorsque j'appelle, j'ai un message qui me dit que le numéro n'est pas valable. Cela fonctionne seulement avec le Pattern "s" et du coup il m'est impossible d'utiliser les deux autres numéros.

Sinon avec un trunk sip chez deux fournisseurs différents ça fonctionne, Asterisk fait la différence.

Peut - tu stp m'expliquer comment tu as configuré tes Patterns pour que cela fonctionne, j'ai tout essayé.

Voici un log de ce qui se passe lorsque je fait un appelle sur le deuxième numéro du trunk de chez sipcall:
[call to 032 XXXXXX2 DID_trunk_4 for internal 201]
chan_sip.c: --- (17 headers 18 lines) ---
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Sending to 212.117.203.44:5060 (NAT)
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Using INVITE request as basis request - d2a94e9- 3efc5a29-4df3d202-cbcf@sip.iforb.com~1o
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found peer 'trunk_1' for 'XXXXXXXXXX' from 212.117.203.44:5060
[Jun 19 21:01:40] VERBOSE[12450] netsock2.c: == Using SIP RTP CoS mark 5
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found RTP audio format 0
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found RTP audio format 8
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found RTP audio format 18
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found RTP audio format 101
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found RTP audio format 102
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found RTP audio format 3
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found RTP audio format 99
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found RTP audio format 100
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found unknown media description format G.729a for ID 101
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found unknown media description format G.729b for ID 102
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found audio description format telephone-event for ID 99
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Found unknown media description format X-NSE for ID 100
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Capabilities: us - 0x8 (alaw), peer - audio=0x10e (gsm|ulaw|alaw|g729)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x8 (alaw)
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Non-codec capabilities (dtmf): us - 0x1 (telephone- event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
exten=s,1,Goto(default,200,1)
exten=s,1,Goto(default,201,1)
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Peer audio RTP is at port 212.117.203.40:51206
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: Looking for s in DID_trunk_1 (domain 178.174.12.86)
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c: list_route: hop: <sip:212.117.203.44:5060;transport=UDP;lr>
[Jun 19 21:01:40] VERBOSE[12450] chan_sip.c:
[Jun 19 21:01:40] VERBOSE[14013] pbx.c: -- Executing [s@DID_trunk_1:1] Goto("SIP/trunk_1- 00000085", "default,200,1") in new stack
[Jun 19 21:01:40] VERBOSE[14013] pbx.c: -- Goto (default,200,1)
[Jun 19 21:01:40] VERBOSE[14013] pbx.c: -- Executing [200@default:1] Macro("SIP/trunk_1- 00000085", "stdexten,200,SIP/200") in new stack
[Jun 19 21:01:40] VERBOSE[14013] pbx.c: -- Executing [s@macro-stdexten:1] Set("SIP/trunk_1- 00000085", "__DYNAMIC_FEATURES=") in new stack
[Jun 19 21:01:40] VERBOSE[14013] pbx.c: -- Executing [s@macro-stdexten:2] Set("SIP/trunk_1- 00000085", "ORIG_ARG1=200") in new stack
[Jun 19 21:01:40] VERBOSE[14013] pbx.c: -- Executing [s@macro-stdexten:3] GotoIf("SIP/trunk_1- 00000085", "0?6:4") in new stack
[Jun 19 21:01:40] VERBOSE[14013] pbx.c: -- Goto (macro-stdexten,s,4)
[Jun 19 21:01:40] VERBOSE[14013] pbx.c: -- Executing [s@macro-stdexten:4] Dial("SIP/trunk_1- 00000085", "SIP/200,20,") in new stack
[Jun 19 21:01:40] VERBOSE[14013] netsock2.c: == Using SIP RTP CoS mark 5
[Jun 19 21:01:40] VERBOSE[14013] chan_sip.c: Audio is at 17884
[Jun 19 21:01:40] VERBOSE[14013] chan_sip.c: Adding codec 0x8 (alaw) to SDP
[Jun 19 21:01:40] VERBOSE[14013] chan_sip.c: Adding non-codec 0x1 (telephone-event) to SDP
[Jun 19 21:01:40] VERBOSE[14013] chan_sip.c: Reliably Transmitting (no NAT) to 192.168.1.137:5062:
[Jun 19 21:01:40] VERBOSE[14013] app_dial.c: -- Called SIP/200

Merci d'avance!

Meilleures salutations

Jean-Yves