Hi, i've some trouble with an * installation when the following scenario happen. 1) Inbound call to SIP/xxxxxxxxxxxx ; 2) Call is redirected to ring group 6xx 3) SIP extension 1xx answer. 4) caller want to speak with john doe on his mobile 5) assistant put caller on hold 6) assistant start a call to john doe mobile using a php script (AMI - Originate with custom context to force outbound trunk) 7) if john doe want to speak with caller assistant bridge the two lines using the transfer function of GXP2000 phone (REFER). After the transfer in the CDR i can't see the callerid of the caller, only data of the bridged call is reported. Any idea on what i can do to keep it ? thanks lechuck
Philipp von Klitzing
2010-Jul-27 17:44 UTC
[asterisk-users] CallerID disappear from CDR on transfer
Hi!> 7) if john doe want to speak with caller assistant bridge the two > lines using the transfer function of GXP2000 phone (REFER). > > After the transfer in the CDR i can't see the callerid of the caller, > only data of the bridged call is reported. > > Any idea on what i can do to keep it ?Either store the Caller ID somewhere using your PHP script and then later add it to the CDR data of the other call, or look at at ImportVAR() or the SHARED() function (of which Tilghman has made a 1.4 backport available). In either case you will need to do some matching magic to logically link the two calls, maybe with the help of BRIDGEPEER. Possibly there are some transfer specific channel variables that can help you with that (like BLINDTRANSFER or TRANSFERSTATUS). This depends on your Asterisk version, though. Anyway, since you already determined where to transfer the call to that matching should not really be an issue. Philipp
Vardan Harutyunyan
2010-Jul-27 19:09 UTC
[asterisk-users] CallerID disappear from CDR on transfer
Try to use local channel, and the pass the callerid of the caller to the local channel, an the later put this in CDR using h extention. -- Vardan Harutyunyan, Senior System Administrator Enterprise Incubator Foundation 123 Hovsep Emin Street, Yerevan 0051, Republic of Armenia Tel: + 374 10 219735 Fax: + 374 10 219777 E-mail: info at eif.am www.eif-it.com lechuck wrote:> Hi, i've some trouble with an * installation when the following scenario > happen. > > 1) Inbound call to SIP/xxxxxxxxxxxx ; > 2) Call is redirected to ring group 6xx > 3) SIP extension 1xx answer. > 4) caller want to speak with john doe on his mobile > 5) assistant put caller on hold > 6) assistant start a call to john doe mobile using a php script (AMI - > Originate with custom context to force outbound trunk) > 7) if john doe want to speak with caller assistant bridge the two lines > using the transfer function of GXP2000 phone (REFER). > > After the transfer in the CDR i can't see the callerid of the caller, > only data of the bridged call is reported. > > Any idea on what i can do to keep it ? > > > thanks > lechuck >