<div>Thanks for Harry and Greger.</div>
<div> </div>
<div>Then, I test incoming and outgoing call for capture SIP messages by cisco as 5300.</div>
<div> </div>
<div>
<p>Feb 6 11:54:45.028: Received: <br>INVITE sip:056708077771111@MY.AS5300.IP.ADDRESS:5060 SIP/2.0<br>Record-Route: <sip:MY.SER.IP.ADDRESS;ftag=as2deea38f;lr=on><br>Via: SIP/2.0/UDP MY.SER.IP.ADDRESS;branch=z9hG4bK2b5e.7cc1de11.0
<br>Via: SIP/2.0/UDP MY.ASTERISK.IP.ADDRESS:5060;branch=z9hG4bK687f6fc7;rport=5060<br>From: "12" <<a href="mailto:sip:0355558888@srv5.agile.ne.jp">sip:0355558888@srv5.agile.ne.jp</a>>;tag=as2deea38f<br>To: <
<a href="mailto:sip:08077771111@MY.SER.IP.ADDRESS">sip:08077771111@MY.SER.IP.ADDRESS</a>><br>Contact: <<a href="mailto:sip:0355558888@MY.ASTERISK.IP.ADDRESS">sip:0355558888@MY.ASTERISK.IP.ADDRESS</a>><br>Call-ID:
<a href="mailto:089003277f7ea22d113bd56b186b6bc1@MY.SER.IP.ADDRESS">089003277f7ea22d113bd56b186b6bc1@MY.SER.IP.ADDRESS</a><br>CSeq: 103 INVITE<br>User-Agent: Asterisk<br>Max-Forwards: 16<br>Remote-Party-ID: "12" <
<a href="mailto:sip:0355558888@MY.SER.IP.ADDRESS">sip:0355558888@MY.SER.IP.ADDRESS</a>>;privacy=off;screen=no<br>Date: Tue, 06 Feb 2007 11:54:45 GMT<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
<br>Content-Type: application/sdp<br>Content-Length: 222<br>(From: "12" is an UA registered on Asterisk)</p>
<p>And I found it.</p>
<p>Via: SIP/2.0/UDP MY.SER.IP.ADDRESS;branch=z9hG4bK2b5e.7cc1de11.0</p>
<p>Why SER Via haven't port (5060) number or rport ?<br>(Asterisk Via have port number and rport)<br><br>Thanks,</p>
<p>Sahria</p></div>
<div><span class="gmail_quote">07/02/06 に <b class="gmail_sendername">Greger V. Teigre</b> <<a href="mailto:greger@teigre.com">greger@teigre.com</a>> さんは書きました:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div bgcolor="#ffffff" text="#000000">Hm. I've worked with 5300s without any problems... But I haven't done the cisco config, though...<br>I would have tried to listen directly on the Cisco network port to see if any packet shows up. Of course, debugging turned on to see what happens.
<br>Upgrade IOS => still no change, and I would've filed a ticket with Cisco.<br><span class="sg">g-)</span>
<div><span class="e" id="q_11095f34b0667e6e_2"><br><br>Sahria Hao wrote:
<blockquote cite="http://mide70a890702050906q4237d39ds9e1f65a03c3287d0@mail.gmail.com" type="cite">
<div>Hi Edson.</div>
<div> </div>
<div>I want to know that why my Cisco AS 5300 didn't send BYE for SER...?</div>
<div> </div>
<div>Maybe... I doubt that maybe my 5300 have only dial-peer 6000 voice "POTS" configure for outgoing PSTN call.</div>
<div>In case of PSTN incoming call have no problem about sending BYE for SER,</div>
<div>Because it is apply dial-peer voice 5000 "VOIP" confiure as follows:</div>
<div> </div>
<div> [SER] <- [5300 (VOIP dial-peer)] <- [PSTN]</div>
<div> </div>
<div>So I'll try to re-configure my 5300 dial-peer, or</div>
<div>please give me a hint If anyone have some way to solve this problem.</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Sahria<br> </div>
<div><span class="gmail_quote">2007/2/6, Edson <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:4lists@gmail.com" target="_blank">4lists@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div lang="PT-BR" vlink="blue" link="blue">
<div>
<p><font face="Arial" color="navy" size="2"><span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have this same behaviour, but never give it great importance, since we didn't bill incomming calls…
</span></font></p>
<p><font face="Arial" color="navy" size="2"><span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></span></font></p>
<p><font face="Arial" color="navy" size="2"><span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">But it would be great to know if it's because of a misconfiguration or a bug… but we notice that many ports become unavaliable (blocked) over time. To release we programmed a reboot every day on 3AM…
</span></font><font face="Wingdings" color="navy" size="2"><span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Wingdings">J</span></font><font face="Arial" color="navy" size="2"><span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
</span></font></p>
<p><font face="Arial" color="navy" size="2"><span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Even with 'ngrep' the BYE, when PSTN side disconnects, didn't show up…</span></font></p>
<p><font face="Arial" color="navy" size="2"><span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></span></font></p>
<p><font face="Arial" color="navy" size="2"><span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Edson.</span></font></p>
<p><font face="Arial" color="navy" size="2"><span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></span></font></p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
<div>
<div style="TEXT-ALIGN: center" align="center"><font face="Times New Roman" size="3"><span lang="EN-US" style="FONT-SIZE: 12pt">
<hr align="center" width="100%" size="2">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span lang="EN-US" style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:serusers-bounces@lists.iptel.org" target="_blank">serusers-bounces@lists.iptel.org</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:serusers-bounces@lists.iptel.org" target="_blank">
serusers-bounces@lists.iptel.org</a>] <b><span style="FONT-WEIGHT: bold">On Behalf Of </span></b>Sahria Hao<br><b><span style="FONT-WEIGHT: bold">Sent:</span></b> segunda-feira, 5 de fevereiro de 2007 08:36<br><b><span style="FONT-WEIGHT: bold">
To:</span></b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:serusers@lists.iptel.org" target="_blank">serusers@lists.iptel.org</a><br><b><span style="FONT-WEIGHT: bold">Subject:</span></b> Re: [Serusers] Cisco AS 5300 can't send BYE for SER... It's bug?
</span></font><span lang="EN-US"></span></p></div>
<div><span>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"></span></font></p>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Hi Greger,</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">And I'm very sorry for my poor exposition. </span></font><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">>>Do you get an error on the 5300?</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">No, my 5300 works well and there's no error.</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"></span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">>> Is it sent, but never reaches SER?</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">No, when I finished call by PSTN side, 5300 didn't send BYE for SER.</span></font><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">
<br>>>Does SER receive, but does not recognize it?</span></font></p></div>
<div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">SER didn't receive a message from 5300 entirely.</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"></span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">I think that when I finished this call, 5300 must send a BYE message for SER... but didn't send it.<br> </span></font><span><font face="Times New Roman" size="3">
<span style="FONT-SIZE: 12pt">2007/2/5, Greger V. Teigre <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:greger@teigre.com" target="_blank">greger@teigre.com</a>>:</span></font></span> </p></div>
</div>
<div>
<div bgcolor="#ffffff" text="#000000">
<p><span><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> 09. [Cisco] can't send BYE for SER *****why??*****</span></font></span><br><br>What does that mean?! Do you get an error on the 5300? Is it sent, but never reaches SER?
<br>Does SER receive, but does not recognize it? <br>g-)<br><br>Sho Aihara wrote: </p>
<div><span>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Hi all.</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">I have a problem for the following scenario.<br>When I make a call for PSTN and on hook by PSTN side,<br>Cisco As can't send BYE for SER.</span></font>
</p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> 01. [UA via Asterisk] dialing "08022223333" -> [SER]<br> 02. [SER] prefix("0333") and rewritehostport("my.cisco.ip.address
:5060") -> [Cisco]<br> 03. [Cisco] dial-peer voice 6000 pots, translate-outgoing called from "033308022223333" to "008022223333" <br> 04. [Cisco] process an outbound call to "008022223333" -> [
e.g. Mobile]<br> 05. [e.g. Mobile] Catch call<br> 06. [SER] log CDR start<br> 07. [Cisco] talking<br> 08. [e.g. Mobile] On hook and call disconnect <br> 09. [Cisco] can't send BYE for SER *****why??*****<br> 10. [UA via Asterisk] On hook
<br> 11. [UA via Asterisk] Send BYE for SER<br> 12. [SER] log CDR End [Cisco] Call finished</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">But another scenario, if make a call from PSTN to Asterisk and<br>on hook by PSTN side, Cisco As send BYE to SER.</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> 01. [e.g. Mobile] dialing "0377771111(Asterisk user number)"<br> 02. [Cisco] receive "77771111" call number<br> 03. [Cisco] dial-peer voice 5000 voip, session target ipv4:
my.ser.ip.address -> [SER] <br> 04. [SER] process an incoming call to "0377771111" -> [UA via Asterisk]<br> 05. [UA via Asterisk] Catch call<br> 06. [SER] log CDR start<br> 07. [UA via Asterisk] talking
<br> 08. [e.g. Mobile] On hook and call disconnect <br> 09. [Cisco] Send BYE to SER<br> 10. [SER] log CDR End [Cisco] Call finished<br> 11. [UA via Asterisk] receive BYE from SER</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">And sorry for my diffucult example.</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Why Cisco AS 5300 can't send BYE to SER<br>When PSTN call is disconnected by PSTN side?</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">My ser.cfg as follows:</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"># --------------------------------------------------------------------------<br># global configuration parameters<br># --------------------------------------------------------------------------
<br>fork=no<br>log_stderror=yes <br>check_via=no<br>dns=no<br>rev_dns=no<br>listen=my.ser.ip.address<br>port=5060<br>fifo="/tmp/ser_fifo"<br>fifo_db_url="mysql://ser:heslo@localhost/ser"</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"># --------------------------------------------------------------------------<br># module loading<br># --------------------------------------------------------------------------
<br>loadmodule "/usr/local/lib/ser/modules/mysql.so" <br>loadmodule "/usr/local/lib/ser/modules/sl.so"<br>loadmodule "/usr/local/lib/ser/modules/tm.so"<br>loadmodule "/usr/local/lib/ser/modules/rr.so"
<br>loadmodule "/usr/local/lib/ser/modules/maxfwd.so" <br>loadmodule "/usr/local/lib/ser/modules/usrloc.so"<br>loadmodule "/usr/local/lib/ser/modules/registrar.so"<br>loadmodule "/usr/local/lib/ser/modules/textops.so"
<br>loadmodule "/usr/local/lib/ser/modules/auth.so" <br>loadmodule "/usr/local/lib/ser/modules/auth_db.so"<br>loadmodule "/usr/local/lib/ser/modules/avpops.so"<br>loadmodule "/usr/local/lib/ser/modules/permissions.so"
<br>loadmodule "/usr/local/lib/ser/modules/acc.so" <br>loadmodule "/usr/local/lib/ser/modules/exec.so"</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"># --------------------------------------------------------------------------<br># setting module-specific parameters<br># --------------------------------------------------------------------------
<br>modparam("usrloc", "db_mode", 2) <br>modparam("auth_db", "calculate_ha1", yes)<br>modparam("auth_db", "password_column", "password")<br>modparam("rr", "enable_full_lr", 1)
<br>modparam("usrloc", "db_url", " mysql://ser:heslo@localhost/ser")<br>modparam("auth_db", "db_url", "mysql://ser:heslo@localhost/ser")<br>modparam("permissions", "db_url", "
mysql://ser:heslo@localhost /ser")<br>modparam("tm", "fr_inv_timer", 27)<br>modparam("tm", "fr_inv_timer_avp", "inv_timeout")<br>modparam("permissions", "db_mode", 1)
<br>modparam("permissions", "trusted_table", "trusted") <br>modparam("acc", "db_url", "mysql://ser:heslo@localhost/ser")<br>modparam("acc", "db_flag", 2)
<br>modparam("acc", "db_missed_flag", 3)</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"># --------------------------------------------------------------------------<br># route pattern<br># --------------------------------------------------------------------------
<br>route {<br> <br> if (!mf_process_maxfwd_header("10")) { <br> sl_send_reply("483","Too Many Hops"); <br> break; <br> };</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> if ( msg:len > max_len ) { <br> sl_send_reply("513", "Message too big"); <br> break; <br> }; <br> <br> record_route();
<br> <br> if (loose_route()) {<br> if (method=="ACK") { <br> acc_db_request("01:CallStart\n", "acc");<br> };<br> if (method=="BYE" || method=="CANCEL") {
<br> acc_db_request("02:CallEnd\n", "acc");<br> }; <br> t_relay();<br> break; <br> };</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> if (uri==myself) { <br> if (method=="REGISTER") {<br> if (!www_authorize("", "subscriber")) { <br> www_challenge("", "0");
<br> break; <br> }; <br> save("location"); <br> break; <br> };</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> if (search("^(f|From): <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:.*@%28my%5C.cisco%5C.ip%5C.address" target="_blank">
.*@(my\.cisco\.ip\.address</a>)")) {<br> #PSTN Incoming call from Cisco AS 5300 e.g. 0377771111<br> rewritehost("my.asterisk.ip.address ");<br> };</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> lookup("aliases");</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> if (!lookup("location")) {<br> if (method=="INVITE" && !search("^(f|From): <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:.*@%28my%5C.cisco%5C.ip%5C.address" target="_blank">
.*@(my\.cisco\.ip\.address</a>)")) {<br> if (!proxy_authorize("", "subscriber")) { <br> proxy_challenge("", "0");<br> break;<br> };<br> if (uri=~"^sip:0[0-9]{10}@") {
<br> # PSTN Outgoing call to Cisco AS 5300 e.g. 08022223333<br> prefix("0333"); <br> rewritehostport("my.cisco.ip.address:5060");<br> avp_write("i:45", "inv_timeout");
<br> } else {<br> sl_send_reply("404", "Not Found"); <br> break;<br> };<br> consume_credentials();<br> }; <br> };<br> <br> };</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> if (!t_relay()) {<br> sl_reply_error(); <br> }; <br> <br>} </span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">And my Cisco AS 5300 config as follows:</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">voice call send-alert<br>voice rtp send-recv</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">voice service pots <br> fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback cisco</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">voice service voip <br> fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback cisco<br> sip<br> min-se 60 </span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">translation-rule 50<br> Rule 0 0333 0<br> Rule 1 ^7777 037777</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">voice class codec 2<br> codec preference 1 g711ulaw<br> codec preference 2 g711alaw</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">dial-peer voice 5000 voip<br> tone ringback alert-no-PI<br> description ser-asterisk-cisco-test<br> huntstop<br> destination-pattern 77771111$<br> translate-outgoing called 50
<br> voice-class codec 2<br> session protocol sipv2 <br> session target ipv4:my.ser.ip.address<br> dtmf-relay rtp-nte<br> max-conn 1</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">dial-peer voice 6000 pots<br> application session<br> max-conn 2<br> destination-pattern 0333T<br> progress_ind alert enable 8<br> translate-outgoing called 50
<br> port 0:D</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Thanks,<br>Sahria</span></font></p></span></div><pre style="TEXT-ALIGN: center"><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt">
<hr align="center" width="90%" size="4">
</span></font></pre><pre><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt"> </span></font></pre><pre><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt">_______________________________________________
</span></font></pre><pre><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt">Serusers mailing list</span></font></pre><pre><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt"><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Serusers@lists.iptel.org" target="_blank">
Serusers@lists.iptel.org</a></span></font></pre><pre><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt"><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></span></font></pre><pre><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt"> </span></font></pre></div></div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"><br><br clear="all"><br>-- <br>----------<br>shosuke<br>msn : <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:anseie@hotmail.co.jp" target="_blank">
anseie@hotmail.co.jp</a><br>email : <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sahria.hao@gmail.com" target="_blank">sahria.hao@gmail.com</a> </span></font></p></span></div></div></div></div></blockquote>
</div><pre><hr width="90%" size="4">
_______________________________________________
Serusers mailing list
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Serusers@lists.iptel.org" target="_blank">Serusers@lists.iptel.org</a>
<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>
</pre></blockquote></span></div></div></blockquote></div>