# \[HELP\] Transfer && REFER

**URL:** <https://community.asterisk.org/t/help-transfer-refer/2722>\
**Category:** Asterisk Support\
**Created:** [November 25, 2005, 4:06pm UTC](https://community.asterisk.org/t/help-transfer-refer/2722 "2005-11-25T16:06:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexis.fecourt](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@alexis.fecourt](https://community.asterisk.org/u/alexis.fecourt)\
**Post date:** [November 25, 2005, 4:06pm UTC](https://community.asterisk.org/t/help-transfer-refer/2722/1 "2005-11-25T16:06:05Z")

</div>

Hi,

I don’t understand the REFER SIP message…

extensions.conf:  
[default]  
exten =\> 9001,1,Answer  
exten =\> 9001,2,Transfer(9000)  
exten =\> 9001,3,Wait(10)  
exten =\> 9001,4,Hangup

sip.conf:  
[general]  
realm=ASTERISK\_IP

When I dial 9001 with a soft phone (SJphone, X-lite, or Phoner) the REFER paquet which is send by Asterisk contains a Refer-to: sip:9000@BAD\_IP

I mean by BAD\_IP, the IP that I configure in the realm field of my soft phone.

For exemple if I configure my Phoner with realm=tartinette, Phoner will received from Asterisk a Refer-to: sip:9000@tartinette.

I think that I should received a Refer-to: sip:9000@ASTERISK\_IP !

What the issue is ?  
Is there a way to use ${TRANSFER\_CONTEXT} ?

Please help me.

Alexis.

---

<div class="post-metadata">

**Author:** ![alexis.fecourt](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@alexis.fecourt](https://community.asterisk.org/u/alexis.fecourt)\
**Post date:** [November 29, 2005, 5:56pm UTC](https://community.asterisk.org/t/help-transfer-refer/2722/2 "2005-11-29T17:56:17Z")

</div>

Now an other problem : on the refer an INVITE is send to 9000@asterisk but asterisk replies an 200 OK with in the field contact : 9001 !!!

Any suggestion ?
