[OpenSIPS-Users] Change SIP response code
Peter P GMX
Prometheus001 at gmx.net
Wed Sep 23 13:06:26 CEST 2009
Another hint to that,
we have the problem that our B2BUA (Cirpack) send SIP 500 messages when
the SIP Codes does not match the Q.850 reason code when e.g. a user is
busy or unavailable. (e.g. reason Code "16,nomal clearing" in the 486
SIP message when "17, user busy" should be there.)
You may also check if this is the case in your environment.
Best regards
Peter
Mauro Davì schrieb:
> Hi Josip,
>
> I think that the below answer could be the solution:
>
> http://www.openser.org/pipermail/users/2006-January/002692.html
>
> Regards
> MD
>
> Josip Djuricic ha scritto:
>>
>> Dear,
>>
>>
>>
>> What would be the best way to change SIP response message from 5xx to
>> 4xx. The problem is we have client with a broken b2bua which sends
>> SIP 500 Expired after the user does not answer the phone, so I would
>> like to change it to SIP 480 Temporarily unavailable message before
>> sending it back.
>>
>>
>>
>> if (search("^Expired*")) {
>>
>> sl_send_reply("480", "Temporarily Unavailable");
>>
>> break;
>>
>> };
>>
>>
>>
>> I thought about something like that but that would match also the
>> initial invite that has Expired valule in it, so I would need to
>> match only SIP 500 message with string Expired in it.
>>
>>
>>
>> Thank you
>>
>>
>>
>> Josip
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list