I’m using Asterisk 188.8.131.52, and I’m trying to Transfer() a call from one Asterisk server to another.
The REFER request comes in, with the correct Refer-To header- showing the correct SIP address to transfer to, but Asterisk gives me an error saying it can’t find that extension (the extension that exists on the remote server), in a local context- which is right- it doesn’t exist locally.
Why is asterisk looking for this extension in a local context, when the Refer-To header clearly points to a remote server?
My setup is like this:
Server A calls server B; server B has a dial plan
s,2,do some stuff over agi
So server B sends server A a REFER request to server C, with Refer-To: sip:firstname.lastname@example.org
Server A receives the REFER request, but then fails with:
Call email@example.com got a SIP call transfer from callee: (REFER)!
Failed SIP Transfer to non-existing extension 100 in context main
Just as a test, I add a local 100 extension on server A under the main context, and it works- but the goal is to transfer to server C, and it seem to just be ignoring the remote IP address of server C.
I’m I missing something to make this work?