View previous topic :: View next topic |
Author |
Message |
john at feith.com Guest
|
Posted: Mon Jun 08, 2009 7:42 pm Post subject: [Freeswitch-users] Caller id when doing transfers |
|
|
Consider the following sequence:
1) Outside caller (OC) calls Ext 1001 Caller id shows OC
2) Ext 1001 transfers the call to Ext 1002 In some cases we want the
caller id to shows OC, in other
cases we want the caller id
to show Ext 1001.
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?
Our application is I want to setup an extension (*5) which automatically
places calls into a fifo corresponding to the Extension number of the
person transferring the call. This will provide park capability similar
to that of our old System 25 PBX. I'll then setup an extension (*8<fifo>)
which picks up the call at the front of the fifo "fifo".
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
john at feith.com Guest
|
Posted: Thu Jun 11, 2009 4:18 pm Post subject: [Freeswitch-users] Caller id when doing transfers |
|
|
Quote: | 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 | |
-------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Thu Jun 11, 2009 4:23 pm Post subject: [Freeswitch-users] Caller id when doing transfers |
|
|
On Thu, Jun 11, 2009 at 2:17 PM, John Wehle <john@feith.com (john@feith.com)> wrote:
Quote: | > It appears from some limited testing that the original caller id is always
Quote: | 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 |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Jun 11, 2009 4:27 pm Post subject: [Freeswitch-users] Caller id when doing transfers |
|
|
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:
Quote: | Quote: | 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="^<[url=sip:(]sip:([/url][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 (brian@freeswitch.org)
-- Meet us at ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
|