[SFLphone] Change "User-Agent" header

Emmanuel Milou emmanuel.milou at savoirfairelinux.com
Thu Oct 1 16:17:06 EDT 2009


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
-- 
Emmanuel Milou
Consultant en Logiciel Libre
Savoir-Faire Linux Inc.
emmanuel.milou at savoirfairelinux.com
514-276-5468 poste 136
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Ceci est une partie de message
 =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.savoirfairelinux.net/pipermail/sflphone/attachments/20091001/06a0a443/attachment.pgp 


More information about the SFLphone mailing list