Hi Mark,
since you need to change only the display name, you may use the
uac_replace_from() function (see
http://openser.org/docs/modules/1.1.x/uac.html#AEN160), like:
uac_replace_from("batman","");
this will have no implication on the dialog - no need to do the same
change on the sequential requests.
and yes...probably you need to do this for each initial requests going
to the PSTN GW.
regards,
bogdan
Mark Kent wrote:
I just debugged the following:
A PSTN gateway we use is completely non-responsive when
the INVITE has this:
From: Mark Kent (desk) <sip:markkent@sip.example.com>;tag=foo
Contact: Mark Kent (desk) <sip:markkent@192.0.2.216:5060>
but things work OK for this:
From: "Mark Kent (desk)" <sip:markkent@sip.example.com>;tag=foo
Contact: "Mark Kent (desk)" <sip:markkent@192.0.2.216:5060>
and also for this:
From: Mark Kent <sip:markkent@sip.example.com>;tag=foo
Contact: Mark Kent <sip:markkent@192.0.2.216:5060>
Now, I know that the EndUser box should put quotes in there to be
safe. RFC3261 says "special characters MUST be in a quoted string to
be used within a parameter value."
But that's not the point of this post... the point is,
should I be rewriting every header? Is that standard practice?
BTW, I have the same hangup with the SJphone softphone,
but there I think it's because of this:
From: "Mark Kent(mac)"<sip:MarkKent@sip.example.com>;tag=foo
See, no space between the double-quote and the left-angle-bracket.
So, should I be re-writing headers to present a single face,
independent of the EndUser boxes, to external SIP gateways?
Thanks,
-mark
P.S. FYI, the box that is not putting in the quotes is a SPA3000
running 3.1.10(GWd). A SPA942 running 4.1.10(e) puts in the quotes.
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users