Hi,
here is another patch that enables, at least for me;-), the possibility
to authenticate with the sip proxy of web.de.
My problem is that I get call requests, it rings, but when I accept the
call there is no sound just:
| INFO1 | <udp.c: 2011> This is a request
| INFO1 | <eXosip.c: 273> eXosip: Reseting timer to 15s before
waking up!
LinphoneCore-Message: CALL_ACK
| INFO1 | <udp.c: 1992> Received message:
| ERROR | <osip_message_parse.c: 816> Could not parse start line
of message.
| ERROR | <osip_event.c: 73> could not parse message
| ERROR | <udp.c: 2027> Could not parse SIP message
| INFO1 | <eXosip.c: 273> eXosip: Reseting timer to 15s before
waking up!
| INFO1 | <udp.c: 1992> Received message:
...
Another problem is that I somehow cannot establish a connection myself.
In version 0.12.2 I could specify [EMAIL PROTECTED] and it worked, but now
it is trying to connect until i abort. And when choosing sip.web.de
instead it gives me after patching a Bad Request (before it crashed).
PS: In the Preferences dialog for sip it should a registration should
not be made when one opens the edit dialog but rather when the ok_button
is pressed in the edit dialog.
MfG
Tobias
Am Freitag, den 15.10.2004, 10:58 +0200 schrieb Simon MORLAT:
> Hello,
>
> The pre2 tarball I've uploaded last week didn't compile properly, so
> I've just uploaded a new 1.0.0pre3 tarball that works for me.
> It brings some improvements, especially for the console version, for
> which it's no more necessary to write a config file to startup and to do
> things like proxy registration.
> Enjoy and send me feedback if you wish.
> Still not tested: proxy and www authentication. If somebody can do that,
> I'll be very pleased !
>
> Simon
>
>
> _______________________________________________
> Linphone-developers mailing list
> [EMAIL PROTECTED]
> http://lists.nongnu.org/mailman/listinfo/linphone-developers
--
Tobias Gehrig <[EMAIL PROTECTED]>
Universität Karlsruhe - Fakultät für Informatik
--- tmp/linphone-1.0.0pre3/coreapi/linphonecore.c 2004-10-13 16:16:32.000000000 +0200
+++ linphone-1.0.0pre3/coreapi/linphonecore.c 2004-10-19 04:20:08.000000000 +0200
@@ -468,6 +468,15 @@
break;
}
}
+
+ for(i=0;; i++){
+ LinphoneAuthInfo *info=linphone_auth_info_new_from_config_file(i);
+ if (info!=NULL){
+ linphone_core_add_auth_info(lc, info);
+ }else{
+ break;
+ }
+ }
}
void rtp_config_read(LinphoneCore *lc)
--- tmp/linphone-1.0.0pre3/coreapi/authentication.c 2004-09-22 13:53:33.000000000 +0200
+++ linphone-1.0.0pre3/coreapi/authentication.c 2004-10-19 05:57:09.000000000 +0200
@@ -253,7 +253,7 @@
resp=reg->r_last_tr->last_response;
g_return_if_fail(resp!=NULL);
- cfg=linphone_core_get_proxy_config_from_rid(lc,ev->rid);
+ cfg=linphone_core_get_proxy_config_from_rid(lc,ev->rid-1);
g_return_if_fail(cfg!=NULL);
if (linphone_process_authentication(lc,resp,cfg,cfg->auth_pending)){
/* we have the information, so retry the register */
--- tmp/linphone-1.0.0pre3/coreapi/osipuacb.c 2004-10-13 16:54:42.000000000 +0200
+++ linphone-1.0.0pre3/coreapi/osipuacb.c 2004-10-19 05:07:45.000000000 +0200
@@ -118,7 +118,7 @@
{
case 401:
case 407:
- linphone_invite_authentication_required(lc,cid);
+ linphone_invite_authentication_required(lc,lc->call);
case 400:
lc->vtable.display_status(lc,_("Bad request"));
break;
@@ -590,7 +590,7 @@
gchar *msg=g_strdup_printf(_("Registration on %s sucessful."),ev->req_uri);
lc->vtable.display_status(lc,msg);
g_free(msg);
- cfg=linphone_core_get_proxy_config_from_rid(lc,ev->rid);
+ cfg=linphone_core_get_proxy_config_from_rid(lc,ev->rid-1);
g_return_if_fail(cfg!=NULL);
cfg->auth_pending=FALSE;
}
--- tmp/linphone-1.0.0pre3/exosip/src/eXosip.c 2004-09-17 13:42:51.000000000 +0200
+++ linphone-1.0.0pre3/exosip/src/eXosip.c 2004-10-19 06:20:59.000000000 +0200
@@ -1892,7 +1892,7 @@
{
fallback = authinfo;
}
- else if (0==strncmp(realm+1, authinfo->realm, strlen(realm)-2))
+ else if (0==strncmp(realm, authinfo->realm, strlen(realm)))
{
return authinfo;
}
--- tmp/linphone-1.0.0pre3/gnome/callbacks.c 2004-10-09 12:29:58.000000000 +0200
+++ linphone-1.0.0pre3/gnome/callbacks.c 2004-10-19 04:05:49.000000000 +0200
@@ -469,11 +469,13 @@
{
gchar *realm,*username,*userid,*passwd;
LinphoneAuthInfo *info;
+ LinphoneCore *lc=get_core();
realm=gtk_editable_get_chars(GTK_EDITABLE(lookup_widget(w,"realm")),0,-1);
username=gtk_editable_get_chars(GTK_EDITABLE(lookup_widget(w,"username")),0,-1);
userid=gtk_editable_get_chars(GTK_EDITABLE(lookup_widget(w,"userid")),0,-1);
passwd=gtk_editable_get_chars(GTK_EDITABLE(lookup_widget(w,"passwd")),0,-1);
info=linphone_auth_info_new(username,userid,passwd,NULL,realm);
+ linphone_core_add_auth_info(lc, info);
g_free(username);
g_free(userid);
g_free(passwd);
--- tmp/linphone-1.0.0pre3/gnome/linphone.c 2004-07-29 11:32:39.000000000 +0200
+++ linphone-1.0.0pre3/gnome/linphone.c 2004-10-19 17:07:12.000000000 +0200
@@ -241,12 +241,14 @@
void proxy_changed(GtkWidget *combo){
LinphoneProxyConfig *pcfg=proxy_combo_box_get_selected(combo);
+ LinphoneCore *lc=get_core();
if (pcfg==NULL){
g_message("No proxy to use.");
get_uiobj()->pcfg=NULL;
}else{
g_message("Proxy to be used is %s",pcfg->reg_proxy);
get_uiobj()->pcfg=pcfg;
+ linphone_proxy_config_apply(pcfg, lc);
}
}
_______________________________________________
Linphone-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/linphone-users
_______________________________________________
Linphone-developers mailing list
[EMAIL PROTECTED]
http://lists.nongnu.org/mailman/listinfo/linphone-developers