I am not sure if I am just looking at this the wrong way and not searching for the correct information to get the answer I need. I have been messing with this for about a year now and can not seem to find the answer. I have 4 DIDs with my SIP provider and can not seem to get the outbound DID is show properly.
3 of the DIDs are listed as the secondary number for 3 DNs and the 4th is the main number. For my provider to accept the call I need to alert the numbers back to an account number by using this rule:
voice translation-rule 1
rule 1 /.*/ /1777XXXXXXX/
What I am trying to do in a sip-profile is grab the DID and alter the header to include the DID in either of the following:
P-ASSERTED-IDENTITY
P-PREFERRED-IDENTITY
REMOTE-PARTY-ID
With this code:
request INVITE peer-header sip FROM copy "sip:(.*)@" u02
request INVITE sip-header Remote-Party-ID modify "<sip:(.*)@(.*)>" "<sip:\u02@PUBLIC IP>"
I just keep hitting the brick wall and I have altered my dial peers so many times I have lost track of how many changes I have made, any help would be greatly appreciated.
Thank you