Eugene Crosser
2005-Jun-07 03:05 UTC
[Asterisk-Users] D-link DPH-80 (SIP) call to asterisk problem
Hello gentlemen, I am new here. I have a D-Link DPH-80S SIP phone (it's a non-US model), and I am trying to make it work with Asterisk. I tried versions 1.0.7 and yesterday's CVS and the behavior is the same. The phone registers with no problem, and can accept calls. But when I try to make outgoing call, there is a series of invite requests from the phone, to which asterisk responds with 407. Comparing logs with that of a soft phone, the difference is as follows: Softphone p: INVITE w/o Auth a: 407 auth required p: ACK p: INVITE with auth a: 200 OK - all of these share the same Call-ID. D-link: p: INVITE w/o Auth a: 407 auth required p: ACK p: INVITE with auth and new Call-ID a: 407 auth required p: ACK p: INVITE with auth and new Call-ID a: 407 auth required p: ACK p: INVITE with auth and new Call-ID - et cetera Apparently when Call-ID is new asterisk no longer matches the nonce that it sent to this phone (check_auth is called with NULL third argument). This does look like a bug in the phone firmware. However, the phone can successfully initiate calls via several commercial and community providers. I tried iconnecthere.com and voipuser.org and it works! Now, the question: could it be possible to make the phone work with asterisk? Any ideas? I can send the log on request (it is rather big). Thanks. Eugene P.S. I also have a problem calling from asterisk to iconnecthere but I'll report it in a separate message. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 256 bytes Desc: OpenPGP digital signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050607/23469a92/signature.pgp
Eugene Crosser
2005-Jun-08 05:46 UTC
[Asterisk-Users] D-link DPH-80 (SIP) call to asterisk problem
Followup to myself:> I have a D-Link DPH-80S SIP phone (it's a non-US model), and I am trying > to make it work with Asterisk. I tried versions 1.0.7 and yesterday's > CVS and the behavior is the same. > > The phone registers with no problem, and can accept calls. > > But when I try to make outgoing call, there is a series of invite > requests from the phone, to which asterisk responds with 407. Comparing > logs with that of a soft phone, the difference is as follows: > > Softphone > p: INVITE w/o Auth > a: 407 auth required > p: ACK > p: INVITE with auth > a: 200 OK > - all of these share the same Call-ID. > > D-link: > p: INVITE w/o Auth > a: 407 auth required > p: ACK > p: INVITE with auth and new Call-ID > a: 407 auth required > p: ACK > p: INVITE with auth and new Call-ID > a: 407 auth required > p: ACK > p: INVITE with auth and new Call-ID > - et cetera > > Apparently when Call-ID is new asterisk no longer matches the nonce that > it sent to this phone (check_auth is called with NULL third argument). > > This does look like a bug in the phone firmware. However, the phone can > successfully initiate calls via several commercial and community > providers. I tried iconnecthere.com and voipuser.org and it works! > > Now, the question: could it be possible to make the phone work with > asterisk? Any ideas? I can send the log on request (it is rather big).OK, I figured a workaround. I have to create two separate entries in sip.conf instead of one entry with type=friend: [555-in] ; D-Link hard phone type=user context=home host=dynamic insecure=very canreinvite=no callerid=D-link Phone<555> [555] ; D-Link hard phone type=peer context=home host=dynamic user=555 secret=555dlink canreinvite=no type=peer entry allows registration of the phone (because DPH-80S refuse to work if it is not registered), and type=user entry tells asterisk to accept INVITE from the phone without authentication. Now my phne actually works for both incoming and outgoing! Eugene -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 256 bytes Desc: OpenPGP digital signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050608/75ec13b1/signature.pgp