[OpenSIPS-Users] Catch 183 Session Progress

SamyGo govoiper at gmail.com
Mon Oct 15 13:10:29 CEST 2012


Hi,

Is this code in your reply route ? make sure you set the reply route before
t_relay()'ing the call so that any responses from the other end go through
the designated relpy route and there this condition will work.

route {
....
t_on_reply("1");
t_relay()
....

}

onreply_route[1] {
if (t_check_status("183")) {
     # no support for early media
           xlog("########LOG: Individuo il 183!!!!\n" );
        }
}

Also can you tell what is the debug=X in your configurations.

Thanks,
Sammy




On Mon, Oct 15, 2012 at 3:44 PM, spady <spady77 at gmail.com> wrote:

> Hi all, in a trace like this, how can I catch the 183 message? I tried with
> this code
>
> if (t_check_status("183")) {
>      # no support for early media
>            xlog("########LOG: Individuo il 183!!!!\n" );
>         }
>
> or
>
> if (status=="183") {
>      # no support for early media
>            xlog("########LOG: Individuo il 183!!!!\n" );
>         }
>
> But never appear on opensips log that i found it. I can't understand where,
> in the script, i have to put it
> What's wrong?
>
>
> U 2012/10/15 11:46:48.362832 172.16.52.51:5060 -> 172.16.55.100:5060
> INVITE sip:3707 at 172.16.55.100;user=phone SIP/2.0.
> Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, PRACK, REFER, NOTIFY, UPDATE.
> Supported: 100rel,from-change,timer,histinfo.
> User-Agent: OXO_GW_820/044.001.
> Session-Expires: 43200.
> P-Asserted-Identity: "Pippo" <sip:100 at 172.16.52.51;user=phone>.
> History-Info: <sip:3707 at 172.16.55.100;user=phone>;index=1.
> To: <sip:3707 at 172.16.55.100;user=phone>.
> From: "Pippo"
> <sip:100 at 172.16.52.51;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> Contact: "Pippo" <sip:100 at 172.16.52.51;transport=UDP;user=phone>.
> Content-Type: application/sdp.
> Call-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> CSeq: 199290652 INVITE.
> Via: SIP/2.0/UDP
> 172.16.52.51;rport;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684.
> Max-Forwards: 70.
> Content-Length: 215.
> .
> v=0.
> o=default 1350294284 1350294284 IN IP4 172.16.52.51.
> s=-.
> c=IN IP4 172.16.52.51.
> t=0 0.
> m=audio 32000 RTP/AVP 8 106 0.
> a=sendrecv.
> a=rtpmap:106 telephone-event/8000.
> a=fmtp:106 0-15.
> a=ptime:20.
> a=maxptime:90.
>
>
> U 2012/10/15 11:46:48.366078 172.16.55.100:5060 -> 172.16.52.51:5060
> SIP/2.0 100 Giving a try.
> To: <sip:3707 at 172.16.55.100;user=phone>.
> From: "Pippo"
> <sip:100 at 172.16.52.51;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> Call-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> CSeq: 199290652 INVITE.
> Via: SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;rport=5060;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684.
> Server: OpenSIPS-Longwave.
> Content-Length: 0.
> .
>
>
> T 2012/10/15 11:46:48.367179 172.16.55.100:44921 -> 10.9.101.163:5068 [AP]
> INVITE sip:3707 at lync.lwtec.eu:5068;user=phone SIP/2.0.
> Record-Route: <sip:172.16.55.100;transport=tcp;r2=on;lr;did=9c5.414e9ea5>.
> Record-Route: <sip:172.16.55.100;r2=on;lr;did=9c5.414e9ea5>.
> Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, PRACK, REFER, NOTIFY, UPDATE.
> Supported: 100rel,from-change,timer,histinfo.
> User-Agent: OXO_GW_820/044.001.
> Session-Expires: 43200.
> P-Asserted-Identity: "Pippo" <sip:100 at 172.16.52.51;user=phone>.
> History-Info: <sip:3707 at 172.16.55.100;user=phone>;index=1.
> To: <sip:3707 at 172.16.55.100;user=phone>.
> From: "Pippo"
> <sip:100 at 172.16.52.51;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> Contact: "Pippo" <sip:100 at 172.16.52.51;transport=UDP;user=phone>.
> Content-Type: application/sdp.
> Call-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> CSeq: 199290652 INVITE.
> Via: SIP/2.0/TCP 172.16.55.100;branch=z9hG4bKb16.90f5e873.0.
> Via: SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;rport=5060;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684.
> Max-Forwards: 69.
> Content-Length: 215.
> .
> v=0.
> o=default 1350294284 1350294284 IN IP4 172.16.52.51.
> s=-.
> c=IN IP4 172.16.52.51.
> t=0 0.
> m=audio 32000 RTP/AVP 8 106 0.
> a=sendrecv.
> a=rtpmap:106 telephone-event/8000.
> a=fmtp:106 0-15.
> a=ptime:20.
> a=maxptime:90.
>
>
> T 2012/10/15 11:46:48.368471 10.9.101.163:5068 -> 172.16.55.100:44921 [AP]
> SIP/2.0 100 Trying.
> FROM:
> "Pippo"<sip:100 at 172.16.52.51
> ;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> TO: <sip:3707 at 172.16.55.100;user=phone>.
> CSEQ: 199290652 INVITE.
> CALL-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> VIA: SIP/2.0/TCP 172.16.55.100;branch=z9hG4bKb16.90f5e873.0,SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684;rport=5060.
> CONTENT-LENGTH: 0.
> .
>
>
> T 2012/10/15 11:46:49.073898 10.9.101.163:5068 -> 172.16.55.100:44921 [AP]
> SIP/2.0 183 Session Progress.
> FROM:
> "Pippo"<sip:100 at 172.16.52.51
> ;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> TO: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727;epid=D430E933C4.
> CSEQ: 199290652 INVITE.
> CALL-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> VIA: SIP/2.0/TCP 172.16.55.100;branch=z9hG4bKb16.90f5e873.0,SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684;rport=5060.
> RECORD-ROUTE:
>
> <sip:172.16.55.100;transport=tcp;r2=on;lr;did=9c5.414e9ea5>,<sip:172.16.55.100;r2=on;lr;did=9c5.414e9ea5>.
> CONTACT: <sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163>.
> CONTENT-LENGTH: 255.
> CONTENT-TYPE: application/sdp.
> ALLOW: CANCEL.
> ALLOW: BYE.
> ALLOW: UPDATE.
> ALLOW: PRACK.
> REQUIRE: 100rel.
> SERVER: RTCC/4.0.0.0 MediationServer.
> Rseq: 1.
> .
> v=0.
> o=- 322 1 IN IP4 10.9.101.163.
> s=session.
> c=IN IP4 10.9.101.163.
> b=CT:1000.
> t=0 0.
> m=audio 49932 RTP/AVP 8 106.
> c=IN IP4 10.9.101.163.
> a=rtcp:49933.
> a=label:Audio.
> a=sendrecv.
> a=rtpmap:8 PCMA/8000.
> a=rtpmap:106 telephone-event/8000.
> a=fmtp:106 0-16.
>
>
> U 2012/10/15 11:46:49.075356 172.16.55.100:5060 -> 172.16.52.51:5060
> SIP/2.0 183 Session Progress.
> FROM:
> "Pippo"<sip:100 at 172.16.52.51
> ;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> TO: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727;epid=D430E933C4.
> CSEQ: 199290652 INVITE.
> CALL-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> VIA: SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684;rport=5060.
> RECORD-ROUTE:
>
> <sip:172.16.55.100;transport=tcp;r2=on;lr;did=9c5.414e9ea5>,<sip:172.16.55.100;r2=on;lr;did=9c5.414e9ea5>.
> CONTACT: <sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163>.
> CONTENT-LENGTH: 255.
> CONTENT-TYPE: application/sdp.
> ALLOW: CANCEL.
> ALLOW: BYE.
> ALLOW: UPDATE.
> ALLOW: PRACK.
> REQUIRE: 100rel.
> SERVER: RTCC/4.0.0.0 MediationServer.
> Rseq: 1.
> .
> v=0.
> o=- 322 1 IN IP4 10.9.101.163.
> s=session.
> c=IN IP4 10.9.101.163.
> b=CT:1000.
> t=0 0.
> m=audio 49932 RTP/AVP 8 106.
> c=IN IP4 10.9.101.163.
> a=rtcp:49933.
> a=label:Audio.
> a=sendrecv.
> a=rtpmap:8 PCMA/8000.
> a=rtpmap:106 telephone-event/8000.
> a=fmtp:106 0-16.
>
>
> U 2012/10/15 11:46:49.081243 172.16.52.51:5060 -> 172.16.55.100:5060
> PRACK sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163 SIP/2.0.
> Route: <sip:172.16.55.100;r2=on;lr;did=9c5.414e9ea5>.
> Route: <sip:172.16.55.100;transport=tcp;r2=on;lr;did=9c5.414e9ea5>.
> RAck: 1 199290652 INVITE.
> User-Agent: OXO_GW_820/044.001.
> To: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727.
> From:
> <sip:100 at 172.16.52.51;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> Call-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> CSeq: 199290653 PRACK.
> Via: SIP/2.0/UDP
> 172.16.52.51;rport;branch=z9hG4bKc251164105a928a498f5929f05f70361.
> Max-Forwards: 70.
> Content-Length: 0.
> .
>
>
> T 2012/10/15 11:46:49.082991 172.16.55.100:44921 -> 10.9.101.163:5068 [AP]
> PRACK sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163 SIP/2.0.
> RAck: 1 199290652 INVITE.
> User-Agent: OXO_GW_820/044.001.
> To: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727.
> From:
> <sip:100 at 172.16.52.51;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> Call-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> CSeq: 199290653 PRACK.
> Via: SIP/2.0/TCP 172.16.55.100;branch=z9hG4bKc16.62a48a97.0.
> Via: SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;rport=5060;branch=z9hG4bKc251164105a928a498f5929f05f70361.
> Max-Forwards: 69.
> Content-Length: 0.
> .
>
>
> T 2012/10/15 11:46:49.086412 10.9.101.163:5068 -> 172.16.55.100:44921 [AP]
> SIP/2.0 200 OK.
> FROM:
> <sip:100 at 172.16.52.51;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> TO: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727;epid=D430E933C4.
> CSEQ: 199290653 PRACK.
> CALL-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> VIA: SIP/2.0/TCP 172.16.55.100;branch=z9hG4bKc16.62a48a97.0,SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;branch=z9hG4bKc251164105a928a498f5929f05f70361;rport=5060.
> CONTENT-LENGTH: 0.
> SERVER: RTCC/4.0.0.0 MediationServer.
> .
>
>
> U 2012/10/15 11:46:49.087375 172.16.55.100:5060 -> 172.16.52.51:5060
> SIP/2.0 200 OK.
> FROM:
> <sip:100 at 172.16.52.51;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> TO: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727;epid=D430E933C4.
> CSEQ: 199290653 PRACK.
> CALL-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> VIA: SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;branch=z9hG4bKc251164105a928a498f5929f05f70361;rport=5060.
> CONTENT-LENGTH: 0.
> SERVER: RTCC/4.0.0.0 MediationServer.
> .
>
>
> T 2012/10/15 11:46:49.831450 10.9.101.163:5068 -> 172.16.55.100:44921 [AP]
> SIP/2.0 183 Session Progress.
> FROM:
> "Pippo"<sip:100 at 172.16.52.51
> ;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> TO: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727;epid=D430E933C4.
> CSEQ: 199290652 INVITE.
> CALL-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> VIA: SIP/2.0/TCP 172.16.55.100;branch=z9hG4bKb16.90f5e873.0,SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684;rport=5060.
> RECORD-ROUTE:
>
> <sip:172.16.55.100;transport=tcp;r2=on;lr;did=9c5.414e9ea5>,<sip:172.16.55.100;r2=on;lr;did=9c5.414e9ea5>.
> CONTACT: <sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163>.
> CONTENT-LENGTH: 0.
> ALLOW: CANCEL.
> ALLOW: BYE.
> ALLOW: UPDATE.
> ALLOW: PRACK.
> SERVER: RTCC/4.0.0.0 MediationServer.
> .
>
>
> U 2012/10/15 11:46:49.832831 172.16.55.100:5060 -> 172.16.52.51:5060
> SIP/2.0 183 Session Progress.
> FROM:
> "Pippo"<sip:100 at 172.16.52.51
> ;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> TO: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727;epid=D430E933C4.
> CSEQ: 199290652 INVITE.
> CALL-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> VIA: SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684;rport=5060.
> RECORD-ROUTE:
>
> <sip:172.16.55.100;transport=tcp;r2=on;lr;did=9c5.414e9ea5>,<sip:172.16.55.100;r2=on;lr;did=9c5.414e9ea5>.
> CONTACT: <sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163>.
> CONTENT-LENGTH: 0.
> ALLOW: CANCEL.
> ALLOW: BYE.
> ALLOW: UPDATE.
> ALLOW: PRACK.
> SERVER: RTCC/4.0.0.0 MediationServer.
> .
>
>
> T 2012/10/15 11:46:50.042796 10.9.101.163:5068 -> 172.16.55.100:44921 [AP]
> SIP/2.0 180 Ringing.
> FROM:
> "Pippo"<sip:100 at 172.16.52.51
> ;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> TO: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727;epid=D430E933C4.
> CSEQ: 199290652 INVITE.
> CALL-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> VIA: SIP/2.0/TCP 172.16.55.100;branch=z9hG4bKb16.90f5e873.0,SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684;rport=5060.
> RECORD-ROUTE:
>
> <sip:172.16.55.100;transport=tcp;r2=on;lr;did=9c5.414e9ea5>,<sip:172.16.55.100;r2=on;lr;did=9c5.414e9ea5>.
> CONTACT: <sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163>.
> CONTENT-LENGTH: 0.
> ALLOW: CANCEL.
> ALLOW: BYE.
> ALLOW: UPDATE.
> ALLOW: PRACK.
> SERVER: RTCC/4.0.0.0 MediationServer.
> .
>
>
> T 2012/10/15 11:46:50.043132 10.9.101.163:5068 -> 172.16.55.100:44921 [AP]
> SIP/2.0 183 Session Progress.
> FROM:
> "Pippo"<sip:100 at 172.16.52.51
> ;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> TO: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727;epid=D430E933C4.
> CSEQ: 199290652 INVITE.
> CALL-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> VIA: SIP/2.0/TCP 172.16.55.100;branch=z9hG4bKb16.90f5e873.0,SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684;rport=5060.
> RECORD-ROUTE:
>
> <sip:172.16.55.100;transport=tcp;r2=on;lr;did=9c5.414e9ea5>,<sip:172.16.55.100;r2=on;lr;did=9c5.414e9ea5>.
> CONTACT: <sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163>.
> CONTENT-LENGTH: 0.
> ALLOW: CANCEL.
> ALLOW: BYE.
> ALLOW: UPDATE.
> ALLOW: PRACK.
> SERVER: RTCC/4.0.0.0 MediationServer.
> .
>
>
> U 2012/10/15 11:46:50.044785 172.16.55.100:5060 -> 172.16.52.51:5060
> SIP/2.0 180 Ringing.
> FROM:
> "Pippo"<sip:100 at 172.16.52.51
> ;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> TO: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727;epid=D430E933C4.
> CSEQ: 199290652 INVITE.
> CALL-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> VIA: SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684;rport=5060.
> RECORD-ROUTE:
>
> <sip:172.16.55.100;transport=tcp;r2=on;lr;did=9c5.414e9ea5>,<sip:172.16.55.100;r2=on;lr;did=9c5.414e9ea5>.
> CONTACT: <sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163>.
> CONTENT-LENGTH: 0.
> ALLOW: CANCEL.
> ALLOW: BYE.
> ALLOW: UPDATE.
> ALLOW: PRACK.
> SERVER: RTCC/4.0.0.0 MediationServer.
> .
>
>
> U 2012/10/15 11:46:50.045966 172.16.55.100:5060 -> 172.16.52.51:5060
> SIP/2.0 183 Session Progress.
> FROM:
> "Pippo"<sip:100 at 172.16.52.51
> ;user=phone>;tag=2dd6eb349c4b183f08a67d2ad065655e.
> TO: <sip:3707 at 172.16.55.100;user=phone>;tag=5a974d1727;epid=D430E933C4.
> CSEQ: 199290652 INVITE.
> CALL-ID: 3f9d299c479416397996522871b87398 at 172.16.52.51.
> VIA: SIP/2.0/UDP
>
> 172.16.52.51;received=172.16.52.51;branch=z9hG4bK8deb021f4c19be2ec40d3d277d6a6684;rport=5060.
> RECORD-ROUTE:
>
> <sip:172.16.55.100;transport=tcp;r2=on;lr;did=9c5.414e9ea5>,<sip:172.16.55.100;r2=on;lr;did=9c5.414e9ea5>.
> CONTACT: <sip:LYNC.lwtec.eu:5068;transport=Tcp;maddr=10.9.101.163>.
> CONTENT-LENGTH: 0.
> ALLOW: CANCEL.
> ALLOW: BYE.
> ALLOW: UPDATE.
> ALLOW: PRACK.
> SERVER: RTCC/4.0.0.0 MediationServer.
>
>
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/Catch-183-Session-Progress-tp7582272.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121015/85201a7a/attachment-0001.htm>


More information about the Users mailing list