[Spce-user] Sipwise CE as IMS Application Server

Alex Lutay alutay at sipwise.com
Tue Feb 11 08:44:36 EST 2020


Hi,

On 2/11/20 2:17 PM, ATSE LANVIN ADON wrote:
...
> *INVITE – SUBSCRIBE – PUBLISH *: *NOK***
> In wire shark, I’m having the error “ *500 Internal Server Error*“

Hint: you can use "sngrep" console tool as a nice wireshark replacement.

> In the proxy log file, I’m having “ *ERROR: <script>: Failed to replace
> Route with P-Route, drop call*“


Search kamailio config for "Failed to replace Route with..." :

> /etc/kamailio/proxy/kamailio.cfg

The code part:

>         # NOTE: Route headers are not managed by pv_headers module
>         # since we have to send back the message to the s-cscf using Route, but sems-sbc is
>         # filtering them, just rename them here and restore them at the lb hop
>         $var(p_route) = 0;
>         $x_hdr(P-Route) = $(hdr(Route)[*]);
>         if(subst("/^Route: /P-Route: /g"))
>         {
>                 xlog("L_NOTICE", "Successfully replaced Route with P-Route - [% logreq -%]\n");
>                 msg_apply_changes();
>                 $var(p_route) = $x_hdr(P-Route);
>         }
>         else
>         {
>                 xlog("L_ERR", "Failed to replace Route with P-Route, drop call - [% logreq -%]\n");
>                 send_reply("500", "Internal Server Error");
>                 route(ROUTE_EXIT);
>         }

Did you send SIP INVITE without the "Route" header?
You can check the incoming invite using "sngrep" console tool.

Have fun!

-- 
Alex Lutay




More information about the Spce-user mailing list