[asterisk-users] Failure of user registration with XLITE

Lyle Giese lyle at lcrcomputer.net
Sun Nov 8 14:19:08 CST 2009


> /[root at dhcppc0 asterisk]# vi extensions.conf
> [tutorial]
> exten => 1234,1,Dial(SIP,gianca)/
> /exten => 12345,1,Dial(SIP,giusy)
> /
> Here the XLITE user data:
>
> /Display Name: gianca/
> /Username: 1234/
> /Password: pwd_gianca/
> /Authorization User Name: 1234/
> /Domain: 192.168.1.100/ <http://192.168.1.100/>

Your XLITE user name should be the same as the sip account name(gianca
not 1234).

And the extensions.conf should be:

exten => 1234,1,Dial(SIP/gianca)

giancarlo lombardo wrote:
> Ciao,
> the problem is still present, does anyone have some other suggestion ?
>  
> Below the output of CLI with debug option on XLITE IP and show peers
> command:
>  
> /dhcppc0*CLI>
> <--- SIP read from 192.168.1.116:14166 <http://192.168.1.116:14166> --->
> REGISTER sip:192.168.1.100 SIP/2.0
> Via: SIP/2.0/UDP
> 192.168.1.116:14166;branch=z9hG4bK-d8754z-4d4ced5bca35b64c-1---d8754z-;rport
> Max-Forwards: 70
> Contact: <sip:1234 at 192.168.1.116:14166;rinstance=c18a16f442f17333>
> To: "gianca"<sip:1234 at 192.168.1.100 <mailto:sip%3A1234 at 192.168.1.100>>
> From: "gianca"<sip:1234 at 192.168.1.100
> <mailto:sip%3A1234 at 192.168.1.100>>;tag=be7e8a36
> Call-ID: YTMxMzY0OTJiOTczNjlmNzZkNzEzMTE2N2FmM2E3NmE.
> CSeq: 1 REGISTER
> Expires: 3600
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
> SUBSCRIBE, INFO
> User-Agent: X-Lite release 1103k stamp 53621
> Content-Length: 0/
>
> /<------------->
> --- (12 headers 0 lines) ---
> Using latest REGISTER request as basis request
> Sending to 192.168.1.116 : 14166 (NAT)/
> /<--- Transmitting (NAT) to 192.168.1.116:14166
> <http://192.168.1.116:14166> --->
> SIP/2.0 404 Not found
> Via: SIP/2.0/UDP
> 192.168.1.116:14166;branch=z9hG4bK-d8754z-4d4ced5bca35b64c-1---d8754z-;received=192.168.1.116;rport=14166
> From: "gianca"<sip:1234 at 192.168.1.100
> <mailto:sip%3A1234 at 192.168.1.100>>;tag=be7e8a36
> To: "gianca"<sip:1234 at 192.168.1.100
> <mailto:sip%3A1234 at 192.168.1.100>>;tag=as0194534b
> Call-ID: YTMxMzY0OTJiOTczNjlmNzZkNzEzMTE2N2FmM2E3NmE.
> CSeq: 1 REGISTER
> User-Agent: Asterisk PBX
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> Content-Length: 0/
>
> /<------------>
> Scheduling destruction of SIP dialog
> 'YTMxMzY0OTJiOTczNjlmNzZkNzEzMTE2N2FmM2E3NmE.' in 32000 ms (Method:
> REGISTER)
> Really destroying SIP dialog
> 'YTMxMzY0OTJiOTczNjlmNzZkNzEzMTE2N2FmM2E3NmE.' Method: REGISTER
> dhcppc0*CLI> sip show peers
> Name/username              Host            Dyn Nat ACL Port     Status
> giusy/giusy                (Unspecified)    D          0       
> Unmonitored
> gianca/gianca              (Unspecified)    D          0       
> Unmonitored
> 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2
> offline]
> dhcppc0*CLI>/
>
>
> 2009/11/8 Ahmed Ossama <ahmed at master-zone.net
> <mailto:ahmed at master-zone.net>>
>
>     Hello,
>
>     Try this in X-Lite config section:
>
>     /Display Name: gianca/
>     /Username: //gianca/
>     /Password: pwd_gianca/
>     /Authorization User Name: //gianca/
>     /Domain: 192.168.1.100
>
>     /
>     Ahmed Ossama
>
>     giancarlo lombardo wrote:
>     > Dear all,
>     > I'm setting up a connection via XLITE softphone and asterisk 1.4
>     but I
>     > get the error:
>     > /Registration error: 404 Not found/
>     >
>     > Here my configuration file of asterisk:
>     >
>     > /[root at dhcppc0 asterisk]# vi sip.conf
>     > [gianca]
>     > type=friend
>     > username=gianca
>     > secret=pwd_gianca
>     > host=dynamic
>     > context=tutorial/
>     > /[giusy]
>     > type=friend
>     > username=giusy
>     > secret=pwd_giusy
>     > host=dynamic
>     > context=tutorial/
>     >
>     > /[root at dhcppc0 asterisk]# vi extensions.conf
>     > [tutorial]
>     > exten => 1234,1,Dial(SIP,gianca)/
>     > /exten => 12345,1,Dial(SIP,giusy)
>     > /
>     > Here the XLITE user data:
>     >
>     > /Display Name: gianca/
>     > /Username: 1234/
>     > /Password: pwd_gianca/
>     > /Authorization User Name: 1234/
>     > /Domain: 192.168.1.100/ <http://192.168.1.100/>
>     > Here the output of wireshark in between Xlite client and
>     asterisk server:
>     > //
>     > /0040  2e 31 30 30 20 53 49 50  2f 32 2e 30 0d 0a 56 69   .100 SIP
>     > /2.0..Vi
>     > 0050  61 3a 20 53 49 50 2f 32  2e 30 2f 55 44 50 20 31   a:
>     SIP/2 .0/UDP 1
>     > 0060  39 32 2e 31 36 38 2e 31  2e 31 31 36 3a 35 34 30  
>     92.168.1 .116:540
>     > 0070  35 30 3b 62 72 61 6e 63  68 3d 7a 39 68 47 34 62  
>     50;branc h=z9hG4b
>     > 0080  4b 2d 64 38 37 35 34 7a  2d 32 34 32 38 38 65 37  
>     K-d8754z -24288e7
>     > 0090  32 38 32 36 64 30 31 32  38 2d 31 2d 2d 2d 64 38  
>     2826d012 8-1---d8
>     > 00a0  37 35 34 7a 2d 3b 72 70  6f 72 74 0d 0a 4d 61 78  
>     754z-;rp ort..Max
>     > 00b0  2d 46 6f 72 77 61 72 64  73 3a 20 37 30 0d 0a 43  
>     -Forward s: 70..C
>     > 00c0  6f 6e 74 61 63 74 3a 20  3c 73 69 70 3a 31 32 33   ontact:
>      <sip:123
>     > 00d0  34 40 31 39 32 2e 31 36  38 2e 31 2e 31 31 36 3a   //4 at 192.16/
>     > <mailto:4 at 192.16 <mailto:4 at 192.16>>/ 8.1.116:
>     > 00e0  35 34 30 35 30 3b 72 69  6e 73 74 61 6e 63 65 3d  
>     54050;ri nstance=
>     > 00f0  36 33 61 39 66 64 62 62  62 62 39 64 30 33 62 30  
>     63a9fdbb bb9d03b0
>     > 0100  3e 0d 0a 54 6f 3a 20 22  67 69 61 6e 63 61 22 3c   >..To:
>     " gianca"<
>     > 0110  73 69 70 3a 31 32 33 34  40 31 39 32 2e 31 36 38  
>     sip:1234 @192.168
>     > 0120  2e 31 2e 31 30 30 3e 0d  0a 46 72 6f 6d 3a 20 22  
>     .1.100>. .From: "
>     > 0130  67 69 61 6e 63 61 22 3c  73 69 70 3a 31 32 33 34  
>     gianca"< sip:1234
>     > 0140  40 31 39 32 2e 31 36 38  2e 31 2e 31 30 30 3e 3b  
>     @192.168 .1.100>;
>     > 0150  74 61 67 3d 65 34 35 64  65 35 36 62 0d 0a 43 61  
>     tag=e45d e56b..Ca
>     > 0160  6c 6c 2d 49 44 3a 20 4e  47 49 33 59 6a 49 7a 4d   ll-ID:
>     N GI3YjIzM
>     > 0170  6a 49 79 4e 47 49 77 5a  54 6b 77 4d 54 63 35 5a  
>     jIyNGIwZ TkwMTc5Z
>     > 0180  47 49 77 4d 57 51 33 4d  57 5a 69 4f 57 4a 6b 4e  
>     GIwMWQ3M WZiOWJkN
>     > 0190  44 59 2e 0d 0a 43 53 65  71 3a 20 31 20 52 45 47  
>     DY...CSe q: 1 REG
>     > 01a0  49 53 54 45 52 0d 0a 45  78 70 69 72 65 73 3a 20  
>     ISTER..E xpires:
>     > 01b0  33 36 30 30 0d 0a 41 6c  6c 6f 77 3a 20 49 4e 56  
>     3600..Al low: INV
>     > 01c0  49 54 45 2c 20 41 43 4b  2c 20 43 41 4e 43 45 4c   ITE,
>     ACK , CANCEL
>     > 01d0  2c 20 4f 50 54 49 4f 4e  53 2c 20 42 59 45 2c 20   ,
>     OPTION S, BYE,
>     > 01e0  52 45 46 45 52 2c 20 4e  4f 54 49 46 59 2c 20 4d   REFER,
>     N OTIFY, M
>     > 01f0  45 53 53 41 47 45 2c 20  53 55 42 53 43 52 49 42   ESSAGE,
>      SUBSCRIB
>     > 0200  45 2c 20 49 4e 46 4f 0d  0a 55 73 65 72 2d 41 67   E,
>     INFO. .User-Ag
>     > 0210  65 6e 74 3a 20 58 2d 4c  69 74 65 20 72 65 6c 65   ent:
>     X-L ite rele
>     > 0220  61 73 65 20 31 31 30 33  6b 20 73 74 61 6d 70 20   ase
>     1103 k stamp
>     > 0230  35 33 36 32 31 0d 0a 43  6f 6e 74 65 6e 74 2d 4c  
>     53621..C ontent-L
>     > 0240  65 6e 67 74 68 3a 20 30  0d 0a 0d 0a               ength: 0
>     > ..../
>     > /0000  00 17 c4 59 b6 56 00 0a  e6 23 92 6b 08 00 45 00   ...Y.V..
>     > .#.k..E.
>     > 0010  01 ea 0b 80 00 00 40 11  e9 5a c0 a8 01 64 c0 a8  
>     ...... at . .Z...d..
>     > 0020  01 74 13 c4 d3 22 01 d6  10 53 53 49 50 2f 32 2e  
>     .t...".. .SSIP/2.
>     > 0030  30 20 34 30 34 20 4e 6f  74 20 66 6f 75 6e 64 0d   0 404
>     No t found.
>     > 0040  0a 56 69 61 3a 20 53 49  50 2f 32 2e 30 2f 55 44   .Via:
>     SI P/2.0/UD
>     > 0050  50 20 31 39 32 2e 31 36  38 2e 31 2e 31 31 36 3a   P
>     192.16 8.1.116:
>     > 0060  35 34 30 35 30 3b 62 72  61 6e 63 68 3d 7a 39 68  
>     54050;br anch=z9h
>     > 0070  47 34 62 4b 2d 64 38 37  35 34 7a 2d 32 34 32 38  
>     G4bK-d87 54z-2428
>     > 0080  38 65 37 32 38 32 36 64  30 31 32 38 2d 31 2d 2d  
>     8e72826d 0128-1--
>     > 0090  2d 64 38 37 35 34 7a 2d  3b 72 65 63 65 69 76 65  
>     -d8754z- ;receive
>     > 00a0  64 3d 31 39 32 2e 31 36  38 2e 31 2e 31 31 36 3b  
>     d=192.16 8.1.116;
>     > 00b0  72 70 6f 72 74 3d 35 34  30 35 30 0d 0a 46 72 6f  
>     rport=54 050..Fro
>     > 00c0  6d 3a 20 22 67 69 61 6e  63 61 22 3c 73 69 70 3a   m:
>     "gian ca"<sip:
>     > 00d0  31 32 33 34 40 31 39 32  2e 31 36 38 2e 31 2e 31   //1234 at 192/
>     > <mailto:1234 at 192 <mailto:1234 at 192>>/ .168.1.1
>     > 00e0  30 30 3e 3b 74 61 67 3d  65 34 35 64 65 35 36 62  
>     00>;tag= e45de56b
>     > 00f0  0d 0a 54 6f 3a 20 22 67  69 61 6e 63 61 22 3c 73   ..To:
>     "g ianca"<s
>     > 0100  69 70 3a 31 32 33 34 40  31 39 32 2e 31 36 38 2e  
>     ip:1234@ 192.168.
>     > 0110  31 2e 31 30 30 3e 3b 74  61 67 3d 61 73 36 35 35  
>     1.100>;t ag=as655
>     > 0120  64 36 66 31 32 0d 0a 43  61 6c 6c 2d 49 44 3a 20  
>     d6f12..C all-ID:
>     > 0130  4e 47 49 33 59 6a 49 7a  4d 6a 49 79 4e 47 49 77  
>     NGI3YjIz MjIyNGIw
>     > 0140  5a 54 6b 77 4d 54 63 35  5a 47 49 77 4d 57 51 33  
>     ZTkwMTc5 ZGIwMWQ3
>     > 0150  4d 57 5a 69 4f 57 4a 6b  4e 44 59 2e 0d 0a 43 53  
>     MWZiOWJk NDY...CS
>     > 0160  65 71 3a 20 31 20 52 45  47 49 53 54 45 52 0d 0a   eq: 1
>     RE GISTER..
>     > 0170  55 73 65 72 2d 41 67 65  6e 74 3a 20 41 73 74 65  
>     User-Age nt: Aste
>     > 0180  72 69 73 6b 20 50 42 58  0d 0a 41 6c 6c 6f 77 3a   risk
>     PBX ..Allow:
>     > 0190  20 49 4e 56 49 54 45 2c  20 41 43 4b 2c 20 43 41  
>      INVITE,  ACK, CA
>     > 01a0  4e 43 45 4c 2c 20 4f 50  54 49 4f 4e 53 2c 20 42   NCEL,
>     OP TIONS, B
>     > 01b0  59 45 2c 20 52 45 46 45  52 2c 20 53 55 42 53 43   YE,
>     REFE R, SUBSC
>     > 01c0  52 49 42 45 2c 20 4e 4f  54 49 46 59 0d 0a 53 75   RIBE,
>     NO TIFY..Su
>     > 01d0  70 70 6f 72 74 65 64 3a  20 72 65 70 6c 61 63 65  
>     pported:  replace
>     > 01e0  73 0d 0a 43 6f 6e 74 65  6e 74 2d 4c 65 6e 67 74  
>     s..Conte nt-Lengt
>     > 01f0  68 3a 20 30 0d 0a 0d 0a                            h: 0....
>     > /
>     >
>     > Any help is welcome.
>     >
>     >
>     > --
>     > Giancarlo Lombardo
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > -- Bandwidth and Colocation Provided by
>     http://www.api-digital.com <http://www.api-digital.com/> --
>     >
>     > asterisk-users mailing list
>     > To UNSUBSCRIBE or update options visit:
>     >    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>     _______________________________________________
>     -- Bandwidth and Colocation Provided by http://www.api-digital.com
>     <http://www.api-digital.com/> --
>
>     asterisk-users mailing list
>     To UNSUBSCRIBE or update options visit:
>       http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
>
> -- 
> Giancarlo Lombardo
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091108/9fc6ea8a/attachment.htm 


More information about the asterisk-users mailing list