| 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); |