So we have mutiple STN numbers, I need to be able to change the PAI based on my users outgoing caller ID. If I have a user in portland that has a caller ID of 5035552222 I need to add a P-Asserted-Identity of 5035551212, same for the fremont site, if my user calling has a caller id of 5105556666, i need to modify the P-Asserted-Identity to 5105553434. I see i can create a voice class sip-profile which works but how to do i create multiple for each site. Do I create a dial-peer that some how matches the outgoing caller id? I have have only seen matching for the number your dialing.
voice class sip-profiles 1
request INVITE sip-header P-Asserted-Identity modify "<sip:(.*)@(.*)>" "<sip:5035551212@172.21.1.2>"
Any help would be greatly appreciated
JonS.