cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 
cancel
382
Visitas
0
ÚTIL
4
Respuestas

Inbound dial-peer selection

dgonzalez1
Level 1
Level 1

Hello, I'm configuring a CUBE in which all incoming calls from one source should be routed ot a specific desination, except for one number (3183518766) which should be returned to the called party replaced by another number. So, I configured two incoming dial-peers like this:

dial-peer voice 100 voip
description ***Entrantes troncal Colombia NGN-Movistar***
session protocol sipv2
destination dpg 901
incoming uri via 110
voice-class codec 100
voice-class sip tenant 100
dtmf-relay rtp-nte
no vad

dial-peer voice 104 voip
description ***Entrantes troncal Colombia NGN-Movistar caso 3183518766***
session protocol sipv2
destination dpg 110
incoming called-number 3183518766
incoming uri via 110
voice-class codec 100
voice-class sip tenant 100
dtmf-relay rtp-nte
no vad

However, always dp 100 is selected, despite of the dialed number. I though that when call is for 3183518766 dp 104 would be selcted, as it has more matching elements (it's more specific), but I think it's working by selecting the first dp it founds for incoming uri 110 and ignores the other one.

So, do you think could be any way of using the other dp when call is for 3183518766? Or how could I make this call be routed in other way than being sent to destination dpg 901?

Thank you.

4 RESPUESTAS 4

Hola, puede que me esté perdiendo algo, pero los dos 'dial-peer me parecen iguales, ¿excepto por el dpg? ¿Dónde está la diferencia?

Sorry, I must have copied it from a provisional config, 'incoming called-number' shouldn't be there, now I corrected it. The idea is that all calls go to dpg 901 except for call to 3183518766 that should go to dpg 110.

Thanks.

Bonjour,

si je me souviens bien, vous pouvez définir la préférence :

dial-peer voice 100 voip
description ***Entrantes troncal Colombia NGN-Movistar***
session protocol sipv2
destination-pattern 901
incoming uri via 110
voice-class codec 100
voice-class sip tenant 100
dtmf-relay rtp-nte
no vad
preference 1 ; Set a preference value, e.g., 1

dial-peer voice 104 voip
description ***Entrantes troncal Colombia NGN-Movistar caso 3183518766***
session protocol sipv2
destination-pattern 3183518766
incoming called-number 3183518766
incoming uri via 110
voice-class codec 100
voice-class sip tenant 100
dtmf-relay rtp-nte
no vad
preference 0 ; Set a lower preference value, e.g., 0

There you not only added the preference but also replaced the destination dpg by a destination pattern. And 901 is not a dialled number, it's an outbound dial-peer. Like this there is no destination or target for these calls. Besides, I had already tried with different preferences (I usted 1 and 2 instead of 0 anda 1) but the same happened. The first dp is always chosen.