[U][B]Relevante Teile aus der ser.cfg:[/B][/U]
route {
...
if(method=="INVITE" || method=="CANCEL"){
# go to failure_route[3]
t_on_failure("3");
};
...
} ### Ende route
######################################################################
# ---------------- failure routing logic 3 ------------------------- #
# -- serielles Forking - Anrufweiterschaltung zu 2tem SIP-Telefon -- #
failure_route[3] {
log(1, "----------------------------------------\n");
log(1, " Failure Route 3 \n");
if(t_check_status("(408)")){
log(1, "408 -- Route 3 \n");
};
log(1, "SIPPHONE \n");
exec_msg('printenv SRCIP > /tmp/ERROR;
cat >> /tmp/ERROR');
exec_dset('QUERY="select sip_phone from subscriber where username=\"$SIP_OUSER\"";
SIP_PHONE=`mysql -Buser -pheslo -e "$QUERY" ser`;
if [ -z "$SIP_PHONE" ] ; then exit 1; fi ;
echo sip:[email protected]; echo>/dev/null');
append_branch();
log(1, "redirection to another SIP-Phone \n");
t_relay();
} ### Ende failure_route[3]
[B][U]Fehleranzeige in der Konsole:[/U][/B]
32(6935) ----------------------------------------
32(6935) Failure Route 3
32(6935) 408 -- Route 3
32(6935) SIPPHONE
32(6935) redirection to another SIP-Phone
30(6929) ERROR:parse_first_line: bad request first line
30(6929) ERROR: at line 0 char 44:
30(6929) ERROR: parsed so far: INVITE sip:[COLOR="Red"]sip_phone[/COLOR] [email protected]
30(6929) ERROR:parse_first_line: bad message
30(6929) ERROR: parse_msg: message=<INVITE sip:[COLOR="Red"]sip_phone[/COLOR] [email protected] SIP/2.0
Record-Route: <sip:192.168.175.10;ftag=qxztbiyqv6;lr=on>
Via: SIP/2.0/UDP 192.168.175.10;branch=z9hG4bKe1a2.195f2117.2
Via: SIP/2.0/UDP 192.168.175.6:2051;branch=z9hG4bK-owtmzwsa6pmg;rport=2051
From: "snom300" <sip:[email protected]>;tag=qxztbiyqv6
To: <sip:[email protected]>
Call-ID: 3c4de43dbbfd-9dz46362yemt@snom300-000413258CF0
CSeq: 1 INVITE
Max-Forwards: 16
Contact: <sip:[email protected]:2051;line=s0xl9c0t>;flow-id=1
P-Key-Flags: keys="3"
User-Agent: snom300/6.2.3
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Supported: timer, replaces, callerid
Session-Expires: 3600;refresher=uas
Min-SE: 90
Content-Type: application/sdp
Content-Length: 477
v=0
o=root 1242982447 1242982447 IN IP4 192.168.175.6
s=call
c=IN IP4 192.168.175.6
t=0 0
m=audio 60224 RTP/AVP 0 8 9 2 3 18 4 101
a=crypto:1 AES_CM_128_HMAC_SHA1_32 inline:eXhJMdyFor+q7SEfn0gpH5d1+sTUh8vWxKVCXC9a
a=rtpmap:0 pcmu/8000
a=rtpmap:8 pcma/8000
a=rtpmap:9 g722/8000
a=rtpmap:2 g726-32/8000
a=rtpmap:3 gsm/8000
a=rtpmap:18 g729/8000
a=rtpmap:4 g723/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=encryption:optional
a=sendrecv
>
23(6907) ERROR: receive_msg: parse_msg failed