<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>hello,</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp; Now I am using ser-0.8.14. But it cann't work 
well with sems.</FONT></DIV>
<DIV><FONT size=2>I think that there is maybe some errors in my ser.cfg of 
ser-0.8.14.</FONT></DIV>
<DIV><FONT size=2>Can anyone help me? Thanks!</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>The following is part of ser.cfg:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;  if( is_user_in("Request-URI", 
"voicemail")){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(1, "yes,incoming voicemail 
call\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(!t_write_req("/tmp/am_fifo","voicemail")){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
log("could not contact voicemail 
server\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
t_reply("500","could not contact voicemail 
serv<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp; &nbsp;else if( 
is_user_in("Request-URI","announcement")){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
#log(1, "incoming announcement call\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(!t_write_req("/tmp/am_fifo","announcement")){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
log("could not contact 
announcement\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
t_reply("500","could not contact 
announcement");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<BR>&nbsp; 
}<BR></FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>This is the debug information of sems:</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp; <FONT color=#0000a0>(1)&nbsp; 
voicemail</FONT></FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp; The debug information is as the 
following:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; (17961) DEBUG: run (AmServer.cpp:172): 
version= &lt;0.2&gt;<BR>(17961) DEBUG: run (AmServer.cpp:182): fct_name= 
&lt;sip_request.voicemail&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:240): 
cmd.method= &lt;INVITE&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:241): 
cmd.user= &lt;zhangwei&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:242): 
cmd.email= &lt;&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:243): cmd.domain= 
&lt;sipsys.com&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:244): cmd.dstip= 
&lt;210.72.128.102&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:245): cmd.port= 
&lt;&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:246): cmd.r_uri= 
&lt;sip:zhangwei@sipsys.com&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:247): 
cmd.from_uri= &lt;sip:210.72.128.109:1302&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:248): cmd.from= &lt;"<A 
href="mailto:leiwm@sipsys.com">leiwm@sipsys.com</A>" 
&lt;sip:leiwm@<BR>sipsys.com&gt;&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:249): cmd.to= &lt;&lt;sip:zhangwei@sipsys.com&gt;&gt;</FONT></DIV>
<DIV><FONT size=2>(17961) DEBUG: execute (AmServer.cpp:250): cmd.callid= 
&lt;b427eab561c74195a8105bfcc59<BR><A 
href="mailto:9a6d3@192.168.139.63">9a6d3@192.168.139.63</A>&gt;<BR>(17961) 
DEBUG: execute (AmServer.cpp:251): cmd.from_tag= 
&lt;1b41ffa0170543339e5505cd5<BR>5548bbd&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:252): cmd.to_tag= &lt;&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:255): cseq_str= &lt;2&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:260): cseq= &lt;2&gt;(2)<BR>(17961) DEBUG: execute 
(AmServer.cpp:262): cmd.key= &lt;19936:1411073482&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:263): cmd.route= 
&lt;&lt;sip:210.72.128.101;ftag=1b41f<BR>fa0170543339e5505cd55548bbd;lr=on&gt;&gt;<BR>(17961) 
DEBUG: execute (AmServer.cpp:264): cmd.next_hop= 
&lt;sip:210.72.128.101;ftag=1b4<BR>1ffa0170543339e5505cd55548bbd;lr=on&gt;<BR>(17961) 
DEBUG: execute (AmServer.cpp:270): hdrs: `P-MsgFlags: 0<BR>P-hint: fixed NAT 
contact for request<BR>P-hint: SIP/RTP has been relayed !<BR>'<BR>(17961) DEBUG: 
execute (AmServer.cpp:277): body: `v=0<BR>o=- 0 0 IN IP4 
192.168.139.63<BR>s=session</FONT></DIV>
<DIV><FONT size=2>c=IN IP4 210.72.128.101<BR>b=CT:1000<BR>t=0 0<BR>m=audio 46036 
RTP/AVP 97 0 8 18 4 101<BR>a=rtpmap:97 red/8000<BR>a=rtpmap:0 
PCMU/8000<BR>a=rtpmap:8 PCMA/8000<BR>a=rtpmap:18 G729/8000<BR>a=rtpmap:4 
G723/8000<BR>a=rtpmap:101 telephone-event/8000<BR>a=fmtp:101 
0-16<BR>a=encryption:rejected<BR>'<BR>(17961) DEBUG: execute (AmServer.cpp:288): 
everything is OK !<BR>(17961) ERROR: startSession (AmSession.cpp:456): 404 
voicemail: no email address fo<BR>r user &lt;zhangwei&gt;<BR>(17961) DEBUG: 
sendToFIFO (AmRequest.cpp:207): 
msg=&lt;:vm_reply:00004629788AE35A<BR>404<BR>voicemail: no email address for 
user &lt;zhangwei&gt;<BR>19936:1411073482<BR>000046291BA1B558<BR>Contact: 
&lt;sip:zhangwei@210.72.128.102&gt;<BR>.<BR>.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&gt;</FONT></DIV>
<DIV><FONT size=2>(17961) DEBUG: write_to_fifo (AmRequest.cpp:750): Write to 
fifo: completed<BR>(17961) DEBUG: getReturnCode (AmRequest.cpp:436): response 
from Ser: 500 command 'v<BR>m_reply' not available<BR>(17961) DEBUG: sendToFIFO 
(AmRequest.cpp:229): sendToFifo returns ret=getReturnCode<BR>=0<BR>(17961) 
ERROR: reply (AmRequest.cpp:332): AmRequestUAS::reply: 500 command 
'vm_repl<BR>y' not available<BR>(17961) DEBUG: run (AmServer.cpp:172): version= 
&lt;0.2&gt;<BR>(17961) DEBUG: run (AmServer.cpp:182): fct_name= 
&lt;sip_request.bye&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:240): 
cmd.method= &lt;CANCEL&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:241): 
cmd.user= &lt;zhangwei&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:242): 
cmd.email= &lt;&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:243): cmd.domain= 
&lt;sipsys.com&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:244): cmd.dstip= 
&lt;210.72.128.102&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:245): cmd.port= 
&lt;&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:246): cmd.r_uri= 
&lt;sip:zhangwei@sipsys.com&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:247): 
cmd.from_uri= &lt;sip:leiwm@sipsys.com&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:248): cmd.from= &lt;"<A 
href="mailto:leiwm@sipsys.com">leiwm@sipsys.com</A>" 
&lt;sip:leiwm@<BR>sipsys.com&gt;&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:249): cmd.to= &lt;&lt;sip:zhangwei@sipsys.com&gt;&gt;<BR>(17961) 
DEBUG: execute (AmServer.cpp:250): cmd.callid= 
&lt;b427eab561c74195a8105bfcc59<BR><A 
href="mailto:9a6d3@192.168.139.63">9a6d3@192.168.139.63</A>&gt;<BR>(17961) 
DEBUG: execute (AmServer.cpp:251): cmd.from_tag= 
&lt;1b41ffa0170543339e5505cd5<BR>5548bbd&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:252): cmd.to_tag= &lt;&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:255): cseq_str= &lt;2&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:260): cseq= &lt;2&gt;(2)<BR>(17961) DEBUG: execute 
(AmServer.cpp:262): cmd.key= &lt;19936:1411073483&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:263): cmd.route= &lt;&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:264): cmd.next_hop= &lt;&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:270): hdrs: `P-MsgFlags: 0<BR>'<BR>(17961) DEBUG: execute 
(AmServer.cpp:277): body: `'<BR>(17961) DEBUG: execute (AmServer.cpp:288): 
everything is OK !<BR>(17961) DEBUG: sadSession (AmSession.cpp:322): searching 
for session to destroy (ha<BR><A 
href="mailto:sh=b427eab561c74195a8105bfcc599a6d3@192.168.139.631b41ffa0170543339e5505cd55548bbd">sh=b427eab561c74195a8105bfcc599a6d3@192.168.139.631b41ffa0170543339e5505cd55548bbd</A>,<BR>sess_key=)<BR>(17961) 
DEBUG: destroySession (AmSession.cpp:363): sess_it == sessions.end()<BR>(17961) 
DEBUG: sendToFIFO (AmRequest.cpp:207): 
msg=&lt;:vm_reply:000046293B78C6A5<BR>481<BR>Call/Transaction Does Not 
Exist<BR>19936:1411073483</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Contact: 
&lt;sip:zhangwei@210.72.128.102&gt;<BR>.<BR>.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&gt;<BR>(17961) DEBUG: write_to_fifo (AmRequest.cpp:750): 
Write to fifo: completed<BR>(17961) DEBUG: getReturnCode (AmRequest.cpp:436): 
response from Ser: 500 command 'v<BR>m_reply' not available<BR>(17961) DEBUG: 
sendToFIFO (AmRequest.cpp:229): sendToFifo returns 
ret=getReturnCode<BR>=0<BR>(17961) ERROR: reply (AmRequest.cpp:332): 
AmRequestUAS::reply: 500 command 'vm_repl<BR>y' not available<BR><BR><BR><FONT 
color=#0000a0>(2) announcement</FONT> </FONT></DIV>
<DIV><FONT size=2>The 902001 user is in announcement group</FONT></DIV>
<DIV><FONT size=2>The debug information is as the following:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>(17961) DEBUG: run (AmServer.cpp:172): version= 
&lt;0.2&gt;<BR>(17961) DEBUG: run (AmServer.cpp:182): fct_name= 
&lt;sip_request.announcement&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:240): 
cmd.method= &lt;INVITE&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:241): 
cmd.user= &lt;902001&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:242): 
cmd.email= &lt;&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:243): cmd.domain= 
&lt;sipsys.com&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:244): cmd.dstip= 
&lt;210.72.128.102&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:245): cmd.port= 
&lt;&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:246): cmd.r_uri= 
&lt;sip:902001@sipsys.com&gt;<BR>(17961) DEBUG: execute (AmServer.cpp:247): 
cmd.from_uri= &lt;sip:210.72.128.109:1358&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:248): cmd.from= &lt;"<A 
href="mailto:leiwm@sipsys.com">leiwm@sipsys.com</A>" 
&lt;sip:leiwm@<BR>sipsys.com&gt;&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:249): cmd.to= &lt;&lt;sip:902001@sipsys.com&gt;&gt;<BR>(17961) 
DEBUG: execute (AmServer.cpp:250): cmd.callid= 
&lt;c992a9220bc2411ab163f0863fe<BR><A 
href="mailto:a0471@192.168.139.63">a0471@192.168.139.63</A>&gt;<BR>(17961) 
DEBUG: execute (AmServer.cpp:251): cmd.from_tag= 
&lt;61c1f5139ea74614a9996ff80<BR>a36814b&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:252): cmd.to_tag= &lt;&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:255): cseq_str= &lt;2&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:260): cseq= &lt;2&gt;(2)<BR>(17961) DEBUG: execute 
(AmServer.cpp:262): cmd.key= &lt;886:408346041&gt;<BR>(17961) DEBUG: execute 
(AmServer.cpp:263): cmd.route= 
&lt;&lt;sip:210.72.128.101;ftag=61c1f<BR>5139ea74614a9996ff80a36814b;lr=on&gt;&gt;<BR>(17961) 
DEBUG: execute (AmServer.cpp:264): cmd.next_hop= 
&lt;sip:210.72.128.101;ftag=61c<BR>1f5139ea74614a9996ff80a36814b;lr=on&gt;<BR>(17961) 
DEBUG: execute (AmServer.cpp:270): hdrs: `P-MsgFlags: 0<BR>P-hint: fixed NAT 
contact for request<BR>P-hint: SIP/RTP has been relayed !<BR>'<BR>(17961) DEBUG: 
execute (AmServer.cpp:277): body: `v=0<BR>o=- 0 0 IN IP4 
192.168.139.63<BR>s=session<BR>c=IN IP4 210.72.128.101<BR>b=CT:1000<BR>t=0 
0<BR>m=audio 46044 RTP/AVP 97 0 8 18 4 101<BR>a=rtpmap:97 red/8000<BR>a=rtpmap:0 
PCMU/8000<BR>a=rtpmap:8 PCMA/8000<BR>a=rtpmap:18 G729/8000<BR>a=rtpmap:4 
G723/8000<BR>a=rtpmap:101 telephone-event/8000<BR>a=fmtp:101 
0-16<BR>a=encryption:rejected<BR>'<BR>(17961) DEBUG: execute (AmServer.cpp:288): 
everything is OK !<BR>(17961) DEBUG: onInvite (Announcement.cpp:89): trying 
'/usr/local/lib/sems/audio/51<BR>sip.com/902001.wav'<BR>(17961) DEBUG: 
startSession (AmSession.cpp:450): Starting session... (hash=c992a922<BR><A 
href="mailto:0bc2411ab163f0863fea0471@192.168.139.6361c1f5139ea74614a9996ff80a36814b,sess_key=00">0bc2411ab163f0863fea0471@192.168.139.6361c1f5139ea74614a9996ff80a36814b,sess_key=00</A><BR>004629295AD0E1)<BR>(17961) 
DEBUG: parse_sdp_attribute (AmSdp.cpp:654): unknown attribute definition 
'e<BR>ncryption:rejected'<BR>(17961) DEBUG: negotiate (AmSession.cpp:126): 
dir=0; msg_flags=0<BR>(17961) DEBUG: setLocalPort (AmRtpStream.cpp:141): setting 
random local port<BR>(17961) DEBUG: setLocalPort (AmRtpStream.cpp:178): local 
rtp port set to 1570<BR>(17961) DEBUG: sendToFIFO (AmRequest.cpp:207): 
msg=&lt;:vm_reply:0000462951FCB30A<BR>200<BR>OK<BR>886:408346041<BR>00004629295AD0E1<BR>Contact: 
&lt;sip:902001@210.72.128.102&gt;<BR>Content-Type: 
application/sdp<BR>.<BR>v=0<BR>o=username 0 0 IN IP4 
210.72.128.102<BR>s=session<BR>c=IN IP4 210.72.128.102<BR>t=0 0<BR>m=audio 1570 
RTP/AVP 0<BR>a=rtpmap:0 PCMU/8000<BR>.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&gt;<BR>(17961) DEBUG: write_to_fifo (AmRequest.cpp:750): 
Write to fifo: completed<BR>(17961) DEBUG: getReturnCode (AmRequest.cpp:436): 
response from Ser: 500 command 'v<BR>m_reply' not available<BR>(17961) DEBUG: 
sendToFIFO (AmRequest.cpp:229): sendToFifo returns 
ret=getReturnCode<BR>=0<BR>(17961) ERROR: reply (AmRequest.cpp:332): 
AmRequestUAS::reply: 500 command 'vm_repl<BR>y' not available<BR>(17961) ERROR: 
run (AmSession.cpp:183): 500 could not send response.<BR>(17961) DEBUG: 
sendToFIFO (AmRequest.cpp:207): 
msg=&lt;:vm_reply:000046294CC3BF35<BR>500<BR>could not send 
response.<BR>886:408346041<BR>00004629295AD0E1<BR>Contact: 
&lt;sip:902001@210.72.128.102&gt;<BR>.<BR>.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&gt;</DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; </FONT></DIV></BODY></HTML>