Alex Zarubin
2013-Jul-02 23:54 UTC
[asterisk-users] Asterisk 11, SIP. OK to BYE goes to wrong ip/port combination
Hi all, I've read several discussions about asterisk adding 'received' parameter to the top Via header. In our case asterisk (release 11.4) gets BYE from sip proxy (with BYE top via header containing proxy ip address and port) but added 'received' parameter contains ip address from a 2nd Via (or from "From') and OK gets lost. I'm just trying to adjust sip configuration that used to work for simple call scenarios (in 1.4, for example) for Asterisk 11. Your input is appreciated. Thank you. Alex Zarubin In sip.conf [general] nat = no outboundproxy=PROXYipaddress:PROXYport [CARRIER] type=peer host=CARRIERipaddress port=CARRIERport canreinvite=no Outbound call from asterisk is established normally via outbound proxy. BYE coming from the CARRIER <--- SIP read from UDP:PROXYipaddress:PROXYport ---> BYE sip:XYZ at ASTERISKipaddress:5060 SIP/2.0 Via: SIP/2.0/UDP PROXYipaddress:PROXYport;branch=z9hG4bK-whatever-rsMNRDPbOY.0 Via: SIP/2.0/UDP CARRIERipaddress:CARRIERport;branch=z9hG4bK+17d247e1b781cd07f8d5339588fb32091+127.0.0.1+1 From: <sip:ABC at CARRIERipaddress:CARRIERport>;tag=127.0.0.1alUtKGp-07233+1+9362fc7+68f1babf To: <sip:BLAH at OURipaddress>;tag=as1ca814af Call-ID: 146b538429a2380a68bb374543d40c6d at OURipaddress:5060 CSeq: 1035426164 BYE Max-Forwards: 69 User-Agent: Alcatel-Lucent 5060 MGC-8 8.3.0.6.SP1.2 Content-Length: 0 Supported: replaces, 100rel Asterisk adds received=CARRIERipaddress (taken either from 2nd Via or from 'From') and sends OK to CARRIERipaddress:PROXYport. This OK goes nowhere, carrier re-sends BYE several times... <--- Transmitting (no NAT) to CARRIERipaddress:PROXYport ---> SIP/2.0 200 OK Via: SIP/2.0/UDP PROXYipaddress:PROXYport;branch=z9hG4bK-whatever-rsMNRDPbOY.0;received= CARRIERipaddress Via: SIP/2.0/UDP CARRIERipaddress:CARRIERport;branch=z9hG4bK+17d247e1b781cd07f8d5339588fb32091+127.0.0.1+1 From: <sip:ABC at CARRIERipaddress:CARRIERport>;tag=127.0.0.1alUtKGp-07233+1+9362fc7+68f1babf To: <sip:BLAH at OURipaddress>;tag=as1ca814af Call-ID: 146b538429a2380a68bb374543d40c6d at OURipaddress:5060 CSeq: 1035426164 BYE Server: Asterisk PBX 11.4.0 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces, timer Content-Length: 0 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130702/fbfd49ca/attachment.htm>