[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] linphone_core_redirect_call does not parse the

From: Gautier Pelloux-Prayer
Subject: Re: [Linphone-developers] linphone_core_redirect_call does not parse the input redirect_uri; bug?
Date: Tue, 16 Feb 2016 10:15:11 +0100


I do not reproduce the error and it looks strange to me because 
linphone_core_transfer_call use linphone_core_interpret_url to interpret the 

int linphone_core_transfer_call(LinphoneCore *lc, LinphoneCall *call, const 
char *url)
        char *real_url=NULL;
        LinphoneAddress *real_parsed_url=linphone_core_interpret_url(lc,url);
        /* do stuff ... */

I did not have any error when transfering call to address@hidden:5066 using:

> call someone
> transfer address@hidden:5066

What version are you using?


Gautier Pelloux-Prayer
Software Engineer @ Belledonne Communications

> On 15 Feb 2016, at 17:55, Eugenio Bargiacchi <address@hidden> wrote:
> Hello,
> Sorry if this is a duplicate, I sent it like a minute before my confirmation 
> mail for the list arrived so I'm not sure whether my previous copy was 
> silently discarded - it seems it was though.
> Anyway, I was trying to use the command "transfer" in linphonec, but it kept 
> failing with the message:
> > 2016-02-15 16:59:15:033 ortp-error-uri parser error for address@hidden:5066]
> Turns out this fails since the address I was putting in as a redirect 
> (address@hidden:5066) does not begin with "sip:".
> However, other commands like transfer, call etc. work fine with inputs like 
> these since in those cases the arguments get parsed by 
> linphone_core_interpret_url and then to linphone_address_as_string. The 
> former uses proxy information to parse the url and additionally fixes things 
> like missing "sip:", and the latter turns it back into a char*.
> I was wondering if I should do a patch about it. My doubt comes from the fact 
> that the argument to linphone_core_redirect_call seems to be a "const char* 
> uri", while in the other cases the parameters are "url". I'm not 100% sure 
> whether there is a difference within the core between the two things (URL and 
> URI) or it just happened that the parameters were called like that.
> So are the two different? If so, would it be possible to allow transfer to 
> use addresses without "sip:" anyway?
> If they are not different I'll put a pull request to GitHub. Thanks for your 
> time.
> Best,
> Eugenio
> _______________________________________________
> Linphone-developers mailing list
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]