FW: Clients Unable To Auth

Home » Asterisk Users » FW: Clients Unable To Auth
Asterisk Users 6 Comments

Hi Guys,

Just new to Asterisk and am completely stumped. I have created two accounts as instructed. Please see below for the config of the user accounts.

[Peter]

type=friend

host=IP address

disallow=all

allow=ulaw

allow=alaw

callerid=Peter <6004>

secret=XXXXXXX

context

6 thoughts on - FW: Clients Unable To Auth

  • Hello, Try this

    [6004]

    type=friend

    host=dynamic

    disallow=all

    allow=ulaw

    allow=alaw

    callerid=6004

    secret=XXXXXXX

    context=default

    port=9060

    nat=force_rport,comedia

    deny=0.0.0.0

    permit=IP/255.255.0.0,IP/255.255.0.0,PrvIP/255.255.0.0, PrvIP/255.255.0.0

  • Peter Reid wrote:

    Kia ora,

    Your client is configured to use “6004” as the username while your above configuration uses “Peter”. Since the usernames differ, it fails.

    Cheers,

  • asterisk-users-bounces@lists.digium.com wrote on 04/16/2014 05:56:32 AM:

    PrvIP/255.255.0.0

    Your phone is registering with the name 6004 and not Peter. You either need to change [Peter] to [6004] in Asterisk or update your phone config to make it use Peter for your authorization name.

  • Hi All,

    Thank you guys – your advice was spot on. I will now reach out earlier and not struggle with issues like this for 2 weeks J

    Best Regards,

    From: asterisk-users-bounces@lists.digium.com
    [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Kevin Larsen Sent: Wednesday, April 16, 2014 1:08 PM
    To: Asterisk Users Mailing List – Non-Commercial Discussion Subject: Re: [asterisk-users] FW: clients unable to auth

    asterisk-users-bounces@lists.digium.com wrote on 04/16/2014 05:56:32 AM:

    Your phone is registering with the name 6004 and not Peter. You either need to change [Peter] to [6004] in Asterisk or update your phone config to make it use Peter for your authorization name.

  • PiBUaGFuayB5b3UgZ3V5cyDigJMgeW91ciBhZHZpY2Ugd2FzIHNwb3Qgb24uICBJIHdpbGwgbm93
    IHJlYWNoIG91dCANCj4gZWFybGllciBhbmQgbm90IHN0cnVnZ2xlIHdpdGggaXNzdWVzIGxpa2Ug dGhpcyBmb3IgMiB3ZWVrcyBKIA0KDQpZb3Ugc291bmQgbGlrZSB5b3UgYXJlIGp1c3QgZ2V0dGlu ZyBzdGFydGVkIHdpdGggQXN0ZXJpc2suIEEgY291cGxlIHBpZWNlcyANCm9mIGFkdmljZSB0aGF0
    IGhlbHBlZCBtZSB3aGVuIEkgd2FzIHN0YXJ0aW5nIG91dDogDQoNCjEuIEdldCBhIGNvcHkgb2Yg QXN0ZXJpc2s6IFRoZSBEZWZpbml0aXZlIEd1aWRlLiBXb3JrIHRocm91Z2ggdGhlIGV4YW1wbGVz IA0KYW5kIHVuZGVyc3RhbmQgdGhlIGNvbmNlcHRzIGl0IHRlYWNoZXMuIEkgc3RpbGwgdXNlIGl0
    IGFsbCB0aGUgdGltZS4NCjIuIFdoZW4geW91IHJ1biBpbnRvIHByb2JsZW1zLCBodHRwOi8vdm9p cC1pbmZvLm9yZyBpcyBhIGdyZWF0IEFzdGVyaXNrIA0KcmVzb3VyY2UuIEl0IGlzbid0IGFsd2F5
    cyBwZXJmZWN0bHkgdXAgdG8gZGF0ZSwgYnV0IGlzIHZlcnkgdXNlZnVsLg0KMy4gU2VhcmNoIG9u IHRoZSBlcnJvciBtZXNzYWdlcyB5b3UgYXJlIGdpdmVuIGJ5IEFzdGVyaXNrLiBJdCBpcyBjb21t b24gDQplbm91Z2ggdGhhdCBtYW55IChidXQgbm90IGFsbCkgb2YgdGhlIGVycm9yIG1lc3NhZ2Vz IHdpbGwgaGF2ZSBoaXRzIHRoYXQgDQpleHBsYWluIHlvdXIgcHJvYmxlbSBpbiBncmVhdGVyIGRl dGFpbC4NCg=

  • I would modify the suggestions slightly and either add to it, or replace the reference to voip-info with a link to https://wiki.asterisk.org

    I was just thinking yesterday that voip-info seems out of date for many things I search for, but at this point I’m usually looking up things that are probably not used as frequently, so maybe the more “regular” stuff is more up-to-date on voip-info. In any case, the Asterisk Wiki seems quite up-to-date and useful. Also, you can quickly get some good info by doing
    “core show application ” or “core show function ” from the Asterisk console, like “core show application dial” gives you all the possible arguments for “Dial”, including some useful notes. Quite handy.

    Josh