<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB">I’m having a little trouble with ‘presentation numbers’ with a new provider I’m in IOT with this week.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB">I’m trying to recreate the following Invite as the calls pass through our dialplan to this provider but there are issues with trying to get a different CLI
into the From and P-Asserted-Identity headers.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB">When presenting a Freephone number (for example) we need to still present the regular number that would be used by this extension in the P-Asserted-Identity
whilst passing the number we wish to have presented in the From header.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB">Currently we are not using Gateways so we cannot resort to using <param name="caller-id-in-from" value="true"/> (although I expect this won’t do what we need
in this case) so I’ve looked at altering the channel variables sip_from_user,sip_full_from and sip_full_uri using set and export dial plan apps but none of these seem to have any effect so I guess these variables must be read only.
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB">I’m sure this must be simple, but can’t for the life of me work out what I need to do.
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB">Below is an extract from an example header from the provider I am trying to recreate, I’ve also added a copy of the Dialplan extension I am using to test.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB">If someone can tell me what I’m getting wrong I would really appreciate it.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB">Thanks<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB">Rob<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:#1E508A;mso-fareast-language:EN-GB"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:#1E508A;mso-fareast-language:EN-GB">INVITE</span></b><span style="font-size:8.5pt;font-family:"Courier New";mso-fareast-language:EN-GB">
<span style="color:gray"><a href="sip:+445600005262@primarysip.barfoo.com;user=phone">sip:<b>+445600005262@primarysip.barfoo.com;user=phone</b></a></span>
<span style="color:gray">SIP/2.0</span><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:#666666;mso-fareast-language:EN-GB">Max-Forwards:</span></b><span style="font-size:8.5pt;font-family:"Courier New";mso-fareast-language:EN-GB">
<span style="color:#666666">69</span><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:#666666;mso-fareast-language:EN-GB">Session-Expires:</span></b><span style="font-size:8.5pt;font-family:"Courier New";mso-fareast-language:EN-GB">
<span style="color:#666666">3600;refresher=uac</span><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:#666666;mso-fareast-language:EN-GB">Min-SE:</span></b><span style="font-size:8.5pt;font-family:"Courier New";mso-fareast-language:EN-GB">
<span style="color:#666666">600</span><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:#666666;mso-fareast-language:EN-GB">Supported:</span></b><span style="font-size:8.5pt;font-family:"Courier New";mso-fareast-language:EN-GB">
<span style="color:#666666">timer, 100rel</span><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB">To:</span></b><span style="font-size:8.5pt;font-family:"Courier New";mso-fareast-language:EN-GB">
<span style="color:#666666">+445600000262 </span><b><span style="color:chocolate"><<a href="sip:+445600005262@primarysip.barfoo.com;user=phone">sip:+445600005262@primarysip.barfoo.com;user=phone</a>></span></b><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB">From:</span></b><span style="font-size:8.5pt;font-family:"Courier New";mso-fareast-language:EN-GB">
<b><span style="color:chocolate"><<a href="sip:+448000655262@uk.foo.bar.2.net;user=phone">sip:+448000655262@uk.foo.bar.2.net;user=phone</a>></span></b><span style="color:#666666">;tag=</span><span style="color:black">12544</span><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:#666666;mso-fareast-language:EN-GB">P-Asserted-Identity:</span></b><span style="font-size:8.5pt;font-family:"Courier New";mso-fareast-language:EN-GB">
<span style="color:#666666"><<a href="sip:+445600655262@uk.sdin.bt.net">sip:+445600655262@uk.sdin.bt.net</a>></span><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB">Call-ID:</span></b><span style="font-size:8.5pt;font-family:"Courier New";mso-fareast-language:EN-GB">
<span style="color:black"><a href="mailto:1347372978-13100@mgc-uk-998.n2">1347372978-13100@mgc-uk-998.n2</a></span><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB">CSeq:</span></b><span style="font-size:8.5pt;font-family:"Courier New";mso-fareast-language:EN-GB">
<span style="color:black">1 INVITE</span><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Courier New";color:#666666;mso-fareast-language:EN-GB">Allow:</span></b><span style="font-size:8.5pt;font-family:"Courier New";mso-fareast-language:EN-GB">
<span style="color:#666666">CANCEL, ACK, INVITE, BYE, OPTIONS, INFO, PRACK, UPDATE</span><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">DIAL Plan: (attempting +445600655262 in P Asserted-Id and +448000655262 in from) have commented out some things that I have tried.)<o:p></o:p></p>
<p class="MsoNormal">If you are worried about [sip_h_X-Gateway=4003:4] this is added to help our SBC forward calls to our different providers.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> <extension name="TC 25"><o:p></o:p></p>
<p class="MsoNormal"> <condition field="destination_number" expression="^10125$"><o:p></o:p></p>
<p class="MsoNormal"> <action application="set" data="effective_caller_id_name=_undef_"/><o:p></o:p></p>
<p class="MsoNormal"> <action application="set" data="effective_caller_id_number=+445600005262 "/><o:p></o:p></p>
<p class="MsoNormal"> <action application="set" data="dtmf_type=rfc2833"/><o:p></o:p></p>
<p class="MsoNormal"> <action application="set" data="sip_cid_type=pid"/><o:p></o:p></p>
<p class="MsoNormal"> <!--<action application="export" data="<span style="color:black;mso-fareast-language:EN-GB"> sip_from_user</span> =+448000655262"/> --><o:p></o:p></p>
<p class="MsoNormal"> <!-- <action application="export" data="sip_h_from=<sip:+448000655262@primarysip.barfoo.com>;tag=${sip_from_tag} "/> --><o:p></o:p></p>
<p class="MsoNormal"> <!-- <action application="export" data="sip_h_P-Asserted-Identity= +445600005262 <sip:+445600655262@172.17.7.4> "/> --><o:p></o:p></p>
<p class="MsoNormal"> <action application="info"/><o:p></o:p></p>
<p class="MsoNormal"> <action application="bridge" data="[sip_h_X-Gateway=4003:4]sofia/internal/+442920001199@pstn.tel" />
<o:p></o:p></p>
<p class="MsoNormal"> </condition><o:p></o:p></p>
<p class="MsoNormal"> </extension> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:14.15pt;text-indent:-14.15pt"><span style="mso-fareast-language:EN-GB">Rob Moore<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:gray;mso-fareast-language:EN-GB">Telephony Systems Infrastructure Manager</span><span style="font-family:"Arial","sans-serif";color:gray;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#376092;mso-fareast-language:EN-GB">Aeriandi<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="color:#7F7F7F;mso-fareast-language:EN-GB">Aeriandi Ltd, Prama House, Banbury Road, Oxford, OX27HT
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-GB">E:
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB"><a href="mailto:rob.moore@aeriandi.com"><span style="color:blue">rob.moore@aeriandi.com</span></a><u><span style="color:#1F497D"><o:p></o:p></span></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-GB">W:
</span><span style="mso-fareast-language:EN-GB"><a href="http://www.aeriandi.com/"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue">www.aeriandi.com</span></a><br>
M: +44 (0)7766 838040</span><u><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-GB">T: +</span><span style="mso-fareast-language:EN-GB">44 (0) 845 108 0308</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><img border="0" width="195" height="44" id="Picture_x0020_1" src="cid:image001.png@01CD9049.6A356930" alt="Description: Description: Description: Description: Description: Description: Description: Description: cid:image002.png@01CC9E0C.20153A40">
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>