<!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> 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> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>The following is part of ser.cfg:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> if( is_user_in("Request-URI",
"voicemail")){<BR> log(1, "yes,incoming voicemail
call\n");<BR>
if(!t_write_req("/tmp/am_fifo","voicemail")){<BR>
log("could not contact voicemail
server\n");<BR>
t_reply("500","could not contact voicemail
serv<BR>
};<BR> }<BR> else if(
is_user_in("Request-URI","announcement")){<BR>
#log(1, "incoming announcement call\n");<BR>
if(!t_write_req("/tmp/am_fifo","announcement")){<BR>
log("could not contact
announcement\n");<BR>
t_reply("500","could not contact
announcement");<BR> };<BR>
}<BR></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>This is the debug information of sems:</FONT></DIV>
<DIV><FONT size=2> <FONT color=#0000a0>(1)
voicemail</FONT></FONT></DIV>
<DIV><FONT size=2> The debug information is as the
following:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> (17961) DEBUG: run (AmServer.cpp:172):
version= <0.2><BR>(17961) DEBUG: run (AmServer.cpp:182): fct_name=
<sip_request.voicemail><BR>(17961) DEBUG: execute (AmServer.cpp:240):
cmd.method= <INVITE><BR>(17961) DEBUG: execute (AmServer.cpp:241):
cmd.user= <zhangwei><BR>(17961) DEBUG: execute (AmServer.cpp:242):
cmd.email= <><BR>(17961) DEBUG: execute (AmServer.cpp:243): cmd.domain=
<sipsys.com><BR>(17961) DEBUG: execute (AmServer.cpp:244): cmd.dstip=
<210.72.128.102><BR>(17961) DEBUG: execute (AmServer.cpp:245): cmd.port=
<><BR>(17961) DEBUG: execute (AmServer.cpp:246): cmd.r_uri=
<sip:zhangwei@sipsys.com><BR>(17961) DEBUG: execute (AmServer.cpp:247):
cmd.from_uri= <sip:210.72.128.109:1302><BR>(17961) DEBUG: execute
(AmServer.cpp:248): cmd.from= <"<A
href="mailto:leiwm@sipsys.com">leiwm@sipsys.com</A>"
<sip:leiwm@<BR>sipsys.com>><BR>(17961) DEBUG: execute
(AmServer.cpp:249): cmd.to= <<sip:zhangwei@sipsys.com>></FONT></DIV>
<DIV><FONT size=2>(17961) DEBUG: execute (AmServer.cpp:250): cmd.callid=
<b427eab561c74195a8105bfcc59<BR><A
href="mailto:9a6d3@192.168.139.63">9a6d3@192.168.139.63</A>><BR>(17961)
DEBUG: execute (AmServer.cpp:251): cmd.from_tag=
<1b41ffa0170543339e5505cd5<BR>5548bbd><BR>(17961) DEBUG: execute
(AmServer.cpp:252): cmd.to_tag= <><BR>(17961) DEBUG: execute
(AmServer.cpp:255): cseq_str= <2><BR>(17961) DEBUG: execute
(AmServer.cpp:260): cseq= <2>(2)<BR>(17961) DEBUG: execute
(AmServer.cpp:262): cmd.key= <19936:1411073482><BR>(17961) DEBUG: execute
(AmServer.cpp:263): cmd.route=
<<sip:210.72.128.101;ftag=1b41f<BR>fa0170543339e5505cd55548bbd;lr=on>><BR>(17961)
DEBUG: execute (AmServer.cpp:264): cmd.next_hop=
<sip:210.72.128.101;ftag=1b4<BR>1ffa0170543339e5505cd55548bbd;lr=on><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 <zhangwei><BR>(17961) DEBUG:
sendToFIFO (AmRequest.cpp:207):
msg=<:vm_reply:00004629788AE35A<BR>404<BR>voicemail: no email address for
user <zhangwei><BR>19936:1411073482<BR>000046291BA1B558<BR>Contact:
<sip:zhangwei@210.72.128.102><BR>.<BR>.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>></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=
<0.2><BR>(17961) DEBUG: run (AmServer.cpp:182): fct_name=
<sip_request.bye><BR>(17961) DEBUG: execute (AmServer.cpp:240):
cmd.method= <CANCEL><BR>(17961) DEBUG: execute (AmServer.cpp:241):
cmd.user= <zhangwei><BR>(17961) DEBUG: execute (AmServer.cpp:242):
cmd.email= <><BR>(17961) DEBUG: execute (AmServer.cpp:243): cmd.domain=
<sipsys.com><BR>(17961) DEBUG: execute (AmServer.cpp:244): cmd.dstip=
<210.72.128.102><BR>(17961) DEBUG: execute (AmServer.cpp:245): cmd.port=
<><BR>(17961) DEBUG: execute (AmServer.cpp:246): cmd.r_uri=
<sip:zhangwei@sipsys.com><BR>(17961) DEBUG: execute (AmServer.cpp:247):
cmd.from_uri= <sip:leiwm@sipsys.com><BR>(17961) DEBUG: execute
(AmServer.cpp:248): cmd.from= <"<A
href="mailto:leiwm@sipsys.com">leiwm@sipsys.com</A>"
<sip:leiwm@<BR>sipsys.com>><BR>(17961) DEBUG: execute
(AmServer.cpp:249): cmd.to= <<sip:zhangwei@sipsys.com>><BR>(17961)
DEBUG: execute (AmServer.cpp:250): cmd.callid=
<b427eab561c74195a8105bfcc59<BR><A
href="mailto:9a6d3@192.168.139.63">9a6d3@192.168.139.63</A>><BR>(17961)
DEBUG: execute (AmServer.cpp:251): cmd.from_tag=
<1b41ffa0170543339e5505cd5<BR>5548bbd><BR>(17961) DEBUG: execute
(AmServer.cpp:252): cmd.to_tag= <><BR>(17961) DEBUG: execute
(AmServer.cpp:255): cseq_str= <2><BR>(17961) DEBUG: execute
(AmServer.cpp:260): cseq= <2>(2)<BR>(17961) DEBUG: execute
(AmServer.cpp:262): cmd.key= <19936:1411073483><BR>(17961) DEBUG: execute
(AmServer.cpp:263): cmd.route= <><BR>(17961) DEBUG: execute
(AmServer.cpp:264): cmd.next_hop= <><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=<:vm_reply:000046293B78C6A5<BR>481<BR>Call/Transaction Does Not
Exist<BR>19936:1411073483</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Contact:
<sip:zhangwei@210.72.128.102><BR>.<BR>.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>><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> </DIV>
<DIV><FONT size=2>(17961) DEBUG: run (AmServer.cpp:172): version=
<0.2><BR>(17961) DEBUG: run (AmServer.cpp:182): fct_name=
<sip_request.announcement><BR>(17961) DEBUG: execute (AmServer.cpp:240):
cmd.method= <INVITE><BR>(17961) DEBUG: execute (AmServer.cpp:241):
cmd.user= <902001><BR>(17961) DEBUG: execute (AmServer.cpp:242):
cmd.email= <><BR>(17961) DEBUG: execute (AmServer.cpp:243): cmd.domain=
<sipsys.com><BR>(17961) DEBUG: execute (AmServer.cpp:244): cmd.dstip=
<210.72.128.102><BR>(17961) DEBUG: execute (AmServer.cpp:245): cmd.port=
<><BR>(17961) DEBUG: execute (AmServer.cpp:246): cmd.r_uri=
<sip:902001@sipsys.com><BR>(17961) DEBUG: execute (AmServer.cpp:247):
cmd.from_uri= <sip:210.72.128.109:1358><BR>(17961) DEBUG: execute
(AmServer.cpp:248): cmd.from= <"<A
href="mailto:leiwm@sipsys.com">leiwm@sipsys.com</A>"
<sip:leiwm@<BR>sipsys.com>><BR>(17961) DEBUG: execute
(AmServer.cpp:249): cmd.to= <<sip:902001@sipsys.com>><BR>(17961)
DEBUG: execute (AmServer.cpp:250): cmd.callid=
<c992a9220bc2411ab163f0863fe<BR><A
href="mailto:a0471@192.168.139.63">a0471@192.168.139.63</A>><BR>(17961)
DEBUG: execute (AmServer.cpp:251): cmd.from_tag=
<61c1f5139ea74614a9996ff80<BR>a36814b><BR>(17961) DEBUG: execute
(AmServer.cpp:252): cmd.to_tag= <><BR>(17961) DEBUG: execute
(AmServer.cpp:255): cseq_str= <2><BR>(17961) DEBUG: execute
(AmServer.cpp:260): cseq= <2>(2)<BR>(17961) DEBUG: execute
(AmServer.cpp:262): cmd.key= <886:408346041><BR>(17961) DEBUG: execute
(AmServer.cpp:263): cmd.route=
<<sip:210.72.128.101;ftag=61c1f<BR>5139ea74614a9996ff80a36814b;lr=on>><BR>(17961)
DEBUG: execute (AmServer.cpp:264): cmd.next_hop=
<sip:210.72.128.101;ftag=61c<BR>1f5139ea74614a9996ff80a36814b;lr=on><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=<:vm_reply:0000462951FCB30A<BR>200<BR>OK<BR>886:408346041<BR>00004629295AD0E1<BR>Contact:
<sip:902001@210.72.128.102><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> </DIV>
<DIV><FONT size=2>><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=<:vm_reply:000046294CC3BF35<BR>500<BR>could not send
response.<BR>886:408346041<BR>00004629295AD0E1<BR>Contact:
<sip:902001@210.72.128.102><BR>.<BR>.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>></DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT size=2> </FONT></DIV></BODY></HTML>