[OpenSIPS-Users] Opensips 2.3.2

Răzvan Crainea razvan at opensips.org
Wed Dec 13 04:42:28 EST 2017


Yes, the call seems to be in the right place.
Are you sure that $avp(display) and $avp(uri) contain the right 
information? Did you add some logs to make sure? Are there any errors in 
the script? Is anything changed in the From header after forwarding the 
request?

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 12/12/2017 06:55 PM, mas_66--- via Users wrote:
> Thanks Bogdan and Razvan
>
> I have inserted the function in the location as below  in opensips.cfg with no
> success im afraid.
> Have i put it in the correct location? i want to change the FROM URI 1.1.1.1 to
> 2.2.2.2
>
> thanks
> route[relay] {
>          # for INVITEs enable some additional helper routes
>          if (is_method("INVITE")) {
>
>                  if (isflagset(NAT)) {
>                          rtpproxy_offer("ro");
>                  }
>
>                  t_on_branch("per_branch_ops");
>                  t_on_reply("handle_nat");
>                  t_on_failure("missed_call");
>          }
>
>          if (isflagset(NAT)) {
>                  add_rr_param(";nat=yes");
>                  }
>
>          if (!t_relay()) {
>                  send_reply("500","Internal Error");
>          };
>          exit;
> }
>
>
>
>
> branch_route[per_branch_ops] {
>          uac_replace_from("$avp(display)","$avp(uri)");
>          xlog("new branch at $ru\n");
> }
>
>
> onreply_route[handle_nat] {
>          if (nat_uac_test("1"))
>                  fix_nated_contact();
>          if ( isflagset(NAT) )
>                  rtpproxy_answer("ro");
>          xlog("incoming reply\n");
> }
>
>
> failure_route[missed_call] {
>          if (t_was_cancelled()) {
>                  exit;
>          }
>
>          # uncomment the following lines if you want to block client
>          # redirect based on 3xx replies.
>          ##if (t_check_status("3[0-9][0-9]")) {
>          ##t_reply("404","Not found");
>          ##      exit;
>          ##}
>
>
> }
>
>
>
> local_route {
>          if (is_method("BYE") && $DLG_dir=="UPSTREAM") {
>
>                  acc_db_request("200 Dialog Timeout", "acc");
>
>          }
> }
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list