[Freeswitch-dev] More detailed P-Asserted-Identity
Hello, Case: Channel variable set from "P-Asserted-Identity" header contains only user name part Description: I have an IMS platform (by ALU) and a media server based on FreeSWITCH. Calls to a dedicated PSI and some FAC are routed to FSW. For some accont-specific features it is important to have a detailed user information. I found that mod_sofia currently sets only a user part of URI in "sip_h_P-Asserted-Identity" variable. It is not suitable in our case, since we also need information about user's realm. Solution: I created a patch which allows to decide how detailed the information in variable should be. A new parameter in sip profile configuration is introduced "p-asserted-id-parse": <param name="p-asserted-id-parse" value="default"/> Valid values are: param not defined at all - assume "default" "default" - preserves current behaviour (user numer only); "user-only" - same result as above, but explicitly enforced "user-domain" - a conatenation of "user number" "@" "user domain" "verbatim" - set to exact value of the SIP header A new type was added (sofia_paid_type_t - enum) and a profile field (paid_type). In 'config_sofia' and 'reconfig_sofia' a new parameter is parsed (if declared) then 'paid_type' field is set as requested. By default (in 'config_sofia') paid_type ise set to PAID_DEFAULT In 'p-asserted-id-parse' function, setting "sip_P-Asserted-Identity" variable depends on value set in profile configuration. Tested with Alcatel-Lucent IMS v.3.0 for all param values. "default", "user-only" and "user-domain" works as expected (actually "user-domain" is what we need). Unfortunately "verbatim" is not filling channel variable at all. Can sb. help me how to get an exact value of a PANI header from a request? Do you think it could be useful to others so I can push it to JIRA after problem fixing? Regards, Mariusz Czułada
Also, Highest Priority for a mailing list? REALLY? On 3/12/12 4:03 PM, "Brian West" <brian@freeswitch.org> wrote:
Please put all of this on Jira.
Thanks, Brian
On Mar 12, 2012, at 4:54 PM, Mariusz Czulada wrote:
t
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (3)
-
Brian West
-
Ken Rice
-
Mariusz Czulada