<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
asd ha scritto:
<blockquote
 cite="mid:5a33ba20907140641q5e527e72g1b9a9325fa3e2f39@mail.gmail.com"
 type="cite">
  <pre wrap="">2009/7/14, Nick Warr <a class="moz-txt-link-rfc2396E" href="mailto:nick@mobilia.it">&lt;nick@mobilia.it&gt;</a>:
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">Ok, I have another question left.
I haven't tried it yet, I'm just asking if it's possible or not.

I'll install Asterisk and I'll add 7000 to it, so Asterisk will
register as 7000 in Kamailio.
it's possible to set outbound callerid in asterisk to 7002, even if I
call out from 7000?
So basically 7002 is an alias for 7000, and I would like to display 7002.

Kind regards,
Dmitri

      </pre>
    </blockquote>
    <pre wrap="">It would be better to control your RPID and P-Asserted headers in
Kamailio, IMHO.


    </pre>
  </blockquote>
  <pre wrap=""><!---->
So basically like this?

                if ($fu =~ "^<a class="moz-txt-link-freetext" href="sip:7002+@">sip:7002+@</a>") {
                    xlog("L_INFO", "Changing callerid\n");
                    uac_replace_from("$avp(s:display)",<a class="moz-txt-link-rfc2396E" href="sip:7002@domain.com">"sip:7002@domain.com"</a>);
                    ...
                    ...
                }
Sorry if it's sounds like a dumb question, I'm a beginner in Kamailio.

Kind regards,
Dmitri

_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a class="moz-txt-link-freetext" href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a>
  </pre>
</blockquote>
If you want to change the from user, yeah.<br>
<br>
Callerid if done properly, should be P-Asserted/P-Preferred Identity,
or Remote-Party-ID headers. If you're terminating to PSTN, or trunking,
those are the proper headers to use for trustable callerid (and
privacy,etc).<br>
<br>
Nick<br>
<br>
<br>
</body>
</html>