[SFLphone] Change "User-Agent" header

Thomas Alexander Ewald thomas.ewald at totvs.com.br
Fri Oct 2 07:44:15 EDT 2009


Thanks for the answer, Emmanuel!

I have another question:
I've been reading the SIP RFC (3261), and the User-Agent header is optional.
But, listening the messages between the official client and the 
corporate SIP server, every client side message has the User-Agent set. 
Probably to block any other clients.
Is the User-Agent sent in every request? ( ACK,REG,INV, etc ). If not, 
where can I change this?

Thomas

Em 01-10-2009 17:17, Emmanuel Milou escreveu:
> Hello Thomas,
>
> The only way to change to User-Agent header right now is to modify the
> source code of the daemon sflphoned.
>
> In sflphone-common/sip/sipvoiplink.cpp, look for the method
> SIPVoIPLink::get_useragent_name (). Currently it builds the user-agent
> value from the app name and the version. You may replace this value with
> whatever fits your needs.
>
> Recompile and you are done !
>
> Cheers
>
> Emmanuel
>
>
> Le jeudi 01 octobre 2009 à 17:04 -0300, Thomas Alexander Ewald a écrit :
>    
>> Hello,
>>
>> I like to use this software very much, but I have a problem.
>> My company SIP server blocks SIP client software based in the
>> User-Agent. Right now the only "authorized" client doesn't run on Wine.
>> I was trying do find in the sources where can I change to make sflphone
>> ( or sflphoned ) to send another "User-Agent" header.
>> I found that using the python client this is possible, but I didn't find
>> where to change to use the gtk client.
>> I also don't know if the sflphoned is always setting the "User-Agent"
>> header.
>> Is there a way to do this?
>> I have average programming skills, so I'm no afraid of changing code if
>> needed :-)
>>
>> Thanks!
>> --
>> Thomas Alexander Ewald
>>
>> _______________________________________________
>> SFLphone mailing list
>> SFLphone at lists.savoirfairelinux.net
>> http://lists.savoirfairelinux.net/mailman/listinfo/sflphone
>>      


More information about the SFLphone mailing list