Got SIP response 484 "Address Incomplete"

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Got SIP response 484 "Address Incomplete"

Postby thenewmexican » Wed Mar 24, 2010 7:34 pm

I'm using Asterisk-Java to originate a call from my java application.
OS: Ubuntu Linux 9.10
Java version: 1.6
Asterisk Version: 1.6.2
Asterisk-Java Version: 1.0.0.M3


Here are the config files in /etc/asterisk
manager.conf:
;
; AMI - The Asterisk Manager Interface
;
; Third party application call management support and PBX event supervision
;
; This configuration file is read every time someone logs in
;
; Use the "manager show commands" at the CLI to list available manager commands
; and their authorization levels.
;
; "manager show command <command>" will show a help text.
;
; ---------------------------- SECURITY NOTE -------------------------------
; Note that you should not enable the AMI on a public IP address. If needed,
; block this TCP port with iptables (or another FW software) and reach it
; with IPsec, SSH, or SSL vpn tunnel. You can also make the manager
; interface available over http/https if Asterisk's http server is enabled in
; http.conf and if both "enabled" and "webenabled" are set to yes in
; this file. Both default to no. httptimeout provides the maximum
; timeout in seconds before a web based session is discarded. The
; default is 60 seconds.
;
[general]
enabled = yes
webenabled = yes
port = 5038

;httptimeout = 60
; a) httptimeout sets the Max-Age of the http cookie
; b) httptimeout is the amount of time the webserver waits
; on a action=waitevent request (actually its httptimeout-10)
; c) httptimeout is also the amount of time the webserver keeps
; a http session alive after completing a successful action

bindaddr = 0.0.0.0

; Parameters that control AMI over TLS. ("enabled" must be set too).
; You can open a connection to this socket with e.g.
;
; openssl s_client -connect my_host:5039
;
; sslenable=no ; set to YES to enable it
; sslbindport=5039 ; the port to bind to
; sslbindaddr=0.0.0.0 ; address to bind to, default to bindaddr
; sslcert=/tmp/asterisk.pem ; path to the certificate.
; sslcipher=<cipher string> ; string specifying which SSL ciphers to use or not use


;
;allowmultiplelogin = yes ; IF set to no, rejects manager logins that are already in use.
; ; The default is yes.
;
;displayconnects = yes
;
; Add a Unix epoch timestamp to events (not action responses)
;
;timestampevents = yes

debug = on ; enable some debugging info in AMI messages (default off).
; Also accessible through the "manager debug" CLI command.
[medigridsUser1]
secret = createmedigrids
permit=0.0.0.0/0.0.0.0
;deny=209.16.236.73/255.255.255.0
;
; If the device connected via this user accepts input slowly,
; the timeout for writes to it can be increased to keep it
; from being disconnected (value is in milliseconds)
;
; writetimeout = 100
;
displayconnects = yes ; Display on CLI user login/logoff
;
; Authorization for various classes
;
; Read authorization permits you to receive asynchronous events, in general.
; Write authorization permits you to send commands and get back responses. The
; following classes exist:
;
; system - General information about the system and ability to run system
; management commands, such as Shutdown, Restart, and Reload.
; call - Information about channels and ability to set information in a
; running channel.
; log - Logging information. Read-only.
; verbose - Verbose information. Read-only.
; agent - Information about queues and agents and ability to add queue
; members to a queue.
; user - Permission to send and receive UserEvent.
; config - Ability to read and write configuration files.
; command - Permission to run CLI commands. Write-only.
; dtmf - Receive DTMF events. Read-only.
; reporting - Ability to get information about the system.
; cdr - Output of cdr_manager, if loaded. Read-only.
; dialplan - Receive NewExten and VarSet events. Read-only.
; originate - Permission to originate new calls. Write-only.
;
read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
write = system,call,agent,user,config,command,reporting,originate

Relevant portions of sip.conf

register =>xxxxxx:MyInphonexPassword@sip.inphonex.com/xxxxxx

[ainphonex]
defaultuser=xxxxxx
type=peer
secret=MyInPhonexPassword
host=sip.inphonex.com
fromuser=xxxxxx
fromdomain=inphonex.com
context=from-inphonex
canreinvite=no

Here is the Asterisk-Java code
Code: Select all
protected void setUp() throws Exception {
      
      super.setUp();
       factory = new ManagerConnectionFactory(
             "192.168.1.102", "asteriskUser1", "asteriskuser1");
      
       this.managerConnection = factory.createManagerConnection();
       log.info("setUp: managerConnection = " + this.managerConnection);
      
   }

   public void testDialout() throws Exception {
       OriginateAction callAction = new OriginateAction();
       log.info("inside testDialout");
       managerConnection.login();
       log.info("After logging into the Asterisk server");
      
       String call="xxxxxxxxxx";
       OriginateAction originateAction = new OriginateAction();
       originateAction.setChannel("SIP/" + call + "@" + sip.inphonex.com);

      
           originateAction.setCallerId("xxxxxxxxxx");
           originateAction.setPriority(new Integer(1));
           originateAction.setTimeout(new Long(30000));
          


           // send the originate action and wait for a maximum of 30 seconds for Asterisk
           // to send a reply
          ManagerResponse originateResponse = managerConnection.sendAction(originateAction, 30000);

           // print out whether the originate succeeded or not
           log.info(originateResponse.getMessage());

      
}



When this code executes:

On the Asterisk-Java client, I get the output Originate failed.
On the Asterisk server. I get no stack trace of any kind.
However. When I use Asterisk-Cli-> manager show connection.
I receive: Got SIP response 484 "Address Incomplete" back from 208.239.76.169"

Any help is greatly appreciated
thenewmexican
Newsterisk
 
Posts: 16
Joined: Tue Mar 23, 2010 11:44 am

Return to Asterisk Support

Who is online

Users browsing this forum: Google [Bot] and 22 guests