[asterisk-users] Cisco 7940 and PJSIP registration
Brendan Ord
bord at staff.onthenet.com.au
Wed Jul 22 22:12:27 CDT 2015
Hello,
Putting this into pjsip.endpoint_custom.conf;
[233](+)
force_rport=no
Didn't work - as can be seen below, Asterisk is still replying on the source port instead of 5060;
#
U 172.22.4.50:51037 -> 172.22.4.8:5060
REGISTER sip:172.22.4.8 SIP/2.0.
Via: SIP/2.0/UDP 172.22.4.50:5060;branch=z9hG4bK6c6b20ee.
From: <sip:233 at 172.22.4.8>;tag=001469a7180c00a6368fbc8e-7fedf772.
To: <sip:233 at 172.22.4.8>.
Call-ID: 001469a7-180c0002-58f81e51-5a17e8fb at 172.22.4.50<mailto:001469a7-180c0002-58f81e51-5a17e8fb at 172.22.4.50>.
Max-Forwards: 70.
Date: Thu, 23 Jul 2015 02:53:26 GMT.
CSeq: 265 REGISTER.
User-Agent: Cisco-CP7940G/8.0.
Contact: <sip:233 at 172.22.4.50:5060;user=phone;transport=udp>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-001469a7180c>";+u.sip!model.ccm.cisco.com="8".
Content-Length: 0.
Expires: 120.
.
#
U 172.22.4.8:5060 -> 172.22.4.50:51037
SIP/2.0 401 Unauthorized.
Via: SIP/2.0/UDP 172.22.4.50:5060;rport=51037;received=172.22.4.50;branch=z9hG4bK6c6b20ee.
Call-ID: 001469a7-180c0002-58f81e51-5a17e8fb at 172.22.4.50<mailto:001469a7-180c0002-58f81e51-5a17e8fb at 172.22.4.50>.
From: <sip:233 at 172.22.4.8>;tag=001469a7180c00a6368fbc8e-7fedf772.
To: <sip:233 at 172.22.4.8>;tag=z9hG4bK6c6b20ee.
CSeq: 265 REGISTER.
WWW-Authenticate: Digest realm="asterisk",nonce="1437620030/5d32272e81266a723b2c090074799fe2",opaque="65e177e35509170b",algorithm=md5,qop="auth".
Server: FPBX-AsteriskNOW-12.0.73(13.4.0).
Content-Length: 0.
.
Brendan Ord
OntheNet - Network Engineer
P 07 5553 9222
F 07 5593 3557
Level One, 165 Varsity Parade Varsity Lakes Qld 4227 (Map<https://goo.gl/maps/p25WF>)
www.OntheNet.com.au<http://www.onthenet.com.au/>
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Brendan Ord
Sent: Thursday, 23 July 2015 10:51 AM
To: 'andres at telesip.net'; asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Cisco 7940 and PJSIP registration
Thank you.
I read that last yesterday afternoon, and I could've sworn I tried that but I will look into it again (I've tried so many different things it was getting cloudy what I've tried and what worked etc, combined that the extension config gets messed up after playing with it so much so I'm often recreating it as well).
I also found a bug report in the FreePBX bug tracker http://issues.freepbx.org/browse/FREEPBX-8517
It's not exactly the same, but it's very similar and the closing comment was "limitation of pjsip". I might be getting ahead of myself, but would anyone be able to comment on that? Anyway, this looks like a FreePBX issue so this isn't the ideal forum to discuss their bugs.
Brendan Ord
OntheNet - Network Engineer
P 07 5553 9222
F 07 5593 3557
Level One, 165 Varsity Parade Varsity Lakes Qld 4227 (Map<https://goo.gl/maps/p25WF>)
www.OntheNet.com.au<http://www.onthenet.com.au/>
From: asterisk-users-bounces at lists.digium.com<mailto:asterisk-users-bounces at lists.digium.com> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Andres
Sent: Wednesday, 22 July 2015 9:29 PM
To: asterisk-users at lists.digium.com<mailto:asterisk-users at lists.digium.com>
Subject: Re: [asterisk-users] Cisco 7940 and PJSIP registration
On 7/22/15 1:38 AM, Brendan Ord wrote:
I've gotten to the bottom of this;
Seems that the pjsip.endpoint_custom.conf isn't getting included properly, or my syntax is wrong.
Last time I checked you have to put a plus sign to combine parameters from main and custom file. Like this:
[233](+)
force_rport=no
If I put force_rport=no into pjsip.endpoint.conf and reload only Asterisk, everything works perfectly. Unfortunately, I'm using FreePBX, so it owns this file and my changes won't persist a FreePBX reload.
Brendan Ord
OntheNet - Network Engineer
P 07 5553 9222
F 07 5593 3557
Level One, 165 Varsity Parade Varsity Lakes Qld 4227 (Map<https://goo.gl/maps/p25WF>)
www.OntheNet.com.au<http://www.onthenet.com.au/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150723/6ba306b0/attachment.html>
More information about the asterisk-users
mailing list