I'm doing a SIP REFER transfer in TCL using the following:
set callInfo(originationNum) 1112223333
set callInfo(mode) "REDIRECT"
leg setup $dnisValue callInfo $incoming
Assuming dnisValue is 2223334444 for illustration purposes.
This works, in that the gateway sends a REFER message, with the REFER-to field being the dnis in the $dnisValue variable.
024410: May 3 11:25:09.360 EDT: //0/000000000000/SIP/Msg/ccsipDisplayMsg:
Sent:
REFER sip:2223334444@x.x.x.x:5060 SIP/2.0
<snip>
Refer-To: sip:2223334444@x.x.x.x
The problem is that the "x.x.x.x" (host portion of the refer-to) is the egress interface of the same gateway, instead of the carrier IP. The carrier is receiving the REFER, accepting it, then sending the call back to the gateway (since the x.x.x.x IP is the gateway.)
Is there a way to specify the host portion of the refer-to when doing the transfer via TCL? I would think it would be in callInfo if it is able to be set..
Thanks!