src/protocols/simple/simple.c

changeset 13273
68a4ff81c348
parent 13201
8c224ef70efa
child 13297
b97c7fb0b6b9
equal deleted inserted replaced
13272:fd4f3356640f 13273:68a4ff81c348
1180 1180
1181 ptmp = sipmsg_find_header(msg, "Proxy-Authenticate"); 1181 ptmp = sipmsg_find_header(msg, "Proxy-Authenticate");
1182 1182
1183 fill_auth(sip, ptmp, &sip->proxy); 1183 fill_auth(sip, ptmp, &sip->proxy);
1184 auth = auth_header(sip, &sip->proxy, trans->msg->method, trans->msg->target); 1184 auth = auth_header(sip, &sip->proxy, trans->msg->method, trans->msg->target);
1185 sipmsg_remove_header(msg, "Proxy-Authorization"); 1185 sipmsg_remove_header(trans->msg, "Proxy-Authorization");
1186 sipmsg_add_header(trans->msg, "Proxy-Authorization", auth); 1186 sipmsg_add_header(trans->msg, "Proxy-Authorization", auth);
1187 g_free(auth); 1187 g_free(auth);
1188 resend = sipmsg_to_string(trans->msg); 1188 resend = sipmsg_to_string(trans->msg);
1189 /* resend request */ 1189 /* resend request */
1190 sendout_pkt(sip->gc, resend); 1190 sendout_pkt(sip->gc, resend);

mercurial