Stefan Sayer writes:

> you are using
>   stop;
> which tries to bye() the dialog.
> 
> use stop(false) like in this script (added stopping the call after
> tango):

stafan,

i noticed that my stop at hangup didn't have false param and i added it:

import(mod_mysql);

initial state start;

transition "session start" start - sessionStart / {
    mysql.connect(mysql://openxg:openxg123@localhost/sems);
    mysql.playDBAudio(select audio from user_audio where 
application='announcement' and message='greeting_msg' and userid='jh' and 
domain='test.fi' union select audio from default_audio where 
application='announcement' and message='greeting_msg' and language='$Language' 
limit 1, anything.wav);
    mysql.disconnect();
} -> session_started;

state session_started;

transition "audio ends" session_started - noAudio / stop(true) -> end;

state end;

transition "bye recvd" (start,session_started,end) - hangup / {
    stop(false);
} -> end;

but i'm still getting the error messages:

Dec 13 15:07:04 sip sems[22931]: [#b5398b70] [reply, AmSipDialog.cpp:1139] 
ERROR: could not find any transaction matching request cseq
Dec 13 15:07:04 sip sems[22931]: [#b5398b70] [reply, AmSipDialog.cpp:1143] 
ERROR: request cseq=455; reply code=200; [email protected]; 
local_tag=66504D8D-4EE74DF7000A1F53-B569BB70; remote_tag=mftze

and wireshark does not show that sems would be sending out a bye.

at debug level 3, syslog shows that bye is sent with argument false and
that the errors occur after that:

Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [run, udp_trsp.cpp:213] DEBUG: vv 
M [|] u recvd msg via UDP vv#012--++--#012BYE 
sip:+35892345672*2593*[email protected]:5090 SIP/2.0#015#012Via: SIP/2.0/UDP 
127.0.0.1:5080;branch=z9hG4bK9b9b.97a58872cde13dff02b889b3864fc30c.0;i=4#015#012Via:
 SIP/2.0/TCP 
192.98.102.10:5074;rport=53338;branch=z9hG4bKucsvwbuo#015#012Max-Forwards: 
69#015#012To: 
<sip:+35892345672*2593*[email protected]>;tag=637481A6-4EE74F43000F18CE-B559AB70#015#012From:
 "Juha Heinanen" <sip:[email protected]>;tag=gmeot#015#012Call-ID: 
[email protected]#015#012CSeq: 409 BYE#015#012User-Agent: 
Twinkle/1.4.2#015#012Content-Length: 0#015#012#015#012--++--
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [parse_sip_uri, parse_uri.cpp:332] 
DEBUG: Converted URI port (5090) to int (5090)
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [parse_via_params, 
parse_via.cpp:525] DEBUG: parsed branch: 
z9hG4bK9b9b.97a58872cde13dff02b889b3864fc30c.0
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [parse_via_params, 
parse_via.cpp:548] DEBUG: has_rport: 0
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [match_request, 
trans_table.cpp:68] DEBUG: Matching BYE request
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:597] DEBUG: Received new request
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:600] DEBUG: req.method = <BYE>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:603] DEBUG: req.r_uri = 
<sip:+35892345672*2593*[email protected]:5090>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:604] DEBUG: req.from_uri = <sip:[email protected]>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:605] DEBUG: req.from = <"Juha Heinanen" <sip:[email protected]>>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:606] DEBUG: req.to = 
<<sip:+35892345672*2593*[email protected]>;tag=637481A6-4EE74F43000F18CE-B559AB70>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:607] DEBUG: req.callid = <[email protected]>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:608] DEBUG: req.from_tag = <gmeot>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:609] DEBUG: req.to_tag = 
<637481A6-4EE74F43000F18CE-B559AB70>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:610] DEBUG: cseq = <409>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:611] DEBUG: req.route = <>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:612] DEBUG: hdrs = <Max-Forwards: 69#015#012User-Agent: 
Twinkle/1.4.2#015#012>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:613] DEBUG: body = <>
Dec 13 15:12:38 sip sems[22931]: [#b569bb70] [handle_sip_request, 
SipCtrlInterface.cpp:619] DEBUG: ^^ M 
[[email protected]|637481A6-4EE74F43000F18CE-B559AB70] Ru SIP request 
BYE handled ^^
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [processingCycle, 
AmSession.cpp:406] DEBUG: vv S 
[[email protected]|637481A6-4EE74F43000F18CE-B559AB70] Connected, 
running, 0 UACTransPending vv
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [process, DSMCall.cpp:409] DEBUG: 
DSMCall::process
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [process, AmSession.cpp:757] 
DEBUG: AmSession processing event
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [onRxRequest, AmSipDialog.cpp:152] 
DEBUG: AmSipDialog::onRxRequest(req = BYE)
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [onSipRequest, AmSession.cpp:807] 
DEBUG: onSipRequest: method = BYE
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [reply, AmSipDialog.cpp:1146] 
DEBUG: reply: transaction found!
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [send_reply, trans_layer.cpp:215] 
DEBUG: reply_len = 460
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [send_reply, trans_layer.cpp:383] 
DEBUG: Sending to 127.0.0.1:5080 <SIP/2.0 200 OK#015#012Via: SIP/2.0/UDP 
127.0.0.1:5080;br...>
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [update_uas_reply, 
trans_layer.cpp:1476] DEBUG: update_uas_reply(t=0x9b08b80)
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [reset_timer, sip_trans.cpp:185] 
DEBUG: New timer of type J at time=18938 (repeated=0)
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [send, transport.cpp:98] DEBUG: 
send  msg#012--++--#012SIP/2.0 200 OK#015#012Via: SIP/2.0/UDP 
127.0.0.1:5080;branch=z9hG4bK9b9b.97a58872cde13dff02b889b3864fc30c.0;i=4;received=127.0.0.1#015#012Via:
 SIP/2.0/TCP 192.98.102.10:5074;rport=53338;branch=z9hG4bKucsvwbuo#015#012To: 
<sip:+35892345672*2593*[email protected]>;tag=637481A6-4EE74F43000F18CE-B559AB70#015#012From:
 "Juha Heinanen" <sip:[email protected]>;tag=gmeot#015#012Call-ID: 
[email protected]#015#012CSeq: 409 BYE#015#012Server: Sip Express 
Media Server (1.5.0 (x86/linux))#015#012Content-Length: 0#015#012#015#012--++--
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [onBye, DSMCall.cpp:232] DEBUG: 
onBye
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [runEvent, DSMStateEngine.cpp:527] 
DEBUG: checking transition 'audio ends'
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [runEvent, DSMStateEngine.cpp:527] 
DEBUG: checking transition 'bye recvd'
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [runEvent, DSMStateEngine.cpp:536] 
DEBUG: transition 'bye recvd' matched.
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [runEvent, DSMStateEngine.cpp:563] 
DEBUG: running 1 actions of transition 'bye recvd'
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [runactions, 
DSMStateEngine.cpp:231] DEBUG: running 1 DSM action elements
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [runactions, 
DSMStateEngine.cpp:236] DEBUG: executing 'stop(false)'
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [runEvent, DSMStateEngine.cpp:575] 
DEBUG: changing to new state 'end'
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [reply, AmSipDialog.cpp:1139] 
ERROR: could not find any transaction matching request cseq
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [reply, AmSipDialog.cpp:1143] 
ERROR: request cseq=409; reply code=200; [email protected]; 
local_tag=637481A6-4EE74F43000F18CE-B559AB70; remote_tag=gmeot
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [relayEvent, AmB2BSession.cpp:517] 
DEBUG: AmB2BSession::relayEvent: to other_id=''
Dec 13 15:12:38 sip sems[22931]: [#b5398b70] [processingCycle, 
AmSession.cpp:424] DEBUG: ^^ S 
[[email protected]|637481A6-4EE74F43000F18CE-B559AB70] Disconnected, 
stopped, 0 UACTransPending ^^
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to