[Freeswitch-users] COLP using To: Header

Markus Lindenberg markus.lindenberg at gmail.com
Tue Feb 21 22:25:49 MSK 2012


Hi everybody,

it seems some phones (Snom at least) support COLP (connected line
update) in ringing phase by having the To:-header changed in the 180
ringing to a-pty. Snom have a nice detailed illustration on their
wiki: http://wiki.snom.com/Category:Connected_Line_Identification_Presentation_(COLP)

So if Fritz (111) calls Hans (222):

INVITE sip:222 at myshop
From: "Fritz" <sip:111 at myshop>...
To: <sip:222 at myshop>...

The response sent to 111 should look something like this:

SIP/2.0 180 Ringing
From: "Fritz" <sip:111 at myshop>...
To: "Hans" <sip:222 at myshop>...

So basically i suppose i want freeswitch to stuff a
effective_caller_id_name (if set) into the To: header in the a-leg,
given somthing like the following dialplan snippet:

<action application="export"
data="effective_callee_id_number=${user_data(${dialed_extension}@${domain_name}
var effective_caller_id_number)}"/>
<action application="export"
data="effective_callee_id_name=${user_data(${dialed_extension}@${domain_name}
var effective_caller_id_name)}"/>
<action application="bridge" data="user/${dialed_extension}@${domain_name}"/>

Is this possible?

Thanks,

Markus



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list