[asterisk-dev] Update caller information on SIP REFER

Andrew Latham lathama at gmail.com
Fri Aug 26 07:51:59 CDT 2011


On Fri, Aug 26, 2011 at 8:35 AM, Gunnar <linux at nowin.de> wrote:
> When doing an attended transfer with function keys on phones (SIP
> REFER) and not using Asterisk functions for attended transfer the
> caller information doesn't get updated. This has been discussed on
> many places, but I want to start again (cause it seems trivial to me).
>
> A calls B
> B put A on hold
> B calls C
> B connects A and C with SIP REFER
>
> Result: A and C have the caller information of B on the display.
>
> There is a function update_connectedline in chan_sip.c. It calls
> function add_rpid on a successful transfer. So A and C get's an invite
> with "Remote-Party-ID" header.
> For testing I modified add_rpid function so it adds an additional
> "P-Asserted-Identity" header after adding "Remote-Party-ID". After
> this change I see on phone A the caller information of C and on phone
> C the caller information of A! Tested with snom and Aastra phone.
> Trivial change, but a bad hack I think. Every time a "Remote-Party-ID"
> is added I have the "P-Asserted-Identity". Maybe not the best
> behaviour in all situations ...
> I'm not a big programmer in Asterisk, but my point of view is this:
> Change function update_connectedline and set a flag. In function
> add_rpid check this flag. If set add additional "P-Asserted-Identity"
> header.
>
> Anyone? Suggestions?
>
>
> Regards,
> Gunnar

Explanation and examples here
https://wiki.asterisk.org/wiki/display/AST/Manipulating+Party+ID+Information
this is new in 1.8


-- 
~ Andrew "lathama" Latham lathama at gmail.com http://lathama.net ~



More information about the asterisk-dev mailing list