RFC not specified Contack header at ACK... So anyway I already tried it yesterday)) Unsuccessfull...
2014-09-05 12:54 GMT+04:00 Daniel-Constantin Mierla <miconda@gmail.com>:
Hello,
I noticed that the ACK is missing the Contact header -- not sure if specs mention anything about being mandatory or not, but you can try to get the contact there.
Cheers,
Daniel
On 05/09/14 08:37, Yuriy Gorlichenko wrote:
Hello All. I have kamailio with provider connection (trunk)
When I call to external number through my provider call extablished Ok. But when i try hangup call from external number no BYE sended to me. When I hangup call from my kamailio (internal num) I send by to exteral number and it respond me Ok so session if fully complete. I guess that BYE from external number not recieves to me because I have wrong routing header fields at my INVITe or ACK messages, but can not find any information what what header must recieve info to external number where send BYE at hangup or thomething like this.
This is my little dump for situation wherer I hangup from internal number and BYE finished successfully:
IP my.kamailio.com.5068 > my.proider.com.5060: UDP, length 1599E....< .@.'....6........G.RINVITE sip:12345678900@my.provider.com:5060 SIP/2.0Record-Route: <sip:my.kamailio.com:5068;nat=yes;ftag=as5872f19e;lr=on>Via: SIP/2.0/UDP my.kamailio.com:5068;branch=z9hG4bK5c63.57e9ba848fadd4e228caa4445baf9d76.2Via: SIP/2.0/UDP my.client.internal.ip:50600;branch=z9hG4bK4d90cebf;rport=50600Max-Forwards: 70From: <sip:TrunkNum@my.provider.com>;tag=as5872f19eContact:<TrunkNum@my.kamailio.com:5068>CSeq: 102 INVITEUser-Agent: Asterisk PBX 12.5.0Date: Thu, 04 Sep 2014 21:53:13 GMTAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGESupported: replaces, timerContent-Type: application/sdpContent-Length: 544Proxy-Authorization: Digest username="TrunkNum", realm="my.provider.com", nonce="VAjgfVQI31EsekTXtYjBzKa59XFSJB5P", uri="sip:12345678900@my.provider.com:5060", qop=auth, nc=00000001, cnonce="3619116795", response="f5bc1d8125dd9e448d2e73764823adee", algorithm=MD5
v=0o=root 1022912010 1022912010 IN IP4 my.kamailio.coms=Asterisk PBX 12.5.0c=IN IP4 my.kamailio.comt=0 0a=ice-litem=audio 30032 RTP/AVP 0 3 8 101a=rtpmap:0 PCMU/8000a=rtpmap:3 GSM/8000a=rtpmap:8 PCMA/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=ptime:20a=maxptime:150a=sendrecva=rtcp:30033a=ice-ufrag:3o8JrqkFa=ice-pwd:m8q4khQT8NKSABqeUkKs7ed8ClR2a=candidate:TgT1dfTnI3kBgWQ
IP my.proider.com.5060 > my.kamailio.com.5068: UDP, length 1882E..... ./...6...........b..SIP/2.0 200 OKVia: SIP/2.0/UDP my.kamailio.com:5068;rport=5068;received=my.kamailio.com;branch=z9hG4bK5c63.57e9ba848fadd4e228caa4445baf9d76.2Via: SIP/2.0/UDP my.client.internal.ip:50600;branch=z9hG4bK4d90cebf;rport=50600Record-Route: <sip:my.proider.com;lr=on;ftag=as5872f19e>Record-Route: <sip:my.kamailio.com:5068;nat=yes;ftag=as5872f19e;lr=on>From: <sip:TrunkNum@my.provider.com>;tag=as5872f19eTo: <sip:12345678900@my.provider.com:5068>;tag=5rF0FNamQ99gHCSeq: 102 INVITEUser-Agent: provider agentAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFYSupported: timer, precondition, path, replacesAllow-Events: talk, hold, conference, referContent-Type: application/sdpContent-Disposition: sessionContent-Length: 746X-provider agentOutboundGateway: sip:5574012345678900@62.93.147.149X-provider agentOutboundCarrierID: 23705946361020X-provider agentCarrierRate: 0.20180X-provider agentCloudRate: 0.00300Remote-Party-ID: "Outbound Call" <sip:5060@my.provider.com>;party=calling;privacy=off;screen=no
v=0o=FreeSWITCH 1409844386 1409844387 IN IP4 externail.number.end.ips=FreeSWITCHc=IN IP4 externail.number.end.ipt=0 0a=msid-semantic: WMS hQBNQPw0VjJInvOA0H6HPZyePNO0IIqPm=audio 23216 RTP/AVP 0 101a=rtpmap:0 PCMU/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=silenceSupp:off - - - -a=ptime:20a=ssrc:2990874569 cname:pRs5xP
IP my.kamailio.com.5068 > my.proider.com.5060: UDP, length 596...6........\`.ACK sip:12345678900@externail.number.end.ip:5060;transport=udp SIP/2.0Via: SIP/2.0/UDP my.kamailio.com:5068;branch=z9hG4bK5c63.8c0bfc7de0669f1b8252b97b8431b2e1.0Via: SIP/2.0/UDP my.client.internal.ip:50600;branch=z9hG4bK5420b559;rport=50600Route: <sip:my.proider.com;lr=on;ftag=as5872f19e>Max-Forwards: 70From: <sip:TrunkNum@sip.callsion.com>;tag=as5872f19eTo: <sip:12345678900@my.provider.com:5068>;tag=5rF0FNamQ99gHCSeq: 102 ACKUser-Agent: Asterisk PBX 12.5.0Content-Length: 0
IP my.kamailio.com.5068 > my.proider.com.5060: UDP, length 617...6........q.ZBYE sip:12345678900@externail.number.end.ip:5060;transport=udp SIP/2.0Via: SIP/2.0/UDP my.kamailio.com:5068;branch=z9hG4bK6c63.3deda3c1fee0ef86d7eae9549dd1b194.0Via: SIP/2.0/UDP my.client.internal.ip:50600;branch=z9hG4bK65e48b85;rport=50600Route: <sip:my.proider.com;lr=on;ftag=as5872f19e>Max-Forwards: 70From: <sip:TrunkNum@sip.callsion.com>;tag=as5872f19eTo: <sip:12345678900@my.provider.com:5068>;tag=5rF0FNamQ99gHCSeq: 103 BYEUser-Agent: Asterisk PBX 12.5.0X-Asterisk-HangupCause: Normal ClearingX-Asterisk-HangupCauseCode: 16Content-Length: 0
IP my.proider.com.5060 > my.kamailio.com.5068: UDP, length 568E..T....-.676...........@..SIP/2.0 200 OKVia: SIP/2.0/UDP my.kamailio.com:5068;received=my.kamailio.com;branch=z9hG4bK6c63.3deda3c1fee0ef86d7eae9549dd1b194.0Via: SIP/2.0/UDP my.client.internal.ip:50600;branch=z9hG4bK65e48b85;rport=50600From: <sip:TrunkNum@sip.callsion.com>;tag=as5872f19eTo: <sip:12345678900@my.provider.com:5068>;tag=5rF0FNamQ99gHCSeq: 103 BYEUser-Agent: provider agentAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFYSupported: timer, precondition, path, replacesContent-Length: 0
Thanks for help.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Next Kamailio Advanced Trainings 2014 - http://www.asipto.com Sep 22-25, Berlin, Germany
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Next Kamailio Advanced Trainings 2014 - http://www.asipto.com Sep 22-25, Berlin, Germany