<div dir="ltr"><div>Thanks for your input Daniel but pardon my ignorance as I am not 100% clear where I need to add that event_route[tm:local-request].  <br><br>Here is the point where the REGISTER is being sent to Freeswitch.  So are you able to provide an example of where I send the real User-Agent of the device to Freeswitch?<br><br># Forward REGISTER to FreeSwitch<br>route[REGFWD] {<br><br>        if(!is_method("REGISTER"))<br>        {<br>                return;<br>        }<br><br>        route(DISPATCH);<br>        $uac_req(method)="REGISTER";<br>        $uac_req(ruri)=$du;<br>        $uac_req(furi)=$fn + "<sip:" + $au + "@" + $ar + ">";<br>        $uac_req(turi)=$tn + "<sip:" + $au + "@" + $ar + ">";   <br>        $uac_req(hdrs)="Contact: <sip:" + $au + "@"<br>                                + $ar<br>                                + ";fs_path=sip:"<br>                                + $sel(cfg_get.kamailio.bindip)<br>                                + ":" + $sel(cfg_get.kamailio.bindport)<br>                                + ">"<br>                                + "\r\n";<br>        if($sel(contact.expires) != $null)<br>                $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $sel(contact.expires) + "\r\n";<br>        else<br>                $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $hdr(Expires) + "\r\n";<br>        uac_req_send();<br>        exit;<br>}<br><br></div>Thanks<br><br>Errol<br><br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 7, 2014 at 9:07 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    You have to use event_route[tm:local-request] if you use uac module
    to send out new REGISTER.<br>
    <br>
    Cheers,<br>
    Daniel<div><div class="h5"><br>
    <br>
    <div>On 03/10/14 18:32, Errol Samuels wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>I also tried your last suggestion at the point when the
            registeris being forwarded to FS but it had no effect<br>
            <br>
            # Forward REGISTER to Freeswitch<br>
            route[REGFWD] {<br>
                    if(!is_method("REGISTER"))<br>
                    {<br>
                            return;<br>
                    }<br>
            <br>
                    #if ( is_present_hf("User-Agent")) {<br>
                   <b> remove_hf("User-Agent");<br>
                      append_hf("User-Agent: $ua\r\n");</b><br>
                    #}<br>
            <br>
          </div>
          BR<br>
          <br>
        </div>
        Errol<br>
        <div>
          <div><br>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Oct 3, 2014 at 5:08 PM, Rainer
          Piper <span dir="ltr"><<a href="mailto:rainer.piper@soho-piper.de" target="_blank">rainer.piper@soho-piper.de</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Am 03.10.2014 um 17:52 schrieb Errol Samuels:<br>
              </div>
              <span>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div>
                      <div>
                        <div>Hi Rainer,<br>
                          <br>
                        </div>
                        Yes I did try user_agent_header = "User-Agent:
                        $ua"; but it just passes "$ua" to Freeswitch
                        rather than the value of $ua.<br>
                        <br>
                      </div>
                      regards,<br>
                      <br>
                    </div>
                    Errol<br>
                    <br>
                    <div>
                      <div><br>
                        <div>
                          <div>
                            <div class="gmail_extra"><br>
                              <div class="gmail_quote">On Fri, Oct 3,
                                2014 at 4:32 PM, Rainer Piper <span dir="ltr"><<a href="mailto:rainer.piper@soho-piper.de" target="_blank">rainer.piper@soho-piper.de</a>></span>
                                wrote:<br>
                                <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                                  <div bgcolor="#FFFFFF" text="#000000">
                                    <div>Am 03.10.2014 um 17:04 schrieb
                                      Errol Samuels:<br>
                                    </div>
                                    <span>
                                      <blockquote type="cite">
                                        <div dir="ltr">
                                          <div>
                                            <div>
                                              <div>
                                                <div>
                                                  <div>
                                                    <div>Hello All,<br>
                                                      <br>
                                                    </div>
                                                    I am using Kamailio
                                                    in front of
                                                    Freeswitch and
                                                    Kamailio is handling
                                                    the registrations
                                                    then forwarding to
                                                    Freeswitch and
                                                    everything is
                                                    working for the most
                                                    part.<br>
                                                    <br>
                                                    However, there is
                                                    niggling pain in the
                                                    neck issue where the
                                                    user's User-Agent
                                                    shows in Freeswitch
                                                    as kamailio (4.0.6
                                                    (x86_64/linux)) 
                                                    instead of the
                                                    user's Real
                                                    User-Agent I am
                                                    trying to get
                                                    Kamailio to pass the
                                                    real User-Agent of
                                                    the user without
                                                    success.<br>
                                                    <br>
                                                  </div>
                                                  I am able to set a
                                                  static User-Agent by
                                                  doing this in the
                                                  global section.<br>
                                                  <br>
                                                  <b>user_agent_header =
                                                    "User-Agent:  We
                                                    love beer";</b><br>
                                                  <br>
                                                </div>
                                                However, I am unable to
                                                set it dynamically for
                                                example:<br>
                                                <br>
                                                <b>user_agent_header =
                                                  "User-Agent: " + $ua;<br>
                                                </b></div>
                                            </div>
                                          </div>
                                        </div>
                                      </blockquote>
                                    </span><b>have you tried ...<br>
                                      <br>
                                    </b><b>user_agent_header =
                                      "User-Agent: $ua";<br>
                                      <br>
                                      ?<br>
                                    </b></div>
                                </blockquote>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </span><b>Have you tried to remove the original hf
                (User-Agent) and set the new one like:<br>
                <br>
                remove_hf("User-Agent");<br>
                append_hf("User-Agent: $ua\r\n");<br>
              </b>
              <div>
                <div><b><br>
                    ?<br>
                    <br>
                  </b>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>
                            <div>
                              <div class="gmail_extra">
                                <div class="gmail_quote">
                                  <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                                    <div bgcolor="#FFFFFF" text="#000000"><b> </b>
                                      <blockquote type="cite"><span>
                                          <div dir="ltr">
                                            <div>
                                              <div>
                                                <div><b><br>
                                                  </b></div>
                                                <div>With is one
                                                  Kamailio doesn't even
                                                  start so my syntax is
                                                  probably wrong.<br>
                                                </div>
                                                <br>
                                                I also tried playing
                                                around with the textops
                                                module so I have ran out
                                                of ideas<br>
                                              </div>
                                              <div><br>
                                                Any ideas?<b><br>
                                                  <br>
                                                </b></div>
                                              Thanks in advance.<b><br>
                                                <br>
                                              </b></div>
                                            regards,<br>
                                            <br>
                                            Errol<br>
                                            <b><br>
                                            </b>
                                            <div><b><br>
                                                <br>
                                              </b>
                                              <div>
                                                <div><b><br>
                                                    <br>
                                                    <br>
                                                  </b>
                                                  <div><br>
                                                    <br>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                          <br>
                                          <fieldset></fieldset>
                                          <br>
                                        </span>
                                        <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888">
</font></span></pre>
                                        <span><font color="#888888"> </font></span></blockquote>
                                      <span><font color="#888888"> <br>
                                          <br>
                                          <div>-- <br>
                                            <b>Rainer Piper</b> <br>
                                            Integration engineer <br>
                                            Koeslinstr. 56 <br>
                                            53123 BONN <br>
                                            GERMANY <br>
                                            Phone: <a href="tel:%2B49%20228%2097167161" value="+4922897167161" target="_blank">+49 228
                                              97167161</a> <br>
                                            P2P: <a>sip:rainer@sip.soho-piper.de:5072</a>
                                            (pjsip-test) <br>
                                            XMPP: <a href="mailto:rainer@xmpp.soho-piper.de" target="_blank">rainer@xmpp.soho-piper.de</a></div>
                                        </font></span></div>
                                    <br>
_______________________________________________<br>
                                    SIP Express Router (SER) and
                                    Kamailio (OpenSER) - sr-users
                                    mailing list<br>
                                    <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
                                    <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                                    <br>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                  </blockquote>
                  <br>
                  <br>
                  <div>-- <br>
                    <b>Rainer Piper</b> <br>
                    Integration engineer <br>
                    Koeslinstr. 56 <br>
                    53123 BONN <br>
                    GERMANY <br>
                    Phone: <a href="tel:%2B49%20228%2097167161" value="+4922897167161" target="_blank">+49 228
                      97167161</a> <br>
                    P2P: <a>sip:rainer@sip.soho-piper.de:5072</a>
                    (pjsip-test) <br>
                    XMPP: <a href="mailto:rainer@xmpp.soho-piper.de" target="_blank">rainer@xmpp.soho-piper.de</a></div>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
            <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
  </font></span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>