<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" 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 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:12.0pt;
        font-family:"Times New Roman","serif";}
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
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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-AU link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yes, I agree that the called party should not be forcing the
contact, however the second half of your sentence reinforces that I _<i>should</i>_
be able to change it to whatever I like.&nbsp; The scenario is that Freeswitch
is acting as an SBC between my UA and a PSTN termination gateway, my UA treats Freeswitch
is an outbound proxy.&nbsp; The reason that I am using a B2BUA rather than a
proxy is that I need to load balance and failover between 3 gateways, my UA has
no knowledge of the gateways and it is up to Freeswitch to select a gateway for
call completion (and thus rewrite both the request URI and To header &#8211;
proxies are not supposed to rewrite the To header as this breaks up the SIP dialog
into multiple call legs, which is a B2BUA function).&nbsp; In this instance the
termination provider is Level3 and it seems entirely reasonable that I populate
the contact header with a valid e.164 style URI.&nbsp; This is a specific case in
that I am dealing with a PSTN gateway and the from, rpid and contact headers
are used by Level3 for ANI for purposes of toll free and billing (eg intra vs
inter state calling).<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Craig<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Anthony
Minessale<br>
<b>Sent:</b> Wednesday, 13 August 2008 11:02 PM<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> Re: [Freeswitch-users] setting contact header<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>That is not currently possible
only because there was no reason to make that configurable and it's not
acceptable.<br>
<br>
The called party should *NOT* be forcing the calling party to use a certain
contact, the contact is the calling parties business.<br>
<br>
If we did support that it would have to fall under the NDLB &quot;No Device
Left Behind&quot; series of configuration options designed for interop with
less-than-compliant SIP UA and it would be quite hard to do right because in
reality the profile is the true SIP UA not each call.&nbsp; So the contact
address is the url of the profile that should not change at all among different
calls.&nbsp; Support for this could cause a regression that breaks 100 other
complicated SIP scenarios. <br>
<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>

<div>

<p class=MsoNormal>On Wed, Aug 13, 2008 at 2:31 AM, Craig Guy &lt;<a
href="mailto:craig.a.guy@gmail.com">craig.a.guy@gmail.com</a>&gt; wrote:<o:p></o:p></p>

<div>

<div>

<p>Hi,<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>First, have been lurking for about a week and I feel Freeswitch is a great
project, coming from a non-programmer background and heavy familiarity with
Asterisk and Callweaver it's a bit of a learning curve to come to grips with
the XML but I'm slowly getting there <span style='font-family:Wingdings'>J</span><o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>I'm currently doing some interop testing with Freeswitch and the provider
has come back to me stating that they require the Contact header to exhibit:<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p style='margin-left:54.0pt;text-indent:-18.0pt'>a)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
e.164 format<o:p></o:p></p>

<p style='margin-left:54.0pt;text-indent:-18.0pt'>b)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
The From, RPID and Contact headers to match<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>Try as I might I am seemingly unable to set the user portion of the Contact
header for the outbound leg to the termination provider.&nbsp; The contact is
always mod_sofia@&lt;ip:port&gt;.&nbsp; I have found the sip-force-contact
setting however it seems to have no effect on the contact header (and I might
be using it incorrectly in any case).&nbsp; The ideal behaviour for me is for
the contact to take the form of callerid@&lt;ip:port&gt;<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>For example if my sip profile is bound to <a href="http://192.168.0.1:5060"
target="_blank">192.168.0.1:5060</a> and my handset callerid is +13035555555 I
would like to set the contact to sip:+13035555555@192.168.0.1:5060<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>Is there an ability within Freeswitch to set the Contact header based on
callerid?<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>Craig<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p>

</div>

<p class=MsoNormal><br>
<br clear=all>
<br>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<o:p></o:p></p>

</div>

</div>

</body>

</html>