[Serusers] SER + SEMS

Kapil Dhawan sersavvy at hotmail.com
Tue Feb 24 10:35:39 CET 2004


I have tried to debug all this

this is what i get]
(1185) DEBUG: run (AmServer.cpp:165): version= <0.2>
(1185) DEBUG: run (AmServer.cpp:170): fct_name= <sip_request.voicemail>
(1185) DEBUG: execute (AmServer.cpp:229): cmd.method= <INVITE>
(1185) DEBUG: execute (AmServer.cpp:230): cmd.user= <1111>
(1185) DEBUG: execute (AmServer.cpp:231): cmd.email= 
<kdhawan at primus-direct.com>
(1185) DEBUG: execute (AmServer.cpp:232): cmd.domain= <203.196.128.126>
(1185) DEBUG: execute (AmServer.cpp:233): cmd.dstip= <203.196.128.126>
(1185) DEBUG: execute (AmServer.cpp:234): cmd.port= <>
(1185) DEBUG: execute (AmServer.cpp:235): cmd.r_uri= 
<sip:1111 at 203.196.128.126;user=phone>
(1185) DEBUG: execute (AmServer.cpp:236): cmd.from_uri= 
<sip:3333 at 203.196.128.122:5060;user=phone;transport=udp>
(1185) DEBUG: execute (AmServer.cpp:237): cmd.from= 
<<sip:3333 at 203.196.128.126;user=phone> >
(1185) DEBUG: execute (AmServer.cpp:238): cmd.to= 
<<sip:1111 at 203.196.128.126;user=phone>>
(1185) DEBUG: execute (AmServer.cpp:239): cmd.callid= 
<04807096-50cc-1ba2-4fb4-0038cd0004f6 at 203.196.128.122>
(1185) DEBUG: execute (AmServer.cpp:240): cmd.from_tag= <32351>
(1185) DEBUG: execute (AmServer.cpp:241): cmd.to_tag= <>
(1185) DEBUG: execute (AmServer.cpp:244): cseq_str= <8>
(1185) DEBUG: execute (AmServer.cpp:249): cseq= <8>(8)
(1185) DEBUG: execute (AmServer.cpp:251): cmd.key= <31558:1504541206>
(1185) DEBUG: execute (AmServer.cpp:252): cmd.route= <>
(1185) DEBUG: execute (AmServer.cpp:253): cmd.next_hop= <>
(1185) DEBUG: execute (AmServer.cpp:259): hdrs: `P-MsgFlags: 0
Session-Expires: 1800
Min-SE: 1800
'
(1185) DEBUG: execute (AmServer.cpp:266): body: `v=0
o=SS-TA101 23265 23265 IN IP4 203.196.128.122
s=-
c=IN IP4 203.196.128.122
t=0 0
m=audio 54321 RTP/AVP 0 8 18 4 96
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=rtpmap:4 G723-63/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-11
'
(1185) DEBUG: execute (AmServer.cpp:277): everything is OK !
(1185) DEBUG: onInvite (AnswerMachine.cpp:133): email address for user 
'1111': kdhawan at primus-direct.com
(1185) DEBUG: startSession (AmSession.cpp:435): Starting session... 
(hash=04807096-50cc-1ba2-4fb4-0038cd0004f6 at 203.196.128.12232351,sess_key=000004A12F57B1AE)
(1191) DEBUG: parse_sdp_attribute (AmSdp.cpp:596): unknown attribute 
definition 'fmtp:96 0-11'
(1191) DEBUG: run (AmSession.cpp:124): dir=0; msg_flags=0
(1191) DEBUG: sendToFIFO (AmRequest.cpp:199): 
msg=<:vm_reply:000004A7166E92A0
180
ringing
31558:1504541206
000004A12F57B1AE
Contact: <sip:1111 at 203.196.128.126>
.
.

>
(1191) DEBUG: write_to_fifo (AmRequest.cpp:708): Write to fifo: completed
(1191) DEBUG: getReturnCode (AmRequest.cpp:421): response from Ser: 200 
fifo_t_reply succeeded
(1191) DEBUG: getReturnCode (AmRequest.cpp:442): n_cmd.from_uri= <>
(1191) DEBUG: getReturnCode (AmRequest.cpp:445): n_cmd.next_hop= <>
(1191) DEBUG: getReturnCode (AmRequest.cpp:448): n_cmd.route= <>
(1191) DEBUG: sendToFIFO (AmRequest.cpp:221): sendToFifo returns 
ret=getReturnCode=0
(1191) DEBUG: setLocalPort (AmRtpStream.cpp:129): setting random local port
(1191) DEBUG: setLocalPort (AmRtpStream.cpp:158): local rtp port set to 
35226
(1191) DEBUG: sendToFIFO (AmRequest.cpp:199): 
msg=<:vm_reply:000004A756924871
200
OK
31558:1504541206
000004A12F57B1AE
Contact: <sip:1111 at 203.196.128.126>
Content-Type: application/sdp
.
v=0
o=username 0 0 IN IP4 203.196.128.126
s=session
c=IN IP4 203.196.128.126
t=0 0
m=audio 35226 RTP/AVP 0
a=rtpmap:0 PCMU/8000
.

>
(1191) DEBUG: write_to_fifo (AmRequest.cpp:708): Write to fifo: completed
(1191) DEBUG: getReturnCode (AmRequest.cpp:421): response from Ser: 200 
fifo_t_reply succeeded
(1191) DEBUG: getReturnCode (AmRequest.cpp:442): n_cmd.from_uri= <>
(1191) DEBUG: getReturnCode (AmRequest.cpp:445): n_cmd.next_hop= <>
(1191) DEBUG: getReturnCode (AmRequest.cpp:448): n_cmd.route= <>
(1191) DEBUG: sendToFIFO (AmRequest.cpp:221): sendToFifo returns 
ret=getReturnCode=0
(1191) DEBUG: setRAddr (AmRtpStream.cpp:321): RTP remote address set to 
203.196.128.122:54321
(1191) DEBUG: run (AmSession.cpp:143): Sending Rtp data to 
203.196.128.122/54321
(1191) DEBUG: onSessionStart (AnswerMachine.cpp:162): starting sending 
announce...(/usr/local/lib/sems/audio/default.wav)
(1191) DEBUG: trying to read WAV file
(1191) DEBUG: tag = <RIFF>
(1191) DEBUG: file size = <129710>
(1191) DEBUG: tag = <WAVE>
(1191) DEBUG: tag = <fmt >
(1191) DEBUG: chunk_size = <18>
(1191) DEBUG: fmt = <01>
(1191) DEBUG: channels = <1>
(1191) DEBUG: rate = <8000>
(1191) DEBUG: bits/sample = <16>
(1191) DEBUG: tag = <fact>
(1191) DEBUG: chunk size = <4>
(1191) DEBUG: tag = <data>
(1191) DEBUG: chunk size = <129660>



ERROR ERROR ERROR

(1185) DEBUG: run (AmServer.cpp:165): version= <>
(1185) ERROR: run (AmServer.cpp:194): wrong FIFO Interface version.



(1191) DEBUG: streamGet (AmAudio.cpp:479): 0-stuffing packet: adding 260 
bytes (packet size=320)
(1191) DEBUG: convert (AmAudio.cpp:208): end of stream
(1191) DEBUG: onSessionStart (AnswerMachine.cpp:164): ... announce reaches 
its end.
(1191) DEBUG: onSessionStart (AnswerMachine.cpp:170): starting recording 
message...(/tmp/04807096-50cc-1ba2-4fb4-0038cd0004f6 at 203.196.128.122.wav)
(1191) DEBUG: onSessionStart (AnswerMachine.cpp:173): ... finished recording 
message
(1191) DEBUG: sendToFIFO (AmRequest.cpp:199): 
msg=<:t_uac_dlg:000004A7326ED90A
BYE
sip:3333 at 203.196.128.122:5060;user=phone;transport=udp
.
From: <sip:1111 at 203.196.128.126;user=phone>;tag=000004A12F57B1AE
To: <sip:3333 at 203.196.128.126;user=phone> ;tag=32351
CSeq: 9 BYE
Call-ID: 04807096-50cc-1ba2-4fb4-0038cd0004f6 at 203.196.128.122
Contact: <sip:1111 at 203.196.128.126>
.
.

>
(1191) DEBUG: write_to_fifo (AmRequest.cpp:708): Write to fifo: completed
(1191) DEBUG: getReturnCode (AmRequest.cpp:421): response from Ser: 481 Call 
Leg/Transaction Does Not Exist
(1191) DEBUG: sendToFIFO (AmRequest.cpp:221): sendToFifo returns 
ret=getReturnCode=0
(1191) ERROR: bye (AmRequest.cpp:243): AmRequest::bye: 481 Call 
Leg/Transaction Does Not Exist
(1191) DEBUG: onSessionStart (AnswerMachine.cpp:179): recorded data size: 0
(1191) DEBUG: sadSession (AmSession.cpp:309): searching for session to 
destroy 
(hash=04807096-50cc-1ba2-4fb4-0038cd0004f6 at 203.196.128.12232351,sess_key=000004A12F57B1AE)
(1191) DEBUG: findSession (AmSession.cpp:373): session found with key
(1191) DEBUG: destroySession (AmSession.cpp:331): sess_it != 
a_sessions.end()
(1191) DEBUG: destroySession (AmSession.cpp:334): it != 
sess_it->second.end()
(1191) DEBUG: destroySession (AmSession.cpp:341): session found: stopping 
session
(1191) DEBUG: stopAndQueue (AmSession.cpp:289): session cleaner trying to 
stop 80c8e18
(1191) DEBUG: postEvent (AmEventQueue.cpp:47): AmEventQueue: trying to post 
event
(1191) DEBUG: postEvent (AmEventQueue.cpp:55): AmEventQueue: event posted
(1191) DEBUG: destroySession (AmSession.cpp:343): session stopped and 
destroyed (#sessions=0)
(1188) DEBUG: run (AmSession.cpp:242): Session cleaner starting its work
(1188) DEBUG: run (AmSession.cpp:256): session 80c8e18 has been destroyed'
(1188) DEBUG: run (AmSession.cpp:279): Session cleaner finished



>From: "Kapil Dhawan" <sersavvy at hotmail.com>
>To: serusers at lists.iptel.org
>Subject: [Serusers] SER + SEMS
>Date: Tue, 24 Feb 2004 07:29:16 +0000
>
>Hi All...
>
>i am running SER perfectly....Now i am facing problem with running SEMS....
>
>i have tried SER 0.8.12(current sems cvs update ) and 0.8.11(sems 0.11) i 
>am unable to do anything....
>
>
>whats happening is....
>
>my SER is already installed.....and working...now i am compiling it with vm 
>module and making Multi Domain off (in 0.8.11) and its off in 0.8.12 as it 
>depends upon domain module there....so no problem with multidomain 
>support...so it works fine...following is the code of ser.cfg
>
>                if(method=="ACK" || method=="INVITE" || method=="BYE"){
>                  if (!t_newtran()) {
>                    log("could not create new transaction\n");
>                    sl_send_reply("500","could not create new 
>transaction");
>                    break;
>                  };
>
>                if(!vm("/tmp/am_fifo", "voicemail")){
>
>                lookup("aliases");
>                if (!uri==myself) {
>                        append_hf("P-hint: outbound alias\r\n");
>                        route(1);
>                        break;
>                };
>
>                # native SIP destinations are handled using our USRLOC DB
>                if (!lookup("location")) {
>                        sl_send_reply("404", "Not Found");
>                        break;
>                };
>                };
>                };
>
>
>Next....is i am compiling current version of sems...from cvs with following 
>command
>
>CVSROOT=:pserver:anonymous at cvs.berlios.de:/cvsroot/sems
>export CVSROOT
>cvs co answer_machine
>
>now it also gets compiled with one or two erros of audio file paths 
>etc...which i corrected in /etc/sems/sems.conf and enaled voicemail module 
>in it..
>
>Now when i run it sems -D 3 -E
>
>it shows me sems started successsfully.....but when i try and give a call 
>so that it shud be transfered to voicemail...in sems log i see ## Wrong 
>FIFO Interface version ##
>
>due to which ...my wav file which is getting stored in /tmp folder is 
>having 44 bytes size always...i know there is version conflict...but i am 
>unable to get proper matching versions of both.............
>
>kidly help me out...if u need i can attach any more info too...
>
>kapil
>
>_________________________________________________________________
>Contact brides & grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag 
>Only on www.shaadi.com. Register now!
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers

_________________________________________________________________
Contact brides & grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag 
Only on www.shaadi.com. Register now!




More information about the sr-users mailing list