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:[email protected]>;tag=001469a7180c00a6368fbc8e-7fedf772.
To: <sip:[email protected]>.
Call-ID: 
[email protected]<mailto:[email protected]>.
Max-Forwards: 70.
Date: Thu, 23 Jul 2015 02:53:26 GMT.
CSeq: 265 REGISTER.
User-Agent: Cisco-CP7940G/8.0.
Contact: 
<sip:[email protected]: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: 
[email protected]<mailto:[email protected]>.
From: <sip:[email protected]>;tag=001469a7180c00a6368fbc8e-7fedf772.
To: <sip:[email protected]>;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: [email protected] 
[mailto:[email protected]] On Behalf Of Brendan Ord
Sent: Thursday, 23 July 2015 10:51 AM
To: '[email protected]'; [email protected]
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: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Andres
Sent: Wednesday, 22 July 2015 9:29 PM
To: [email protected]<mailto:[email protected]>
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/>
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to