Re: [Freeswitch-users] Caller id when doing transfers
It appears from some limited testing that the original caller id is always shown when the call is transfered. Is there some way to have the person making the transfer show up as the caller id?
To answer my own question it appears that the information is available in the sip_h_Referred-By variable. E.g.: <extension name="system25_park"> <condition field="destination_number" expression="^\*5$" /> <condition field="${sip_h_Referred-By}" expression="^<sip:([0-9]{4})@.*$"> allows the station id making the transfer to be known when a call is transfered to *5. The station id can then be used to park the call in the proper fifo. -- John ------------------------------------------------------------------------- | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | -------------------------------------------------------------------------
On Thu, Jun 11, 2009 at 2:17 PM, John Wehle <john@feith.com> wrote:
It appears from some limited testing that the original caller id is always shown when the call is transfered. Is there some way to have the person making the transfer show up as the caller id?
To answer my own question it appears that the information is available in the sip_h_Referred-By variable. E.g.:
<extension name="system25_park"> <condition field="destination_number" expression="^\*5$" /> <condition field="${sip_h_Referred-By}" expression="^<sip:([0-9]{4})@.*$">
allows the station id making the transfer to be known when a call is transfered to *5. The station id can then be used to park the call in the proper fifo.
John, Would you be willing to add this wonderful knowledge to the wiki? :) Let me know if you have any questions about where/how to add it and we'll come up with something. -MC
It does if you do a blind transfer... if you're talking attended transfers thats a whole different ball of wax... /b On Jun 11, 2009, at 4:17 PM, John Wehle wrote:
It appears from some limited testing that the original caller id is always shown when the call is transfered. Is there some way to have the person making the transfer show up as the caller id?
To answer my own question it appears that the information is available in the sip_h_Referred-By variable. E.g.:
<extension name="system25_park"> <condition field="destination_number" expression="^\*5$" /> <condition field="${sip_h_Referred-By}" expression="^<sip:([0-9] {4})@.*$">
allows the station id making the transfer to be known when a call is transfered to *5. The station id can then be used to park the call in the proper fifo.
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
participants (3)
-
Brian West
-
John Wehle
-
Michael Collins