Advertisement
oquidave

Untitled

Sep 24th, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sip.conf
  2.  
  3. [20]
  4. context=local
  5. type=peer
  6. secret=oquidroid
  7. username=oquidroid
  8. callerid=oquidroid
  9. host=dynamic
  10.  
  11. extension.conf
  12.  
  13. [local]
  14. ;local clients have extensions from 10-99,
  15. ;write one general dialplan for all of them using pattern matching
  16. exten => _ZX,1, Dial(SIP/${EXTEN},30)
  17. same=>n,Playback(vm-nobodyavail)
  18. same=>n,Hangup()
  19.  
  20. //registration sip debug
  21. <--- SIP read from UDP:192.168.43.1:5060 --->
  22. REGISTER sip:192.168.43.240;transport=UDP SIP/2.0
  23. Via: SIP/2.0/UDP 192.168.43.1:5060;branch=z9hG4bK-d8754z-e6a0faa5e32af2a2-1---d8754z-
  24. Max-Forwards: 70
  25. Contact: <sip:oquidroid@192.168.43.1:5060;rinstance=eda107c3185861ad;transport=UDP>
  26. To: "oquidave"<sip:oquidroid@192.168.43.240;transport=UDP>
  27. From: "oquidave"<sip:oquidroid@192.168.43.240;transport=UDP>;tag=9323291c
  28. Call-ID: YWE2NTE1ZWM1NWZhMWFkMGQ0ODRkODg1Y2I2Njc5NzM.
  29. CSeq: 1 REGISTER
  30. Expires: 60
  31. Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
  32. Supported: replaces, norefersub, extended-refer, X-cisco-serviceuri
  33. User-Agent: Zoiper rev.15846
  34. Allow-Events: presence, kpml
  35. Content-Length: 0
  36.  
  37. <------------->
  38. --- (14 headers 0 lines) ---
  39. Sending to 192.168.43.1:5060 (NAT)
  40.  
  41. <--- Transmitting (NAT) to 192.168.43.1:5060 --->
  42. SIP/2.0 401 Unauthorized
  43. Via: SIP/2.0/UDP 192.168.43.1:5060;branch=z9hG4bK-d8754z-e6a0faa5e32af2a2-1---d8754z-;received=192.168.43.1;rport=5060
  44. From: "oquidave"<sip:oquidroid@192.168.43.240;transport=UDP>;tag=9323291c
  45. To: "oquidave"<sip:oquidroid@192.168.43.240;transport=UDP>;tag=as7ff526e3
  46. Call-ID: YWE2NTE1ZWM1NWZhMWFkMGQ0ODRkODg1Y2I2Njc5NzM.
  47. CSeq: 1 REGISTER
  48. Server: Asterisk PBX 1.8.16.0
  49. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
  50. Supported: replaces, timer
  51. WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="50b769db"
  52. Content-Length: 0
  53.  
  54.  
  55. <------------>
  56. Scheduling destruction of SIP dialog 'YWE2NTE1ZWM1NWZhMWFkMGQ0ODRkODg1Y2I2Njc5NzM.' in 32000 ms (Method: REGISTER)
  57. [Sep 24 16:36:49] NOTICE[3729]: chan_sip.c:25160 handle_request_register: Registration from '"oquidave"<sip:oquidroid@192.168.43.240;transport=UDP>' failed for '192.168.43.1:5060' - No matching peer found
  58. Scheduling destruction of SIP dialog 'YWE2NTE1ZWM1NWZhMWFkMGQ0ODRkODg1Y2I2Njc5NzM.' in 32000 ms (Method: REGISTER)
  59.  
  60. <--- SIP read from UDP:192.168.43.1:5060 --->
  61. REGISTER sip:192.168.43.240;transport=UDP SIP/2.0
  62. Via: SIP/2.0/UDP 192.168.43.1:5060;branch=z9hG4bK-d8754z-4382163498b0112d-1---d8754z-
  63. Max-Forwards: 70
  64. Contact: <sip:oquidroid@192.168.43.1:5060;rinstance=eda107c3185861ad;transport=UDP>
  65. To: "oquidave"<sip:oquidroid@192.168.43.240;transport=UDP>
  66. From: "oquidave"<sip:oquidroid@192.168.43.240;transport=UDP>;tag=9323291c
  67. Call-ID: YWE2NTE1ZWM1NWZhMWFkMGQ0ODRkODg1Y2I2Njc5NzM.
  68. CSeq: 2 REGISTER
  69. Expires: 60
  70. Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
  71. Supported: replaces, norefersub, extended-refer, X-cisco-serviceuri
  72. User-Agent: Zoiper rev.15846
  73. Authorization: Digest username="oquidroid",realm="asterisk",nonce="50b769db",uri="sip:192.168.43.240;transport=UDP",response="2c12649e4e906f98cabf81460ba20f7c",algorithm=MD5
  74. Allow-Events: presence, kpml
  75. Content-Length: 0
  76.  
  77. <------------->
  78. --- (15 headers 0 lines) ---
  79. Sending to 192.168.43.1:5060 (NAT)
  80.  
  81. <--- Transmitting (NAT) to 192.168.43.1:5060 --->
  82. SIP/2.0 403 Forbidden (Bad auth)
  83. Via: SIP/2.0/UDP 192.168.43.1:5060;branch=z9hG4bK-d8754z-4382163498b0112d-1---d8754z-;received=192.168.43.1;rport=5060
  84. From: "oquidave"<sip:oquidroid@192.168.43.240;transport=UDP>;tag=9323291c
  85. To: "oquidave"<sip:oquidroid@192.168.43.240;transport=UDP>;tag=as7ff526e3
  86. Call-ID: YWE2NTE1ZWM1NWZhMWFkMGQ0ODRkODg1Y2I2Njc5NzM.
  87. CSeq: 2 REGISTER
  88. Server: Asterisk PBX 1.8.16.0
  89. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
  90. Supported: replaces, timer
  91. Content-Length: 0
  92.  
  93.  
  94. <------------>
  95. [Sep 24 16:36:49] NOTICE[3729]: chan_sip.c:25160 handle_request_register: Registration from '"oquidave"<sip:oquidroid@192.168.43.240;transport=UDP>' failed for '192.168.43.1:5060' - No matching peer found
  96. Scheduling destruction of SIP dialog 'YWE2NTE1ZWM1NWZhMWFkMGQ0ODRkODg1Y2I2Njc5NzM.' in 32000 ms (Method: REGISTER)
  97. Really destroying SIP dialog 'YWE2NTE1ZWM1NWZhMWFkMGQ0ODRkODg1Y2I2Njc5NzM.' Method: REGISTER
  98.  
  99.  
  100. linux-lxda*CLI> sip show peer 20
  101.  
  102.  
  103. * Name : 20
  104. Secret : <Set>
  105. MD5Secret : <Not set>
  106. Remote Secret: <Not set>
  107. Context : local
  108. Subscr.Cont. : <Not set>
  109. Language :
  110. AMA flags : Unknown
  111. Transfer mode: open
  112. CallingPres : Presentation Allowed, Not Screened
  113. Callgroup :
  114. Pickupgroup :
  115. MOH Suggest :
  116. Mailbox :
  117. VM Extension : asterisk
  118. LastMsgsSent : 32767/65535
  119. Call limit : 0
  120. Max forwards : 0
  121. Dynamic : Yes
  122. Callerid : "oquidroid" <>
  123. MaxCallBR : 384 kbps
  124. Expire : -1
  125. Insecure : no
  126. Force rport : Yes
  127. ACL : No
  128. DirectMedACL : No
  129. T.38 support : No
  130. T.38 EC mode : Unknown
  131. T.38 MaxDtgrm: -1
  132. DirectMedia : Yes
  133. PromiscRedir : No
  134. User=Phone : No
  135. Video Support: No
  136. Text Support : No
  137. Ign SDP ver : No
  138. Trust RPID : No
  139. Send RPID : No
  140. Subscriptions: Yes
  141. Overlap dial : No
  142. DTMFmode : rfc2833
  143. Timer T1 : 500
  144. Timer B : 32000
  145. ToHost :
  146. Addr->IP : (null)
  147. Defaddr->IP : (null)
  148. Prim.Transp. : UDP
  149. Allowed.Trsp : UDP
  150. Def. Username: oquidroid
  151. SIP Options : (none)
  152. Codecs : 0x80000008000e (gsm|ulaw|alaw|h263|testlaw)
  153. Codec Order : (none)
  154. Auto-Framing : No
  155. Status : Unmonitored
  156. Useragent :
  157. Reg. Contact :
  158. Qualify Freq : 60000 ms
  159. Sess-Timers : Accept
  160. Sess-Refresh : uas
  161. Sess-Expires : 1800 secs
  162. Min-Sess : 90 secs
  163. RTP Engine : asterisk
  164. Parkinglot :
  165. Use Reason : No
  166. Encryption : No
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement