SIP problem port

Hi,
I'm trying to send a REGISTER Sip Message to Asterisk with credentials (following the instructions from Javadoc of JSR180). The code is the follow:
try {
// open listener in application specific port 5080
sipNotifier = (SipConnectionNotifier)Connector.open("sip:5080");
// build the contact URI
contact = new String("sip:emanuele@"+sipNotifier.getLocalAddress()+":"+sipNotifier.getLocalPort()+";transport=UDP");
// open client connection to the SIP registrar in this case "host.com"
sipConnection = (SipClientConnection) Connector.open("sip:89.89.89.89");
sipConnection.setListener(this);
// initialize REGISTER with appropriate headers
sipConnection.initRequest("REGISTER", null);
sipConnection.setCredentials("ciccio", "ciccio", "mydomain.com");
sipConnection.setHeader("From", "sip:[email protected]");
sipConnection.setHeader("To", "sip:[email protected]");
sipConnection.setHeader("Expires", "600");
sipConnection.setHeader("Contact", "<"+contact+">");
sipConnection.send();
boolean handled = false;
int scode = 0;
while(!handled) {
// wait max 30 secs for response
sipConnection.receive(30000);
scode = sipConnection.getStatusCode();
switch(scode)
case 200:
// handle OK response
handled = true;
break;
default:
// handle other responses
handled = true;
// wait maximum 15 seconds for response
} catch ( IOException e ) {
e.printStackTrace( );
voipmidlet.addMessage( "Error: " + e.getMessage( ) );
finally
if (sipConnection != null)
try {
sipConnection.close();
catch ( IOException e ) {
e.printStackTrace();
Analyzing the traffic I can see the server receives the first register message, answers with unauthorized but my j2me app doesn't catch this response.
The server respond on the same port that is the source port the client send message from and that port is chosen randomly at the moment of the send and it's different from the port my listener is where.
Does anyone know a solution?
Thanks
Emanuele

Sorry I have the lines:
sipConnection.initRequest("REGISTER", sipNotifier);
and not
sipConnection.initRequest("REGISTER", null);
in my code....the code in the previous post has that error but also with sipNotifier it doesn't work due the same problem.

Similar Messages

  • Sip dialer port export option grayed out in configuration manager ucce 10

    Hi,
    I am configuring the outbound option for ucce 10, when i configure the sip dialer port (dialer conifguration) in conifiguration manager, i just added 5 ports, i can see this ports showing in dialer process on the PG, but i need to export this ports to Unified communication manager, i could not able to export it because this option grayed out (i did select all, or individual selection both are having export option grayed out)
    Any idea?
    with Regards,
    Manivannan

    Exporting port configuration is only allowed for SCCP, in SIP Dialer Deployment its actually not needed and that why its grayed out.
    //but i need to export this ports to Unified communication manager//
    in Sip Dialer you don't need to create any Port For Dialer under CUCM. its only required in SCCP.
    Sip Dialer port Directly registers with VG.
    regards
    Chintan
    ~please rate if helpful

  • Is no ip nat service sip udp port 5060 a valid cmd?

    On
    # show ver
    Cisco Adaptive Security Appliance Software Version 8.4(3)
    Device Manager Version 6.4(7)
    Compiled on Fri 06-Jan-12 10:24 by builders
    System image file is "disk0:/asa843-k8.bin"
    Config file at boot was "startup-config"
    FWall up 1 year 33 days
    Hardware:   ASA5510, 1024 MB RAM, CPU Pentium 4 Celeron 1600 MHz
    Internal ATA Compact Flash, 256MB
    BIOS Flash M50FW016 @ 0xfff00000, 2048KB
    Encryption hardware device : Cisco ASA-55x0 on-board accelerator (revision 0x0)
                                 Boot microcode        : CN1000-MC-BOOT-2.00
                                 SSL/IKE microcode     : CNLite-MC-SSLm-PLUS-2.03
                                 IPSec microcode       : CNlite-MC-IPSECm-MAIN-2.06
                                 Number of accelerators: 1
    I keep getting
    FWall(config)# no ip nat service sip tcp port 5060                     ^ERROR: % Invalid input detected at '^' marker.

    Eric,
    This is a command to disable NAT ALG for SIP on IOS routers.
    On ASA you can do similar by removing SIP protocol inspection.
    If in doubt check the command references, both ASA and IOS versions are available online.
    M.

  • Late 2012 Mac mini i7 to run dual Dell UltraSharp U2412M WITHOUT using the reported HDMI out problem port?

    I've been reading about all the problems new Mac Mini users are having with trying to expand their desktop using the HDMI port.  ie: snowy screens, fuzzy text, blackouts etc etc.  My Mini is due to arrive in a couple days and I have two Dell UltraSharp U2412M LED/ISP monitors waiting for it.  I know one of them will work fine with a cord I already have: miniDisplay to Displayport.  Is there any way to daisy chain them if I run into this HDMI problem the others are having?  THANKS.
    The monitors have:  Displayport, DVI, VGA connections only. 

    Mine shipped Oct 30 and I've had it running since Nov 6th. I took the original 4GB RAM out and replaced it with 16GB RAM. I also put a Mercury Elite 240GB SSD into the top bay using a doubler kit from OWC. I had an issue with the Disk Utility not liking the setup as two seperate drives. I ended up using Internet Recovery Disk Utility and did a Repair Disk on both drives and  Disk Utility merged the drives into a Fusion Drive which was then properly recognized by DU. It all seems to work well, although I would have preferred seperate drives and more partitions, Fusion Drives are only allowed 1 additional partition, go figure. The HDMI has a bit of overscan with my 50" Panasonic Viera but the colors are good and the picture and fonts clear and distinct @ 1080p. I frequently use 720p for larger images so I can sit on the couch 15' away and read the text without binoculars.

  • E61: sip problem with Gizmo, cannot make call

    I register for Gizmo few days ago. I cannot make any call out (to 411, 1-747xxx numbers, any landline, any mobile )
    I cannot hear the other side, but the other side hears my voice
    what's wrong?
    I'm using the latest v3 firmware

    I have some problems with Gizmo as well. Not exactly the same problem as yours. In my case, initiating a call takes too long (~1 minute). I would recommend trying Truphone. It is another SIP-based app; and in my opinion, much better than Gizmo.
    You can also check my blog posting here, http://www.s60tips.com/2007/06/28/which-voip-applications-to-use-part-v/Message Edited by antonypranata on 05-Sep-200709:22 AM
    Antony Pranata
    Visit S60Tips.com for tips, tricks and tutorials of using S60 phones

  • Problem porting app from FMS2 to FMS3

    Hi all,
    I've been trying to port a flex app from FMS2 to FMS3 and I'm
    having a huge issue. It is a video conferencing app and it works
    just fine in FMS2, but once in FMS3, whenever more than 3 people
    try to login, I get a "NetStream.Publish.BadName" error. The stream
    names are definitely different. That said, when I open up FMS3, I
    see a whole bunch of "extra" streams with garbage names, that are
    clients of the streams I created. I believe these garbage names
    start to conflict after the third user. What do I do to fix this?
    While I can't post code due to company policy, this sample on
    the web also exhibits the same issues, and does the connections
    very similar to me.
    http://www.mydattoli.com/test/DCCVideoConference/main.html#
    Also, I am using Flex 3, with AMF3 turned on. If someone
    could point me in the right direction, it would be greatly
    appreciated.
    Thanks,
    Jason

    Hi,
    thanks for your reply. I have another query. Think there are some problems with backward compatibility issues with JDK. I mean code running in JDK 1.2 don't run in JDK 1.4. Also JRUN4 has some problems running with JDK 1.4 and when downgraded to JDK 1.3, it works. Is TOMCAT server compatible with all versions of JDK, so that if JRUN is replaced with TOMACAT and IIS, the application wud run fine with all versions of JDK? Thanks in advance. Please reply.. This is an urgent requirement for me.

  • Problem porting CS5.5 to CS6

    Hello
    I run into a problem when I try to port a CS5.5 plugin to CS6. I get the following error message:
    >C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(108,5): error MSB3073: The command "merge_res.cmd "..\objR\ColormanLite\"  ColormanLite  & echo Deleting old resources... & del /f /s "C:\Users\Laidback\Documents\Adobe InDesign CS6 Plugin SDK\build\win\objR\ColormanLite\(ColormanLite Resources)\"*.idrc > ..\objR\ColormanLite\prevDeletedResources.txt & xcopy /Q /E "..\objR\ColormanLite\"*.idrc "C:\Users\Laidback\Documents\Adobe InDesign CS6 Plugin SDK\build\win\objR\ColormanLite\(ColormanLite Resources)\" /Y
    1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(108,5): error MSB3073: :VCEnd" exited with code 4.
    Does anyone know how to fix this problem.
    Best regards
    / Pontus

    Solved the problem:
    In the compiler settings under:
    General ->Output Directory set: ..\release\SDK\
    General ->Intermediate Directory set: .\..\objR\<projectname>\
    Compaire with the compiler settings for the samples.
    Best regards
    / Pontus

  • Problem port mapping for amsn on mac.. please help

    I have snow leopard running, and last night I needed to use amsn opposed to the regular messanger for mac as I needed the video capabilities to connect with a user using windows and msn.
    I've never had a problem before but that was before snow leopard. Apparantly the problem is with the windows side not amsn.
    They suggest doing opening ports 6890-6900. I can't figure out what information to put in all the fields and if there is a way to enter the range or if you have to enter all them individually.
    Also I found a document on how to do this and check the port is open via transmission which it said 1 port was as I only tried one. When I ran amsn it wasnt saying it wasnt open.
    Can someone walk me through how to set up the ports. There are many fields that I dont know what to enter etc.
    I should point out the problem was with the video. We couldn't intialize a connection and it was really really laggy. I tried rebooting and same thing.
    thanks
    Message was edited by: elvtnedge

    You can use a keyboard command to prevent your iPod auto-syncing with iTunes. While connecting the iPod to the computer on a Mac hold down the Option and Command (⌥ and ⌘ Apple) keys. This will stop the iPod from auto-syncing with iTunes and it will appear in the source list. Wait until you are sure the iPod has mounted, and that it will not auto sync and then you can let the keys go. This may take between 20 to 30 seconds depending on your computer. You should then be able to change your settings and enable your iPod for disk use: iTunes Keyboard Shortcuts for OSX
    If you have any iTMS purchases on your there the transfer of purchased content from the iPod to authorised computers has been introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content is designed by default to be one way from iTunes to iPod. However there's a manual method of copying songs from your iPod to your Mac at this link: Two-way Street: Moving Music Off the iPod
    If you prefer something more automated there are a number of third party utilities that you can use to retrieve music files and playlists from your iPod, this is just a selection. I use Senuti but have a look at the web pages and documentation for the others as well, they are generally quite straightforward. PodView has a facility for transferring full resolution photos as well as songs back from the iPod to your Mac. You can read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    Senuti Mac Only
    iPodRip Mac Only
    PodWorks Mac Only
    PodView Mac Only
    iPodAccess Mac & Windows
    YamiPod Mac & Windows
    PodUtil Mac & Windows
    iPodCopy Mac & Windows

  • Problem porting webapp to Linux from Windows

    Hello,
    I'm porting a Tomcat web app from a Windows dev environment to a Linux production environment. For i/o, file references were made "portable" using, for example, this sort of declaration:
    File file = System.getProperty("user.dir")+File.separator+"..[string].."+File.separator....etc.
    I made this work on Windows, but it breaks on Linux because "user.dir" is not the same on the two OS's under circumstances that are otherwise the same.
    It appears that on Windows, based on the default Tomcat startup script, user.dir is fixed to the directory where the app (Catalina) was started. The Windows default startup command hardwires this to the path where Tomcat is installed, while in Linux user.dir move to the directory of the class file containing the reference to the file I want.
    Many people must have dealt with this in the past, but darned if I can find a solution on line. What's the cleanest way to reconcile this, work with the startup scripts or the source code?
    I feel stupid. Thanks for your help.
    Steve

    There is only 1 problem I think I read about using
    this approach. When you make a war of your webapp, the
    getRealPath("/") can return null on some webservers,
    but since I dont use war's I have no problem with thatIt's early days for me, so I expanded the WAR on the production server for now, but I probably always will because the webapp writes files into a sub-directory under WEB-INF (files I want only my servlets to get at). As I understand it, you can either use a WAR or have a full expanded directory structure, but not both.
    On another point, I hadn't mentioned that I have a bean in session scope that accesses a properties file. In fact, that's where I first discovered the problem. So using your approach, I'm changing some JSP and the bean to be able to pass the ServletContext to it.

  • Problems port forwarding

    I did your basic port forwarding and it was working just fine, but earlier today I ran into internet problems and had to restart my router.  I have all of the same settings on the port I want to be open, but for some reason it is closed to all outside applications and I can't use the port like I did before.  I have no idea what is wrong.
    (By the way, my router is a linksys e3000) 

    What I meant was your computer's IP has to match whatever IP address you set on the port forwarding page. For example, your computer's IP is 192.168.1.105, then all opened ports assignment on the forwarding page should be set to 192.168.1.105. Check your settings and if your computer's LAN card doesn't have a static IP, give these a try:
    Win7
    http://portforward.com/networking/static-win7.htm
    WinXP
    http://portforward.com/networking/static-xp.htm

  • UCCE 9 Outbound SIP problem

    Dear All,
    I'm implementing the SIP Outbound Dialer, the architecture is below
    1. ROGGER + Campaign Manager : (version 9.0)
    2. CMPG + CTI Server + CTIOS + MRPG + SIP Dialer : (version 9.0)
    3. CUCM ver 8.6
    4. Gateway + E1 trunk + IOS 15.1(3)T
    The problem is SIP Dialer doesn't call out after successfully loaded calling list into the CampaignManager (checked the log in baImport). I checked the status of SIP Dialer that it Active all (please, see the attach file). But when I check the log on MRPG it said that "Failed an attempt to ACTIVATE the Peripheral's Routing Client ". I don't sure that this is the cause of the problem or not, I've re-checked configuration on MRPG manay times but nothing strange. Anyone found this problem before please, suggest.
    BR.
    Winai K.

    Hi,
    Except for 15.1(x)T train other IOS versions do not have the capability of doing the CPA analysis (determining voice \answering machine \ fax etc) effectively.
    As a result it is recomended to use above code.
    Thank you
    Anuj

  • LC Configuration Manager problem, port 8080 still in use?

    I'm installing a trial version of the Adobe LiveCycle ES server using JBoss on my system for some development. I'm running Windows Vista Ultimate 64-bit. I did a turnkey installation. That goes fine. When I run the configuration manager, it gets to the deployment step and the "Verifying ports required by service JBoss for Adobe LiveCycle ES are available" step, and I get this error:
    "The following ports required by JBoss for Adobe LiveCycle ES are still in use 8080.
    Another instance may be running or another application may be using some of the required ports."
    Nothing has port 8080 bound. I've checked with a netstat -a -o command. I can run tomcat and it binds port 8080 just fine. I've disabled UAC (I'm logged in as an administrator), disabled windows firewall, and even uninstalled and reinstalled livecycle. One thing that happens if I restart my computer and try again is that it fails for a different error about being unable to stop the JBoss service. If I stop the service manually and retry, it just reverts to the port error above.
    This error is really confusing and I can't seem to figure out how to fix it. I need to get this up and running so I can develop and test my application. Anyone have any insights or suggestions?
    -Sam Fahmie

    I have the same problem trying to install on Vista64. Perhaps it only works on XP and 2003?
    "Chances are that the installer is failing at the stage where it tries to create a Windows service for JBoss and fails"
    This isn't the installer, it's the configuration manager that runs after the installer.
    The installer creates the service just fine. It's when the manager tries to start the service that it fails. If you manually start jboss then run the configuration manager again then it stops at the same point complaining that an instance of jboss is already running. If jboss is already running, why doesn't the installer just skip that stage and continue?
    I've found that after starting jboss manually I can connect to the 8080/adminui page (took a very long time to respond the first time I connected), but the default login doesn't work. I assume some extra steps haven't been done. Is there any way to bypass the starting of jboss in the config manager in order to complete the other steps?
    I've also tried launching the configuration manager bat file from an administrator mode console, but it fails at the same point.
    2 days screwing around with this software, both turnkey and manual on Linux and I haven't managed to get it to work. Quality. Next step will be to see if I can get a copy of XP from the museum and a find machine to run it on.

  • FaceTime problems - Ports Q

    Hi everyone,
                          I work in a University where we are having problems to get FaceTime working. Some of us tried it yesterday with no luck.
    Do we have to have a certain set of 'Ports' open to allow FaceTime to work ?  We did with iChat but once the list of 'Ports' were added to the list for access that went well, so does the same apply for FaceTime ?
    Any help would be helpful including the Port numbers if so required.
    Steve ( UK )

    Hi,
    University IT depts can be very "Security" conscious or have concerns over "Bandwidth".
    Either or both can can be an issue.
    AIM on the PC and Skype do list ports that should be open to Connect.
    Skype's can be found by looking in the Preferences, a bit like you can in iChat.
    However they have "Fall back" ports and if the port is closed they will try various popluar Mail ports or resort to using port 80 which is used by Web Browser (and a whole host of Apps checking for Updates "phoning home").
    It is that whole Ease of Use versus Security thing popping up.
    9:51 PM      Friday; July 8, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • RV220W sip problem

    I have installed 2 RV220w routers and 5 RV120w routers on a 7 site vpn ( all with the latest 10.5.8 furnware)
    I am running an Elastix 2.4 asterisk based pbx
    The issue I am having is this:
    With the sip alg disabled and the port forward set for 5060 udp and 10000-20000 udp I cannont recieve sip calls
    With the sip alg enabled and the port forward set for 5060 udd and 10000-20000 upd I can reiceive calls BUT
    the rtp packets are coming at any random port 9000 to 50000
    Aparently the sip alg is rewriting the sip header causing this
    Normally I would run this with the sip alg turned off but in that mode I cannot get the sip port to pass calls at all
    I am thinking of downgrading the firmware to the 10.4.17
    Does anyone have experience with this
    Thanks

    Please see the following thread:
    https://supportforums.cisco.com/thread/2269123
    - Marty

  • OPMN PROBLEM PORTS

    Hello everybody.
    I have installed Oracle DB10G and the HTTP server that comes with compañion cd. all this in Linux Red-Hat 4, I used this for run APEX.
    My problem is this :
    The opmn process (local port 6100) whent it starter begin to listen more than 32000 ports. I start opmn like root (to can listen by port 80)
    The resul of this is that if I try to install another tool , like OC4J, it say me that ORMI server cannot be starter because the port that use is being used.
    moreover it say me port 9240 in use. But I execute netstat -a | grep 9240 and it give me that opmn is using anothers N9240 (59240, 39240, 29240) ports but not 9240.
    the opmn.xml file (I have validate this with opmnctl validate and it is sucessfull) asign the ports :
    <port id="ajp" range="3301-3400" />
    <port id="rmi" range="3201-3300" />
    <port id="jms" range="3701-3800" />
    Any idea about this?
    Thanks & regards everybody.

    Anybody?

Maybe you are looking for

  • Acrobat v9.5.2 freezes up when trying to copy text

    I'm using Acrobat 9 (v 9.5.2) running on a Mac OS 10.7.4. So I open a pdf and attempt to copy about 5 words of text and once I hit command c, I get the swirling color wheel of death and Acrobat's status goes to "not responding." Is anyone have a simi

  • Problem Publishing to FTP site-I think it has something to do with encoding

    When I publish to my ftp server, the pages all get messed up. Titles get codes inserted into them ( is always inserted), special characters I have inserted into the text get messed up (like apostrophes, bullets, etc. etc.) It's a royal mess. I end

  • Storage location missing in Inbound delivery

    Hi , When I am getting the ASN or confirmation for my purchase order. automatically Inbound delivery is getting created. But here the problem is missing the storage location in inbound delivery. I maintained the storage location determination (with s

  • The folder for Outgoing messages

    Hello, My internet connection is not stable and very often when sending a message I receive an alert that the SMTP server is unreachable or something like that. So to send a message I have to wait when the connection is restored. And it may take quit

  • Multi-tab or page forms

    Does anyone know where I can purchase third party software for Dreamweaver forms ... or a simple way to split a very long form into mulitple pages? The form is too long as a single web page. I want to guide the viewer through multiple pages and then