Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Answer-address on sip trunk (solved)

Hi, i have an issue with the command Answer-address and i'm here for your help.

First of all the config...

 

dial-peer voice  111 voip
description A
answer-address 07211111
destination-pattern .T
session protocol sipv2
session target ipv4:XX.XX.XX.XX
session transport udp
voice-class codec 1
 
dial-peer voice  112 voip
description B
answer-address 07311111
destination-pattern .T
session protocol sipv2
session target ipv4:XX.XX.XX.XX
session transport udp
voice-class codec 1
 
dial-peer voice  113 voip
description C
answer-address 08811111
destination-pattern .T
session protocol sipv2
session target ipv4:XX.XX.XX.XX
session transport udp
voice-class codec 1

 

I have this three dial peer, and when i use them to send out my calls using the answer-address command

sometimes   doesn't work, and the call take another trunk-sip, without any reasons.

I don't know why i have this behavior.

Could you help me?

 

Everyone's tags (1)
1 REPLY
New Member

Ok guys...i figured it out :)

Ok guys...

i figured it out :)

 

The solution was to create an inbound dial peer with only answer-address for ANI to match,

In this dial peer i used a translation profile incoming TEST, which add a prefix to called number

 

then i created a dial peer outgoing to sip  trunk with destination patter 99T and in this dial peer

i used another translation profile which remove the prefix from number , et voilà :)

This is an example of what i did

 

dial-peer voice  100 voip
description N_BREVI_CALL_LEG_INCOMING
translation-profile incoming ADD_SD_ALESITAJ
answer-address 0131T
voice-class codec 1

 

dial-peer voice  1100 voip
description N_BREVI_CALL_LEG_OUTGOING
translation-profile outgoing RMV_SD_ALESITAJ
destination-pattern  100T
session protocol sipv2
session target ipv4:X.XX.X.XX
session transport udp
voice-class codec 1

 

voice translation-profile ADD_SD_ALESITAJ
translate called  100

 

voice translation-profile RMV_SD_ALESITAJ
translate called  200

 

voice translation-rule  100
rule 1 /^3/ /1003/
rule 2 /^0/ /1000/

 

voice translation-rule  200
rule 1 /^1003/ /3/
rule 2 /^1000/ /0/

 

 

and so on

 

I hope this help :)

 


 

208
Views
0
Helpful
1
Replies