powered by Jive Software

Sip Plugin Registration (set port?)

I’m using Openfire 3.6.3 and Asterisk 1.4.21

I’m trying to do a phone mapping and am having no luck getting it to register. When I click Test, the test completes succesfully but it never shows as registered. When I look at my asterisk box, I see the client, but it isn’t registering to port 5060.

How do you specify the port for the client to use? I don’t see it in any config file. I’ve also tried specifying the port at the end of the server address in the settings :5060 with no success. All of my other peers are using 5060 and work fine.

Here is the peer I’m using for Openfire:

  • Name : krismobile
    Secret :
    MD5Secret :
    Context : local
    Subscr.Cont. :
    Language :
    AMA flags : Unknown
    Transfer mode: open
    CallingPres : Presentation Allowed, Not Screened
    Callgroup :
    Pickupgroup :
    Mailbox :
    VM Extension : asterisk
    LastMsgsSent : 32767/65535
    Call limit : 0
    Dynamic : Yes
    Callerid : “Kris Mobile” <2400>
    MaxCallBR : 384 kbps
    Expire : 682
    Insecure : no
    Nat : RFC3581
    ACL : No
    T38 pt UDPTL : No
    CanReinvite : No
    PromiscRedir : No
    User=Phone : No
    Video Support: No
    Trust RPID : No
    Send RPID : No
    Subscriptions: Yes
    Overlap dial : Yes
    DTMFmode : rfc2833
    LastMsg : 0
    ToHost :
    Addr->IP : Port 26448
    Defaddr->IP : Port 5060
    Def. Username: krismobile
    SIP Options : (none)
    Codecs : 0x6 (gsm|ulaw)
    Codec Order : (ulaw:20,gsm:20)
    Auto-Framing: No
    Status : Unmonitored
    Useragent : SIPark
    Reg. Contact : sip:krismobile@


I turned on Sip debug and ran the Test again:

SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP;branch=z9hG4bK9daac459445e5a5186d5cfe5e14e2b91;received=19;rport=37622
From: “krismobile” sip:krismobile@;transport=udp;tag=14712093
To: “krismobile” sip:krismobile@;transport=udp;tag=as6d9863cd
Call-ID: b6f830372e69aae361e761ff736da76d@
User-Agent: Asterisk PBX
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="1c452a34"
Content-Length: 0

I didn’t realize it was looking for md5 (i use plaintext in my sip.conf), so I generated the md5 and now use md5secret in the sip.conf. However, I’m still unable to get it to authorize. Where do I define the port?