karlma / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Multi Tenant registration problem #959

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Server with 6 domains and master is ip address.
2. the domains that have 2 o 3 ext. register fine, the domains that have more 
ext. only register 2.
3.All the extension are created fine and are in created in the directory/xml 
fine.

What is the expected output? What do you see instead?
2015-05-14 22:38:50.748526 [WARNING] sofia_reg.c:1742 SIP auth challenge 
(REGISTER) on sofia profile 'internal' for [204@XXXX.XXXX.com] from ip 
XX.XX.XX.XX
2015-05-14 22:38:51.968424 [WARNING] sofia_reg.c:1742 SIP auth challenge 
(REGISTER) on sofia profile 'internal' for [202@XXXX.XXXX.com] from ip 
XX.XX.XX.XX
2015-05-14 22:38:52.728417 [WARNING] sofia_reg.c:1742 SIP auth challenge 
(REGISTER) on sofia profile 'internal' for [201@XXXX.XXXX.com] from ip 
XX.XX.XX.XX
2015-05-14 22:38:59.348434 [WARNING] sofia_reg.c:1742 SIP auth challenge 
(REGISTER) on sofia profile 'internal' for [205@XXXX.XXXX.com] from ip 
XX.XX.XX.XX
2015-05-14 22:39:00.028468 [WARNING] sofia_reg.c:1742 SIP auth challenge 
(REGISTER) on sofia profile 'internal' for [203@XXXX.XXXX.com] from ip 
XX.XX.XX.XX

What version of the product are you using? On what operating system?
ver 3.8 ubuntu 12.04

Please provide any additional information below.
we delete the domains and recreate and still same problem, something we see is 
in the tenant with more 3 ext. only the first 2 that try register make the 
registration the other are trying but not register.

Thanks for any info can you give to us.

Roberto

Original issue reported on code.google.com by rbaan0...@gmail.com on 15 May 2015 at 3:02

GoogleCodeExporter commented 9 years ago
From the freeswitch command prompt do a: sofia global siptrace on

Then try and register the phones that will not register and post the results.

Original comment by Digitald...@gmail.com on 15 May 2015 at 7:19

GoogleCodeExporter commented 9 years ago
In conf/directory check the xml file named <domain>.xml open it to report if 
has content or if its empty.

Original comment by markjcrane@gmail.com on 15 May 2015 at 9:30

GoogleCodeExporter commented 9 years ago
Thanks for your fast response the directory <domain>.xml is fine, I check and 
have content like the others domains, i going to do the sofia siptrace to post.

Original comment by rbaan0...@gmail.com on 15 May 2015 at 11:45

GoogleCodeExporter commented 9 years ago
Below is what i capture from the sip trace the phone are Yealink we have the 
other domains working with Yealink too and they register in this case this 
domain have 6 phones and only allow 2 registrations.

 ------------------------------------------------------------------------
recv 502 bytes from udp/[XX.XX.XX.XX]:6567 at 19:04:37.626626:
   ------------------------------------------------------------------------
   REGISTER sip:XXXX.cybrtel.com SIP/2.0
   Via: SIP/2.0/UDP 192.168.1.20:5062;branch=z9hG4bK106995641
   From: "203" <sip:203@XXXX.cybrtel.com>;tag=2021612978
   To: "203" <sip:203@XXXX.cybrtel.com>
   Call-ID: 1438559723@192.168.1.20
   CSeq: 2627 REGISTER
   Contact: <sip:203@192.168.1.20:5062>
   Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
   Max-Forwards: 70
   User-Agent: Yealink SIP-T26P 6.70.0.130
   Expires: 600
   Content-Length: 0

   ------------------------------------------------------------------------
send 649 bytes to udp/[XX.XX.XX.XX]:5062 at 19:04:37.626854:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.20:5062;branch=z9hG4bK106995641;received=XX.XX.XX.XX
   From: "203" <sip:203@XXXX.cybrtel.com>;tag=2021612978
   To: "203" <sip:203@XXXX.cybrtel.com>;tag=rH4Q1H7y42e2p
   Call-ID: 1438559723@192.168.1.20
   CSeq: 2627 REGISTER
   User-Agent: FreeSWITCH-mod_sofia/1.5.15b+git~20150505T131350Z~359ff2ac70~64bit
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
   Supported: timer, path, replaces
   WWW-Authenticate: Digest realm="XXXX.cybrtel.com", nonce="b6ba9548-fb56-11e4-9b4b-d714bb1e458d", algorithm=MD5, qop="auth"
   Content-Length: 0

   ------------------------------------------------------------------------
 ------------------------------------------------------------------------
                     sofia global siptrace onrecv 502 bytes from udp/[XX.XX.XX.XX]:6568 at 19:04:36.866511:
   ------------------------------------------------------------------------
   REGISTER sip:procon.cybrtel.com SIP/2.0
   Via: SIP/2.0/UDP 192.168.1.17:5062;branch=z9hG4bK1328945953
   From: "205" <sip:205@XXXX.cybrtel.com>;tag=193596749
   To: "205" <sip:205@pXXXX.cybrtel.com>
   Call-ID: 919538665@192.168.1.17
   CSeq: 19013 REGISTER
   Contact: <sip:205@192.168.1.17:5062>
   Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
   Max-Forwards: 70
   User-Agent: Yealink SIP-T26P 6.70.0.130
   Expires: 600
   Content-Length: 0

   ------------------------------------------------------------------------
send 649 bytes to udp/[XX.XX.XX.XX]:5062 at 19:04:36.866713:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.17:5062;branch=z9hG4bK1328945953;received=XX.XX.XX.XX
   From: "205" <sip:205@XXXX.cybrtel.com>;tag=193596749
   To: "205" <sip:205@XXXX.cybrtel.com>;tag=Q8aZZppU7SrFB
   Call-ID: 919538665@192.168.1.17
   CSeq: 19013 REGISTER
   User-Agent: FreeSWITCH-mod_sofia/1.5.15b+git~20150505T131350Z~359ff2ac70~64bit
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
   Supported: timer, path, replaces
   WWW-Authenticate: Digest realm="XXXX.cybrtel.com", nonce="af120b64-fb56-11e4-9b4a-d714bb1e458d", algorithm=MD5, qop="auth"
   Content-Length: 0

Original comment by rbaan0...@gmail.com on 15 May 2015 at 11:19

GoogleCodeExporter commented 9 years ago
That would have been great if you showed a little more of what came next, the 
interesting part of the sip is what comes next after the 401.

Original comment by Digitald...@gmail.com on 15 May 2015 at 11:29

GoogleCodeExporter commented 9 years ago
Just noticed something else too...

Go into your account advanced on the yealinks and enable rport.

You may find that fixes you up.

If your PBX is outside the LAN, that should fix you up.

Original comment by Digitald...@gmail.com on 15 May 2015 at 11:37

GoogleCodeExporter commented 9 years ago
Thanks Digitald i going to test that rport options but the strange is all the 
other phone no give this problems and are only in the tenants that have more of 
3 phones, i going to make another capture and put for you but what i see is not 
difference msg. repeat 401 rejection in all the msg. give me 10 and i post the 
new capture.

Original comment by rbaan0...@gmail.com on 15 May 2015 at 11:46

GoogleCodeExporter commented 9 years ago
Try the rport first, if the exact same is being repeated it shows it even more 
its the case.
Also, enable rport too on the ones that are working, this is almosr certainly 
the issue. The ports and IPs need to be rewritten which the rport should do.

Original comment by Digitald...@gmail.com on 15 May 2015 at 11:53

GoogleCodeExporter commented 9 years ago
Ok let me try that and I post what happen and one more time thanks...

Original comment by rbaan0...@gmail.com on 15 May 2015 at 11:59

GoogleCodeExporter commented 9 years ago
Sorry for no reply faster but was out of the office the solution was activate 
the rport in the phones they start to register and all start working, thanks 
one more time for all your help.

Original comment by rbaan0...@gmail.com on 19 May 2015 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by sevenate on 19 May 2015 at 6:55