<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 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0mm;
        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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML \66F8\5F0F\4ED8\304D \(\6587\5B57\)";
        margin:0mm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.HTML
        {mso-style-name:"HTML \66F8\5F0F\4ED8\304D \(\6587\5B57\)";
        mso-style-priority:99;
        mso-style-link:"HTML \66F8\5F0F\4ED8\304D";
        font-family:"Courier New";}
span.20
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:99.25pt 30.0mm 30.0mm 30.0mm;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026">
  <v:textbox inset="5.85pt,.7pt,5.85pt,.7pt" />
 </o:shapedefaults></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=JA link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Thanks Oliver.<o:p></o:p></span></p>

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

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>I tried those approaches but they did not work.<o:p></o:p></span></p>

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

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>However, I just found a workaround finally. The SIPAddHeader and
SIP_HEADER functions enabled me to get the callerid working.<o:p></o:p></span></p>

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

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Thanks again!!<o:p></o:p></span></p>

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

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

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

<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"'> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>unserossi@aol.com<br>
<b>Sent:</b> Wednesday, August 04, 2010 8:53 PM<br>
<b>To:</b> asterisk-users@lists.digium.com<br>
<b>Subject:</b> Re: [asterisk-users] callerid between 2 asterisk servers<o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<div>

<div id="AOLMsgPart_0_8a1672db-76cc-4c60-a145-9ca0379b4402"><pre
style='background:white'><tt><span lang=EN-US style='color:black'>I've got 2 asterisk servers on the same box: ubuntu 10.04 lucid. I have not<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>been able to send useful callerid info between them (callerid becomes<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>&quot;serverB&quot;).<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>serverA register statement: (serverB has the exact opposite statement)<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>register =&gt; serverA:serverApassword@IP_of_serverB_nic/serverB<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>users.conf of serverA:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; users.conf of serverB:<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>[serverB]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [serverA]<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>type=friend&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=friend<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>fromuser=serverB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fromuser=serverA<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>secret=serverBpassword&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; secret=serverApassword<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>host=dynamic&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host=dynamic<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>etc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; etc.<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>[serverA]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [serverB]<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>type=user&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=user<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>secret=serverApassword&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; secret=serverBpassword<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>context=serverA_incoming&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context=serverB_incoming<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>host=dynamic&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host=dynamic<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>etc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; etc.<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>serverA extensions.conf:<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>exten =&gt; _8X.,n,Dial(SIP/serverB/${EXTEN},20,r)<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>With this set up, when I dial from an extension such as 6000 on serverA to<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>an extension such as 8000 on serverB, instead of sending the callerid info<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>of 6000 it sends &quot;serverB&quot;. I cannot seem to find a way around this.<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>Anyone know of a way to send the 6000 callerid info? Somehow via sending a<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>user-defined field via the dial statement?<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>If not via the dial, then a way to transfer via writing to the file system?<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>Is there a way to use, in extensions.conf, some kind of info transferred<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>between serverA and serverB such as the tag id so that I can specify a<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>filename for them to write/read? I cannot seam to find something that each<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>server sees which I can dynamically read in and use in extensions.conf.<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>Thanks!!<o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'>-- <o:p></o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre>

<div><pre style='background:white'><span lang=EN-US style='font-family:"Arial","sans-serif";
color:black'>Try uncommenting fromuser on both boxes.</span><span lang=EN-US
style='color:black'><o:p></o:p></span></pre></div>

<pre style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre><pre
style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre>

<div><pre style='background:white'><span lang=EN-US style='color:black'>Or did you set callerid in your users.conf when you write &quot;etc.&quot;? If so, also uncomment it.<br>
<br>
<o:p></o:p></span></pre><pre style='background:white'><span lang=EN-US
style='color:black'><br>
<br>
<o:p></o:p></span></pre><pre style='background:white'><span lang=EN-US
style='color:black'>Oliver<o:p></o:p></span></pre></div>

<pre style='background:white'><tt><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></tt></pre></div>

</div>

</div>

</body>

</html>