<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
      <small><font face="Courier New, Courier, monospace">freeswitch@default&gt;
          sofia status gateway SIP_M200<br>
=================================================================================================<br>
          Name            SIP_M200<br>
          Profile         external<br>
          Scheme          Digest<br>
          Realm           172.30.0.2<br>
          Username        USERNAME_STRING<br>
          Password        yes<br>
          <b><big><font color="#ff0000">From           
                <a class="moz-txt-link-rfc2396E" href="sip:USERNAME_STRING@172.30.0.2">&lt;sip:USERNAME_STRING@172.30.0.2&gt;</a></font></big></b><br>
          Contact        
          <a class="moz-txt-link-rfc2396E" href="sip:gw+SIP_M200@172.30.0.1:5080;transport=udp;gw=SIP_M200">&lt;sip:gw+SIP_M200@172.30.0.1:5080;transport=udp;gw=SIP_M200&gt;</a><br>
          <big><small>Exten           USERNAME_STRING</small><br>
            <b><font color="#ff0000">To             
                <a class="moz-txt-link-freetext" href="sip:USERNAME_STRING@172.30.0.2">sip:USERNAME_STRING@172.30.0.2</a></font></b></big><br>
          Proxy           <a class="moz-txt-link-freetext" href="sip:172.30.0.2">sip:172.30.0.2</a><br>
          Context         public<br>
          Expires         3600<br>
          Freq            3600<br>
          Ping            1354199070<br>
          PingFreq        5<br>
          PingState       -1/-1/1<br>
          State           NOREG<br>
          <big><b><font color="#ff0000">Status          DOWN (ping)</font></b></big><br>
          CallsIN         0<br>
          CallsOUT        0<br>
          FailedCallsIN   0<br>
          FailedCallsOUT  0<br>
=================================================================================================<br>
          <br>
          freeswitch@default&gt;</font></small><br>
      <br>
      but the remote UA accepts<br>
      <br>
      <small><font face="Courier New, Courier, monospace">Thu Nov 29
          18:27:16 2012<br>
          RECEIVE 15:5060 &lt;-- 172.30.0.1:5080<br>
          OPTIONS <a class="moz-txt-link-freetext" href="sip:172.30.0.2;transport=udp">sip:172.30.0.2;transport=udp</a> SIP/2.0<br>
          Via: SIP/2.0/UDP
          172.30.0.1:5080;rport;branch=z9hG4bKv39BcX339a2ZK<br>
          Max-Forwards: 70<br>
          <big><b><font color="#ff0000">From:
                <a class="moz-txt-link-rfc2396E" href="sip:172.30.0.2">&lt;sip:172.30.0.2&gt;</a>;tag=H7jt6HH1p05cg<br>
                To: <a class="moz-txt-link-rfc2396E" href="sip:172.30.0.2">&lt;sip:172.30.0.2&gt;</a></font></b></big><br>
          Call-ID: acb53903-b4d3-1230-60ac-00d0b7ded66a<br>
          CSeq: 36762086 OPTIONS<br>
          User-Agent:
          FreeSWITCH-mod_sofia/1.2.3+git~20120920T220849Z~f718a5e8e6<br>
          Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO,
          UPDATE, REGISTER, REFER, NOTIFY<br>
          Supported: timer, precondition, path, replaces<br>
          Allow-Events: talk, hold, conference, refer<br>
          Content-Length: 0<br>
        </font></small><br>
      Vladislav<br>
      <br>
      29.11.2012 17:12, Mimiko пишет:<br>
    </div>
    <blockquote cite="mid:50B75F40.30000@gmail.com" type="cite">
      <pre wrap="">On 29.11.2012 14:56, "Гришин В.С." wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">*From: <a class="moz-txt-link-rfc2396E" href="sip:172.30.0.2">&lt;sip:172.30.0.2&gt;</a>;tag=BZN3H5ZBpm8gQ     &lt;----in this string no
username
To: <a class="moz-txt-link-rfc2396E" href="sip:172.30.0.2">&lt;sip:172.30.0.2&gt;</a>      &lt;---- and  in this string no username*

it is necessary to make as

From: "USERNAME_STRING" <a class="moz-txt-link-rfc2396E" href="sip:USERNAME_STRING@172.30.0.1">&lt;sip:USERNAME_STRING@172.30.0.1&gt;</a>;tag=9DcB7gSNZZ41j
</pre>
      </blockquote>
      <pre wrap="">
You have to use
&lt;action application="set" data="effective_caller_id_name=USERNAME_STRING"/&gt;
&lt;action application="set" 
data="effective_caller_id_number=USERNAME_STRING"/&gt;

in dialplan before bridging, or in users directory profile.
</pre>
    </blockquote>
    <br>
  </body>
</html>