09-03-2013 05:23 AM - edited 03-16-2019 07:10 PM
Hello,
So far I have configured a SIP TRUNK to incoming and outgoing calls and working properly. Right now when a call is made outside shows the main DDI.
Would need to show the DDI as the destination called, ie, I have DDI of London, Paris, etc. .. and need when you call to London, the Caller ID displayed is the DDI that I have in London, when you call Paris the same.
My question is, as it could carry out this task?, At the level of translation-rule, dial-peer, ...??
Could anyone help?
Best regards
Solved! Go to Solution.
09-05-2013 05:49 AM
That is easy then. You need to configure your translation rules and apply them to the different dial-peers for London and Paris...
voice transaltion-rule 1
rule 1 /^6..../ /44XXXXXXXXX/
Voice translation-rule 2
rule1 /^6..../ /33XXXXXX/
voice translation-profile LONDON
translate calling 1
voice translation-profile PARIS
translate calling 2
dial-peer voice y voip
destination-pattern 33T
translation-profile outgoing PARIS
NB: dial-peers are just examples, use the relevant ones. But you will need two different dial-peers
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
dial-peer voice x voip
destination-pattern 44T
translation-profile outgoing LONDON
09-03-2013 05:35 AM
You can use voice translation rules or sip profiles on your cube.
This is to modify the Caller ID..
voice class sip-profiles 1
request INVITE sip-header Remote-Party-ID modify "<44153327>" "<4>4>44153327>
41533270000@10.10.5.200>"
You then need to apply this to your outbound dial-peer
dial-peer voice 3 voip
voice-class sip profile 1
Any number beginning with 44153327 is replaced with 441533270000 as the CLI
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
09-03-2013 01:59 PM
Hi,
First give me grace for your help. I question arises, which is reviewing SIP conversations have not found the label header Remote-Part-ID in order to check the pattern to replace in any case I've tried to make the change that you show me the configuration set my unit and not working. If I tried to change the FROM tag in this case if I can change the caller ID but it changes it for all calls.
Any idea?
Best regards
09-03-2013 02:13 PM
Can you send me a debug ccsip message of a test call
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
09-05-2013 04:23 AM
Hi,
I am attaching the debug messages ccsip, also take the opportunity to tell you as I have done the configuration.
https://dl.dropboxusercontent.com/u/6992364/050913.log
The objective calls to London and Paris, including the Caller-ID number 0044XXXXXXXXX and 0033XXXXXXXXX respectively, and for the rest the Caller-ID number 9XXXXXXXXX.
voice translation-rule 1111
rule 1 /^...$/ /9XXXXXXXX/ // DDI default sets the national 9XXXXXXXXX, used X to hide the digit
voice translation-rule 3000
rule 1 /^9/ // // Remove nine used as prefix number
voice class sip-profiles 101
request INVITE sip-headers Remote-Party-ID modify "<0044>" 0044>
"<0044XXXXXXXXX>"0044XXXXXXXXX>
request INVITE sip-headers Remote-Party-ID modify "<0033>" 0033>
"<0033XXXXXXXXX>"0033XXXXXXXXX>
voice translation-profile SIP_Outgoing
translate calling 1111
translate called 3000
dial-peer voice 1023 voip
description “SIP OUTGOING INTERNATIONAL”
translation-profile incoming SIP_Outgoing
session protocol sipv2
session target sip-server
destination-pattern 900T
voice-class codec 1
voice-class sip dtmf-relay force rtp-nte
voice-class sip profiles 101
dtmf-relay rtp-nte
ip qos dscp cs5 media
ip qos dscp cs4 signaling
no vad
best regards
09-05-2013 04:32 AM
Ok. is everything working now?
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
09-05-2013 04:40 AM
No,
No, still not worked, always gets the number 9XXXXXXXX as caller-id
09-05-2013 04:50 AM
This is happening because of this translation rule
voice translation-rule 1111
rule 1 /^...$/ /9XXXXXXXX/
Do you have external phone number mask configured on your phones? Are the extensions on the phones unique?
You need to define each rule for each site based on their extensions...
Eg
If UK users have extension 66.. and Paris has 55..
rule 1 /^66..$/ /XXXXXXXXX/ where XXXXXXXX = MAIN DDI number for UK
rule 2
rule 1 /^55..$/ /9XXXXXXXX/
The rule above matches all numbers and thats why you are seeing the same caller id as 9XXXXXXXX..So remove this..
Also your sip profile configuration is wrong..Please removbe that too. You should either use sip profiles or translation rules...
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
09-05-2013 05:26 AM
Hi,
OK, I note corrections. We can not discriminate on the users to set the DDI, must be in the dialed number, if calling a number of london, you must set the DDI of London.
How could we do this?
09-05-2013 05:36 AM
Hi,
I tried to create multiple dial-peer with its own rules of translation, ie
dial-peer 20
destination-patter 90044T
preference 1
dial-peer 30
destination-patter 90033T
preference 2
dial-peer 40
destination-patter 900..T
preference 3
But the problem that I have always used the dial-peer 40.
You know what's the problem?
best regards
09-05-2013 05:49 AM
That is easy then. You need to configure your translation rules and apply them to the different dial-peers for London and Paris...
voice transaltion-rule 1
rule 1 /^6..../ /44XXXXXXXXX/
Voice translation-rule 2
rule1 /^6..../ /33XXXXXX/
voice translation-profile LONDON
translate calling 1
voice translation-profile PARIS
translate calling 2
dial-peer voice y voip
destination-pattern 33T
translation-profile outgoing PARIS
NB: dial-peers are just examples, use the relevant ones. But you will need two different dial-peers
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
dial-peer voice x voip
destination-pattern 44T
translation-profile outgoing LONDON
09-05-2013 08:06 AM
Thanks aokanlawon,
Best regards
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide