<div>Oviedo,</div>
<div>&nbsp;</div>
<div>Your PSTN gateway is not accepting calls from SER. You have to make sure your PSTN gateway trust your SER.</div>
<div>&nbsp;</div>
<div>Note: I assumed that your SER to SER calls are working.</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Ali....<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 8/28/06, <b class="gmail_sendername">Javier Oviedo</b> &lt;<a href="mailto:joviedo@plcendesa.com">joviedo@plcendesa.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div bgcolor="#ffffff" text="#000000">Hi all<br><br>In my network schema I have a Sip Express Router to authenticate my outbound calls to a PSTN. I add a new equipment to a ser with &quot;serctl add user pass e-mail&quot; command. My softphone is registered in proxy but when I make a call to a PSTN I obtain the following error:&nbsp; 
<b>Call rejected: 407 Proxy Authentication Rquired </b>:<br><br>I use the SJPhone software.<br><br>Any idea about where is the problem<br><br>Thanks in advance<br>Joe<br><br>My ser configuration is:<br><br>debug=3<br>fork=no
<br>log_stderror=yes<br><br>port=5060<br>children=4<br><br>dns=no<br>rev_dns=no<br>fifo=&quot;/tmp/ser_fifo&quot;<br>fifo_db_url=&quot;mysql://ser:heslo@localhost/ser&quot;<br><br>loadmodule &quot;/usr/local/lib/ser/modules/mysql.so&quot;
<br>loadmodule &quot;/usr/local/lib/ser/modules/sl.so&quot;<br>loadmodule &quot;/usr/local/lib/ser/modules/tm.so&quot;<br>loadmodule &quot;/usr/local/lib/ser/modules/rr.so&quot;<br>loadmodule &quot;/usr/local/lib/ser/modules/maxfwd.so&quot;
<br>loadmodule &quot;/usr/local/lib/ser/modules/usrloc.so&quot;<br>loadmodule &quot;/usr/local/lib/ser/modules/registrar.so&quot;<br>loadmodule &quot;/usr/local/lib/ser/modules/auth.so&quot;<br>loadmodule &quot;/usr/local/lib/ser/modules/auth_db.so&quot;
<br>loadmodule &quot;/usr/local/lib/ser/modules/uri_db.so&quot;<br><br>modparam(&quot;auth_db|uri_db|usrloc&quot;, &quot;db_url&quot;, &quot;mysql://ser:heslo@localhost/ser&quot;)<br>modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, 1)
<br>modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)<br>modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)<br><br>route {<br><br>
&nbsp; # -----------------------------------------------------------------<br>&nbsp; # Sanity Check Section<br>&nbsp; # -----------------------------------------------------------------<br>&nbsp; if (!mf_process_maxfwd_header(&quot;10&quot;)) {
<br>&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;483&quot;, &quot;Too Many Hops&quot;);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; };<br><br>&nbsp;if (msg:len &gt; max_len) {<br>&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;513&quot;, &quot;Message Overflow&quot;);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; };<br><br>
&nbsp; # -----------------------------------------------------------------<br>&nbsp; # Record Route Section<br>&nbsp; # -----------------------------------------------------------------<br>&nbsp; if (method!=&quot;REGISTER&quot;) {<br>&nbsp;&nbsp;&nbsp; record_route();
<br>&nbsp; };<br><br>&nbsp; # -----------------------------------------------------------------<br>&nbsp; # Loose Route Section<br>&nbsp; # -----------------------------------------------------------------<br>&nbsp; if (loose_route()) {<br>&nbsp;&nbsp;&nbsp; route(1);
<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; };<br><br>&nbsp; # -----------------------------------------------------------------<br>&nbsp; # Call Type Processing Section<br>&nbsp; # -----------------------------------------------------------------<br>&nbsp; if (uri!=myself) {
<br>&nbsp;&nbsp;&nbsp; route(1);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; };<br><br>&nbsp; if (method==&quot;ACK&quot;) {<br>&nbsp;&nbsp;&nbsp; route(1);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; } if (method==&quot;INVITE&quot;) {<br>&nbsp;&nbsp;&nbsp; route(3);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; } else&nbsp; if (method==&quot;REGISTER&quot;) {
<br>&nbsp;&nbsp;&nbsp; route(2);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; };<br><br>&nbsp; lookup(&quot;aliases&quot;);<br><br>&nbsp;if (uri!=myself) {<br>&nbsp;&nbsp;&nbsp; route(1);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; };<br><br>&nbsp; if (!lookup(&quot;location&quot;)) {<br>&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;404&quot;, &quot;User Not Found&quot;);
<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; };<br><br>&nbsp; route(1);<br>}<br><br>route[1] {<br><br>&nbsp; # -----------------------------------------------------------------<br>&nbsp; # Default Message Handler<br>&nbsp; # -----------------------------------------------------------------
<br>&nbsp; if (!t_relay()) {<br>&nbsp;&nbsp;&nbsp; sl_reply_error();<br>&nbsp; };<br>}<br><br>route[2] {<br><br>&nbsp; # -----------------------------------------------------------------<br>&nbsp; # REGISTER Message Handler<br>&nbsp; # ----------------------------------------------------------------
<br>&nbsp; sl_send_reply(&quot;100&quot;, &quot;Trying&quot;);<br><br>&nbsp; if (!www_authorize(&quot;localhost&quot;,&quot;subscriber&quot;)) {<br>&nbsp;&nbsp;&nbsp; www_challenge(&quot;localhost&quot;,&quot;0&quot;);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; };<br><br>
&nbsp; if (!check_to()) {<br>&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;401&quot;, &quot;Unauthorized&quot;);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; };<br><br>&nbsp; consume_credentials();<br><br>&nbsp; if (!save(&quot;location&quot;)) {<br>&nbsp;&nbsp;&nbsp; sl_reply_error();<br>&nbsp; };<br>}
<br><br>route[3] {<br>&nbsp; # -----------------------------------------------------------------<br>&nbsp; # INVITE Message Handler<br>&nbsp; # -----------------------------------------------------------------<br>&nbsp; if (!proxy_authorize(&quot;localhost&quot;,&quot;subscriber&quot;)) {
<br>&nbsp;&nbsp;&nbsp; proxy_challenge(&quot;localhost&quot;,&quot;0&quot;);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; } else if (!check_from()) {<br>&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;403&quot;, &quot;Use From=ID&quot;);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; };<br><br>&nbsp; consume_credentials();
<br><br>&nbsp; lookup(&quot;aliases&quot;);<br>&nbsp; if (uri!=myself) {<br>&nbsp;&nbsp;&nbsp; route(1);<br>&nbsp;&nbsp;&nbsp; break;<br>&nbsp; };<br><br>&nbsp; #if (!lookup(&quot;location&quot;)) {<br>&nbsp; #&nbsp; sl_send_reply(&quot;404&quot;, &quot;User Not Found&quot;);<br>&nbsp; #&nbsp; break;
<br>&nbsp; #};<br><br>&nbsp; route(1);<br>}<br><br><br><br>SoftPhone LOG:<br><br>17:04:43.1 <br>SENDING TO: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.110.0.127:5060/" target="_blank">10.110.0.127:5060
</a><br>INVITE <a>sip:313812@sipserver.es</a> SIP/2.0<br>To: <a>&lt;sip:313812@sipserver.es&gt;</a><br>From: Joe<a>&lt;sip:313813@sipserver.es&gt;</a>;tag=52710612<br>Via: SIP/2.0/UDP <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138:9528/" target="_blank">
172.25.97.138:9528</a>;branch=z9hG4bK-d87543-366872507-1--d87543-;rport<br>Call-ID: fc7b726c6545d126<br>CSeq: 1 INVITE<br>Contact: <a>&lt;sip:313813@172.25.97.138:9528&gt;</a><br>Max-Forwards: 70<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
<br>Content-Type: application/sdp<br>User-Agent: eyeBeam release 3004t stamp 16741<br>Content-Length: 274<br><br>v=0<br>o=- 32759240 32759303 IN IP4 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138/" target="_blank">
172.25.97.138</a><br>s=eyeBeam<br>c=IN IP4 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138/" target="_blank">172.25.97.138</a><br>t=0 0<br>m=audio 7262 RTP/AVP 100 6 0 8 3 18 5 101<br>
a=alt:1 1 : 8013E837 DD8642E8 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138/" target="_blank">172.25.97.138</a> 7262<br>a=fmtp:101 0-15<br>a=rtpmap:100 speex/16000<br>a=rtpmap:101 telephone-event/8000
<br>a=sendrecv<br><br>17:04:43.1 <br>RECEIVING FROM: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.110.0.127:5060/" target="_blank">10.110.0.127:5060</a><br>SIP/2.0 407 Proxy Authentication Required
<br>To: <a>&lt;sip:313812@sipserver.es&gt;</a>;tag=ae8ae6963bd737be6ef2befd1ceaf249.3909<br>From: Joe<a>&lt;sip:313813@sipserver.es&gt;</a>;tag=52710612<br>Via: SIP/2.0/UDP <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138:9528/" target="_blank">
172.25.97.138:9528</a>;branch=z9hG4bK-d87543-366872507-1--d87543-;rport=9528<br>Call-ID: fc7b726c6545d126<br>CSeq: 1 INVITE<br>Proxy-Authenticate: Digest realm=&quot;localhost&quot;, nonce=&quot;44f307373cf9fb29da3028442e23f976513fc91d&quot;
<br>Server: Sip EXpress router (0.9.6 (i386/linux))<br>Content-Length: 0<br>Warning: 392 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.110.0.127:5060/" target="_blank">10.110.0.127:5060</a> &quot;Noisy feedback tells:&nbsp; pid=7865 req_src_ip=
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138/" target="_blank">172.25.97.138</a> req_src_port=9528 in_uri=<a>sip:313812@sipserver.es</a> out_uri=<a>sip:313812@sipserver.es</a> via_cnt==1&quot;
<br><br><br>17:04:43.1 <br>SENDING TO: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.110.0.127:5060/" target="_blank">10.110.0.127:5060</a><br>ACK <a>sip:313812@sipserver.es</a> SIP/2.0<br>To: 
<a>&lt;sip:313812@sipserver.es&gt;</a>;tag=ae8ae6963bd737be6ef2befd1ceaf249.3909<br>From: Joe<a>&lt;sip:313813@sipserver.es&gt;</a>;tag=52710612<br>Via: SIP/2.0/UDP <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138:9528/" target="_blank">
172.25.97.138:9528</a>;branch=z9hG4bK-d87543-366872507-1--d87543-;rport<br>Call-ID: fc7b726c6545d126<br>CSeq: 1 ACK<br>Content-Length: 0<br><br><br>17:04:43.1 <br>SENDING TO: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.110.0.127:5060/" target="_blank">
10.110.0.127:5060</a><br>INVITE <a>sip:313812@sipserver.es</a> SIP/2.0<br>To: <a>&lt;sip:313812@sipserver.es&gt;</a><br>From: Joe<a>&lt;sip:313813@sipserver.es&gt;</a>;tag=52710612<br>Via: SIP/2.0/UDP <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138:9528/" target="_blank">
172.25.97.138:9528</a>;branch=z9hG4bK-d87543-736589046-1--d87543-;rport<br>Call-ID: fc7b726c6545d126<br>CSeq: 2 INVITE<br>Contact: <a>&lt;sip:313813@172.25.97.138:9528&gt;</a><br>Max-Forwards: 70<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
<br>Content-Type: application/sdp<br>Proxy-Authorization: Digest username=&quot;313813&quot;,realm=&quot;localhost&quot;,nonce=&quot;44f307373cf9fb29da3028442e23f976513fc91d&quot;,uri=<a>&quot;sip:313812@sipserver.es&quot;
</a>,response=&quot;bfd77c8cdc1066487b170b19e1e0fe61&quot;,algorithm=MD5<br>User-Agent: eyeBeam release 3004t stamp 16741<br>Content-Length: 274<br><br>v=0<br>o=- 32759240 32759303 IN IP4 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138/" target="_blank">
172.25.97.138</a><br>s=eyeBeam<br>c=IN IP4 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138/" target="_blank">172.25.97.138</a><br>t=0 0<br>m=audio 7262 RTP/AVP 100 6 0 8 3 18 5 101<br>
a=alt:1 1 : 8013E837 DD8642E8 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138/" target="_blank">172.25.97.138</a> 7262<br>a=fmtp:101 0-15<br>a=rtpmap:100 speex/16000<br>a=rtpmap:101 telephone-event/8000
<br>a=sendrecv<br><br>17:04:43.1 <br>RECEIVING FROM: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.110.0.127:5060/" target="_blank">10.110.0.127:5060</a><br>SIP/2.0 100 trying -- your call is important to us
<br>To: <a>&lt;sip:313812@sipserver.es&gt;</a><br>From: Joe<a>&lt;sip:313813@sipserver.es&gt;</a>;tag=52710612<br>Via: SIP/2.0/UDP <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138:9528/" target="_blank">
172.25.97.138:9528</a>;branch=z9hG4bK-d87543-736589046-1--d87543-;rport=9528<br>Call-ID: fc7b726c6545d126<br>CSeq: 2 INVITE<br>Server: Sip EXpress router (0.9.6 (i386/linux))<br>Content-Length: 0<br>Warning: 392 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.110.0.127:5060/" target="_blank">
10.110.0.127:5060</a> &quot;Noisy feedback tells:&nbsp; pid=7865 req_src_ip=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138/" target="_blank">172.25.97.138</a> req_src_port=9528 in_uri=<a>sip:313812@sipserver.es
</a> out_uri=<a>sip:313812@sipserver.es</a> via_cnt==1&quot;<br><br><br>17:04:43.1 <br>RECEIVING FROM: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.110.0.127:5060/" target="_blank">10.110.0.127:5060
</a><br>SIP/2.0 407 Proxy Authentication Required<br>To: <a>&lt;sip:313812@sipserver.es&gt;</a>;tag=ae8ae6963bd737be6ef2befd1ceaf249.fcd1<br>From: Joe<a>&lt;sip:313813@sipserver.es&gt;</a>;tag=52710612<br>Via: SIP/2.0/UDP 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138:9528/" target="_blank">172.25.97.138:9528</a>;branch=z9hG4bK-d87543-736589046-1--d87543-;rport=9528<br>Call-ID: fc7b726c6545d126<br>CSeq: 2 INVITE
<br>Proxy-Authenticate: Digest realm=&quot;localhost&quot;, nonce=&quot;44f307373cf9fb29da3028442e23f976513fc91d&quot;<br>Server: Sip EXpress router (0.9.6 (i386/linux))<br>Content-Length: 0<br>Warning: 392 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.110.0.127:5060/" target="_blank">
10.110.0.127:5060</a> &quot;Noisy feedback tells:&nbsp; pid=7865 req_src_ip=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.110.0.127/" target="_blank">10.110.0.127</a> req_src_port=5060 in_uri=<a>sip:313812@sipserver.es
</a> out_uri=<a>sip:313812@sipserver.es</a> via_cnt==2&quot;<br><br><br>17:04:43.1 <br>SENDING TO: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.110.0.127:5060/" target="_blank">10.110.0.127:5060
</a><br>ACK <a>sip:313812@sipserver.es</a> SIP/2.0<br>To: <a>&lt;sip:313812@sipserver.es&gt;</a>;tag=ae8ae6963bd737be6ef2befd1ceaf249.fcd1<br>From: Joe<a>&lt;sip:313813@sipserver.es&gt;</a>;tag=52710612<br>Via: SIP/2.0/UDP 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://172.25.97.138:9528/" target="_blank">172.25.97.138:9528</a>;branch=z9hG4bK-d87543-736589046-1--d87543-;rport<br>Call-ID: fc7b726c6545d126<br>CSeq: 2 ACK
<br>Content-Length: 0<br><br><br>17:04:43.2 Call (l:'Joe' r:'<a>sip:313812@sipserver.es</a>') - Call being terminated. Reasons: &quot;Proxy Authentication Required&quot;, (code: 407)<br><br>&nbsp;</div></div><br>_______________________________________________
<br>Serusers mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank">
http://lists.iptel.org/mailman/listinfo/serusers</a><br><br><br></blockquote></div><br>