I’m used to Asterisk, more so the flat file configuration. I have done some with MySQL and Asterisk 1.4. I am using PBX In A Flash.
I setup an extension. It seemed fairly straight forward. However, my soft phone doesn’t register. It will register to another box.
| 8159814211 | account | 8159814211 | 25 |
| 8159814211 | permit | 0.0.0.0/0.0.0.0 | 24 |
| 8159814211 | deny | 0.0.0.0/0.0.0.0 | 23 |
| 8159814211 | mailbox | 8159814211@device | 22 |
| 8159814211 | accountcode | | 21 |
| 8159814211 | dial | SIP/8159814211 | 20 |
| 8159814211 | allow | | 19 |
| 8159814211 | disallow | | 18 |
| 8159814211 | pickupgroup | | 17 |
| 8159814211 | callgroup | | 16 |
| 8159814211 | encryption | no | 15 |
| 8159814211 | transport | udp | 14 |
| 8159814211 | qualifyfreq | 60 | 13 |
| 8159814211 | qualify | yes | 12 |
| 8159814211 | port | 5060 | 11 |
| 8159814211 | type | friend | 9 |
| 8159814211 | nat | no | 10 |
| 8159814211 | sendrpid | no | 8 |
| 8159814211 | trustrpid | yes | 7 |
| 8159814211 | host | dynamic | 6 |
| 8159814211 | context | from-internal | 5 |
| 8159814211 | canreinvite | no | 4 |
| 8159814211 | dtmfmode | rfc2833 | 3 |
| 8159814211 | secret | Abc123 | 2 |
| 8159814211 | callerid | device <8159814211> | 26 |
| 8159814211 | record_in | Adhoc | 27 |
| 8159814211 | record_out | Adhoc | 28 |
+------------+-------------+-----------------------------+-------+
However, this is what Asterisk is reporting:
[code]<— SIP read from UDP:10.1.1.38:5060 —>
SUBSCRIBE sip:[email protected];transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.1.1.38:5060;branch=z9hG4bK-d8754z-947afbb4506ae49d-1—d8754z-
Max-Forwards: 70
Contact: sip:[email protected]:5060;transport=UDP
To: sip:[email protected];transport=UDP
From: sip:[email protected];transport=UDP;tag=bf679828
Call-ID: YzYxNmQxODRmY2YzOWNjY2RhODAyNGY1NmMxYjhlMGM.
CSeq: 1 SUBSCRIBE
Expires: 3600
Accept: application/simple-message-summary
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, X-cisco-serviceuri
User-Agent: Zoiper rev.11137
Event: message-summary
Allow-Events: presence, kpml
Content-Length: 0
<------------->
— (16 headers 0 lines) —
Creating new subscription
Sending to 10.1.1.38:5060 (NAT)
list_route: hop: sip:[email protected]:5060;transport=UDP
Found peer ‘8159814211’ for ‘8159814211’ from 10.1.1.38:5060
<— Transmitting (NAT) to 10.1.1.38:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.1.1.38:5060;branch=z9hG4bK-d8754z-947afbb4506ae49d-1—d8754z-;received=10.1.1.38;rport=5060
From: sip:[email protected];transport=UDP;tag=bf679828
To: sip:[email protected];transport=UDP;tag=as3f048477
Call-ID: YzYxNmQxODRmY2YzOWNjY2RhODAyNGY1NmMxYjhlMGM.
CSeq: 1 SUBSCRIBE
Server: FPBX-2.9.0(1.8.13.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="1f57715b"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘YzYxNmQxODRmY2YzOWNjY2RhODAyNGY1NmMxYjhlMGM.’ in 32000 ms (Method: SUBSCRIBE)
<— SIP read from UDP:10.1.1.38:5060 —>
REGISTER sip:10.1.8.16;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.1.1.38:5060;branch=z9hG4bK-d8754z-ea1aaea390f03ab6-1—d8754z-
Max-Forwards: 70
Contact: sip:[email protected]:5060;rinstance=08770de9833d2f0f;transport=UDP
To: sip:[email protected];transport=UDP
From: sip:[email protected];transport=UDP;tag=6f633572
Call-ID: ZmQ0NmRmYzAyMzhkNzY5ZjFhN2IzODU5YzljY2U4ZTc.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, X-cisco-serviceuri
User-Agent: Zoiper rev.11137
Allow-Events: presence, kpml
Content-Length: 0
<------------->
— (14 headers 0 lines) —
Sending to 10.1.1.38:5060 (NAT)
<— Transmitting (NAT) to 10.1.1.38:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.1.1.38:5060;branch=z9hG4bK-d8754z-ea1aaea390f03ab6-1—d8754z-;received=10.1.1.38;rport=5060
From: sip:[email protected];transport=UDP;tag=6f633572
To: sip:[email protected];transport=UDP;tag=as29cf2e74
Call-ID: ZmQ0NmRmYzAyMzhkNzY5ZjFhN2IzODU5YzljY2U4ZTc.
CSeq: 1 REGISTER
Server: FPBX-2.9.0(1.8.13.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="441cc5ce"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘ZmQ0NmRmYzAyMzhkNzY5ZjFhN2IzODU5YzljY2U4ZTc.’ in 32000 ms (Method: REGISTER)
Scheduling destruction of SIP dialog ‘ZmQ0NmRmYzAyMzhkNzY5ZjFhN2IzODU5YzljY2U4ZTc.’ in 32000 ms (Method: REGISTER)
<— SIP read from UDP:10.1.1.38:5060 —>
SUBSCRIBE sip:[email protected];transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.1.1.38:5060;branch=z9hG4bK-d8754z-a6f07f3c94b90c73-1—d8754z-
Max-Forwards: 70
Contact: sip:[email protected]:5060;transport=UDP
To: sip:[email protected];transport=UDP
From: sip:[email protected];transport=UDP;tag=bf679828
Call-ID: YzYxNmQxODRmY2YzOWNjY2RhODAyNGY1NmMxYjhlMGM.
CSeq: 2 SUBSCRIBE
Expires: 3600
Accept: application/simple-message-summary
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, X-cisco-serviceuri
User-Agent: Zoiper rev.11137
Authorization: Digest username=“8159814211”,realm=“asterisk”,nonce=“1f57715b”,uri="sip:[email protected];transport=UDP",response=“37ec71f14bffaf49c2f1f4f74976d914”,algorithm=MD5
Event: message-summary
Allow-Events: presence, kpml
Content-Length: 0
<------------->
— (17 headers 0 lines) —
Creating new subscription
Sending to 10.1.1.38:5060 (NAT)
Found peer ‘8159814211’ for ‘8159814211’ from 10.1.1.38:5060
<— Reliably Transmitting (NAT) to 10.1.1.38:5060 —>
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.1.1.38:5060;branch=z9hG4bK-d8754z-a6f07f3c94b90c73-1—d8754z-;received=10.1.1.38;rport=5060
From: sip:[email protected];transport=UDP;tag=bf679828
To: sip:[email protected];transport=UDP;tag=as3f048477
Call-ID: YzYxNmQxODRmY2YzOWNjY2RhODAyNGY1NmMxYjhlMGM.
CSeq: 2 SUBSCRIBE
Server: FPBX-2.9.0(1.8.13.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
<— SIP read from UDP:10.1.1.38:5060 —>
REGISTER sip:10.1.8.16;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.1.1.38:5060;branch=z9hG4bK-d8754z-2e35cb6433915eb4-1—d8754z-
Max-Forwards: 70
Contact: sip:[email protected]:5060;rinstance=08770de9833d2f0f;transport=UDP
To: sip:[email protected];transport=UDP
From: sip:[email protected];transport=UDP;tag=6f633572
Call-ID: ZmQ0NmRmYzAyMzhkNzY5ZjFhN2IzODU5YzljY2U4ZTc.
CSeq: 2 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, X-cisco-serviceuri
User-Agent: Zoiper rev.11137
Authorization: Digest username=“8159814211”,realm=“asterisk”,nonce=“441cc5ce”,uri=“sip:10.1.8.16;transport=UDP”,response=“7c1011f1ec18b800d28cfa0abb2e7ea5”,algorithm=MD5
Allow-Events: presence, kpml
Content-Length: 0
<------------->
— (15 headers 0 lines) —
Sending to 10.1.1.38:5060 (NAT)
<— Transmitting (NAT) to 10.1.1.38:5060 —>
SIP/2.0 403 Forbidden (Bad auth)
Via: SIP/2.0/UDP 10.1.1.38:5060;branch=z9hG4bK-d8754z-2e35cb6433915eb4-1—d8754z-;received=10.1.1.38;rport=5060
From: sip:[email protected];transport=UDP;tag=6f633572
To: sip:[email protected];transport=UDP;tag=as29cf2e74
Call-ID: ZmQ0NmRmYzAyMzhkNzY5ZjFhN2IzODU5YzljY2U4ZTc.
CSeq: 2 REGISTER
Server: FPBX-2.9.0(1.8.13.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘ZmQ0NmRmYzAyMzhkNzY5ZjFhN2IzODU5YzljY2U4ZTc.’ in 32000 ms (Method: REGISTER)
Retransmitting #1 (NAT) to 10.1.1.38:5060:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.1.1.38:5060;branch=z9hG4bK-d8754z-a6f07f3c94b90c73-1—d8754z-;received=10.1.1.38;rport=5060
From: sip:[email protected];transport=UDP;tag=bf679828
To: sip:[email protected];transport=UDP;tag=as3f048477
Call-ID: YzYxNmQxODRmY2YzOWNjY2RhODAyNGY1NmMxYjhlMGM.
CSeq: 2 SUBSCRIBE
Server: FPBX-2.9.0(1.8.13.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
Retransmitting #2 (NAT) to 10.1.1.38:5060:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.1.1.38:5060;branch=z9hG4bK-d8754z-a6f07f3c94b90c73-1—d8754z-;received=10.1.1.38;rport=5060
From: sip:[email protected];transport=UDP;tag=bf679828
To: sip:[email protected];transport=UDP;tag=as3f048477
Call-ID: YzYxNmQxODRmY2YzOWNjY2RhODAyNGY1NmMxYjhlMGM.
CSeq: 2 SUBSCRIBE
Server: FPBX-2.9.0(1.8.13.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
Retransmitting #3 (NAT) to 10.1.1.38:5060:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.1.1.38:5060;branch=z9hG4bK-d8754z-a6f07f3c94b90c73-1—d8754z-;received=10.1.1.38;rport=5060
From: sip:[email protected];transport=UDP;tag=bf679828
To: sip:[email protected];transport=UDP;tag=as3f048477
Call-ID: YzYxNmQxODRmY2YzOWNjY2RhODAyNGY1NmMxYjhlMGM.
CSeq: 2 SUBSCRIBE
Server: FPBX-2.9.0(1.8.13.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
—[/code]
More log information I found:[2012-07-17 15:11:16] VERBOSE[6486] asterisk.c: -- Remote UNIX connection disconnected
[2012-07-17 15:11:58] NOTICE[1883] chan_sip.c: Registration from '<sip:[email protected];transport=UDP>' failed for '10.1.1.38:5060' - No matching peer found
[2012-07-17 15:11:58] NOTICE[1883] chan_sip.c: Failed to authenticate device <sip:[email protected];transport=UDP>;tag=926fe803 for SUBSCRIBE
[2012-07-17 15:11:58] NOTICE[1883] chan_sip.c: Registration from '<sip:[email protected];transport=UDP>' failed for '10.1.1.38:5060' - No matching peer found
[2012-07-17 15:12:02] VERBOSE[1869] asterisk.c: -- Remote UNIX connection
[2012-07-17 15:12:06] NOTICE[1883] chan_sip.c: Registration from '<sip:[email protected];transport=UDP>' failed for '10.1.1.38:5060' - No matching peer found
[2012-07-17 15:12:06] NOTICE[1883] chan_sip.c: Failed to authenticate device <sip:[email protected];transport=UDP>;tag=b502435f for SUBSCRIBE
[2012-07-17 15:12:06] NOTICE[1883] chan_sip.c: Registration from '<sip:[email protected];transport=UDP>' failed for '10.1.1.38:5060' - No matching peer found
[2012-07-17 15:12:07] NOTICE[1883] chan_sip.c: Registration from '<sip:[email protected];transport=UDP>' failed for '10.1.1.38:5060' - No matching peer found
[2012-07-17 15:12:07] NOTICE[1883] chan_sip.c: Failed to authenticate device <sip:[email protected];transport=UDP>;tag=2e756a5d for SUBSCRIBE
[2012-07-17 15:12:07] NOTICE[1883] chan_sip.c: Registration from '<sip:[email protected];transport=UDP>' failed for '10.1.1.38:5060' - No matching peer found
Ideas?