Summary: | ASTERISK-19512: force rport inconsistent between sip show peer and peers | ||
Reporter: | Sean Darcy (seandarcy) | Labels: | |
Date Opened: | 2012-03-10 09:49:25.000-0600 | Date Closed: | 2012-03-13 10:36:27 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Channels/chan_sip/General |
Versions: | 10.2.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Fedora 16 | Attachments: | |
Description: | I'm trying to sort out a one way audio problem. I have nat=yes in [general] and in each device. sip show peers says rport is not forced: {noformat} Name/username Host Dyn Forcerport ACL Port Status Description jnctn/<myusername> <my host> N 5060 OK (11 ms) {noformat} BUT: sip show peer jnctn ........ Force rport : Yes sip.conf: {noformat} [jnctn] nat=yes fromdomain=jnctn.net host=sip.jnctn.net context=junction-in insecure=invite directmedia=no dtmfmode=auto defaultuser=<usrname> secret= ; MY_PASSWORD type=peer qualify=80 {noformat} | ||
Comments: | By: Matt Jordan (mjordan) 2012-03-13 10:36:22.111-0500 nat = force_rport is a subset of nat = yes. From sip.conf: ; nat = force_rport ; Force rport to always be on. ; nat = yes ; Force rport to always be on and perform comedia RTP handling. So if nat = yes is specified, then force rport is on by default as well. 'sip show peers' shows 'N' if NAT is being used, which at a minimum, is the case if nat = force_rport or nat = yes. Otherwise, it displays a blank value. In other words, 'N' stands for "NAT", as opposed to "No". So the output for sip show peers actually matches what is being displayed by sip show peer. By: Sean Darcy (seandarcy) 2012-03-14 16:41:08.659-0500 OK, maybe it's obvious to all that N means NAT in this context, and not NO. It wasn't obvious to me. And in sip show peer it gives Yes or No, not Nat or No. Wouldn't Y be much clearer, and leave it blank for for No? Or do some existing scripts use this value? |