Accessibility Skip to content
Article ID: 000041927
Last Modified Date: 12/10/2021
Access Level: Public

How can we simplify the dial string to external numbers using DMA scripts?

How can we simplify the dialstring to external numbers ? The customer would like a DMA script to convert a dialstring 1234 into 0987654@xyz.domain.com This is internal endpoints dialing H323 to external sites via VBP.
Tthe script to use is: DIAL_STRING = DIAL_STRING.replace("1234","h323: 0987654@xyz.domain.com "); From an endpoint, place a call to 0987654@xyz.domain.com.
Check on the DMA, the call event details for this call. You will see which dial rules is applied to send the call out. 
Then go to this dial rule and add this script :
DIAL_STRING = DIAL_STRING.replace("1234"," 0987654@xyzdomain.com "); Amend it for different domains to reach : example below
DIAL_STRING = DIAL_STRING.replace("345"," 12345671001@abcdomain.com ");