[Devel] [ openser-Patches-1712764 ] UAC module
SourceForge.net
noreply at sourceforge.net
Fri May 4 16:16:03 CEST 2007
Patches item #1712764, was opened at 2007-05-04 18:13
Message generated for change (Comment added) made by av_kot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1712764&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.2.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alexei Volkov (av_kot)
Assigned to: Nobody/Anonymous (nobody)
Summary: UAC module
Initial Comment:
RFC declare that SIP strings (at least From To Remote-Party-Id) can be utf8 encoded, but not all SIP terminals can correctly process that strings when thay are out of latin charset. In this case i want special processing for that uteminals (user-agents). For example i want enaple pass through utf8 for terminals with predefined user agent string and clear or transform for others.
I found the way to do it in branch_route handler instead of route handler (due to more than one terminal can be registered under same URI and they can be from different vendors).
branch_route[1] {
$avp(s:useragent)="";
avp_db_query("select user_agent from location where contact='$ru'","$avp(s:useragent)");
if ($avp(s:useragent)=~"SJphone") {return;};
uac_replace_from("transliterate","");
return;
}
But uac_replace_from in auc.c declared with REQUEST_ROUTE flag only. With attached patch i can solve proplem with some utf8 buggy sip terminals.
I thing that this simple patch will be usefull.
----------------------------------------------------------------------
>Comment By: Alexei Volkov (av_kot)
Date: 2007-05-04 18:16
Message:
Logged In: YES
user_id=1779106
Originator: YES
File Added: branch_route_uac.patch
----------------------------------------------------------------------
Comment By: Alexei Volkov (av_kot)
Date: 2007-05-04 18:15
Message:
Logged In: YES
user_id=1779106
Originator: YES
File Added: branch_route_auc.patch
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1712764&group_id=139143
More information about the Devel
mailing list