trying a simple blind transfer on incoming call, but i get error below? what am i doing wrong?
6000 is calling to 123 and i want to blind transfer to an linhome extension
[Feb 19 10:53:13] WARNING[399]: chan_pjsip.c:1916 transfer_redirect: Failed to parse destination URI 'outgoing-flexisip/sip:xxx@sip.linhome.org' for channel PJSIP/6000-00000001
[Feb 19 10:53:13] -- Auto fallthrough, channel 'PJSIP/6000-00000001' status is 'UNKNOWN'
Transfer always uses the incoming session, so doesn’t need to know the end point and the technology, if supplied, is only used to prevent transfers on inappropriate ones.
[Feb 19 14:05:55] NOTICE[397]: res_pjsip_session.c:3980 new_invite: 6000: Call (UDP:192.168.0.232:5060) to extension 'xxx' rejected because extension not found in context 'default'.
The softphone probably doesn’t know how to send calls other than through Asterisk, so ignores the domain name. (More specifically, Asterisk may be the phones outbound proxy and Asterisk normally ignores domain names and assumes all requests are aimed at it.
Why are you even trying to do it? You would need to provide all the credentials to the phone in order for it to successfully initiate a direct call to the provider. In any case, that is a question about the phone.
If you are going to go through Asterisk anyway, there is no point in doing the transfer, so even to the extent that it might be possible to have Asterisk distinguish between local and remote domains, there would appear to be no point in doing anything other than connecting directly to the new destination.
Dial initiates a call from Asterisk to Linhome. Transfer attempts to initiate a call from the softphone to Linhome, but it looks like the softphone is configured (or hard coded) to send all calls via an outbound proxy, which is Asterisk, so it sends the call back to Asterisk, but Asterisk has no extension defined for calls to xxx, or at least not in the context in which the softphone is making the call.
In any case, the only way that Asterisk could handle that call would be to issue a DIal() command, so, again, one has to ask the question why are you going through the phone, when you could directly issue the Dial command.