Tughralkhan / smscgateway

Automatically exported from code.google.com/p/smscgateway
0 stars 0 forks source link

SMSC sending deliver_sm on a bind_transmit connection #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup a bind_transmit from ESME 
2. Send a submit_sm
3. SMSC will send deliver_sm on the same bind

What is the expected output? What do you see instead?
I think that it should send it down a bind_receiver.

What version of the product are you using? On what operating system?
Bleeding edge.

Please provide any additional information below.

Ok, below we setup two separate binds... the deliver_sm comes on the 
transmitter bind. Also, if we unbind after submit_sm_resp, we don't get a 
deliver_sm.

133.440942 172.16.29.36 -> 172.16.29.19 SMPP SMPP Bind_receiver
133.442286 172.16.29.19 -> 172.16.29.36 SMPP SMPP Bind_receiver - resp: "Ok"
137.791958 172.16.29.36 -> 172.16.29.19 SMPP SMPP Bind_transmitter
137.792981 172.16.29.19 -> 172.16.29.36 SMPP SMPP Bind_transmitter - resp: "Ok"
137.793746 172.16.29.36 -> 172.16.29.19 SMPP SMPP Submit_sm
137.795041 172.16.29.19 -> 172.16.29.36 SMPP SMPP Submit_sm - resp: "Ok"
140.741751 172.16.29.19 -> 172.16.29.36 SMPP SMPP Deliver_sm
147.795355 172.16.29.36 -> 172.16.29.19 SMPP SMPP Unbind
147.795690 172.16.29.19 -> 172.16.29.36 SMPP SMPP Unbind - resp: "Ok"

Original issue reported on code.google.com by wasimb...@gmail.com on 27 Jun 2012 at 2:47

GoogleCodeExporter commented 9 years ago
Fixed.
http://code.google.com/p/smscgateway/source/detail?r=6edfc71e97f0

Original comment by amit.bha...@gmail.com on 7 Jul 2012 at 5:35

GoogleCodeExporter commented 9 years ago
the install went smoothly ... but ..

    [root@sv01apsmsc01 bin]# ./ss7-cli.sh
    version=2.0.0-SNAPSHOT,name=Mobicents CLI,prefix=mobicents,vendor=TeleStax
    mobicents>connect
    mobicents(local)>smsc esme create 1005 csmsc123 172.16.29.36 2775 TRANSMITTER
    Successfully created ESME name=1005
    mobicents(local)>smsc esme create 1015 csmsc123 172.16.29.36 2775 RECEIVER esme-range ^92.*$
    Successfully created ESME name=1015

    after you press enter, it takes a long time to print that its created the ESME ... probably its just timing out with a false positive ... (note to self: maybe we should have timestamp on each cli console output)

    second, there is a write error on mobicents console
    03:23:14,616 ERROR [SmscManagement] Error while persisting the Rule state in file
    java.lang.NullPointerException
    at org.mobicents.smsc.smpp.Esme$1.write(Esme.java:233)
    at org.mobicents.smsc.smpp.Esme$1.write(Esme.java:196)
    at javolution.xml.XMLFormat$OutputElement.add(XMLFormat.java:750)
    at javolution.xml.XMLBinding$2.write(XMLBinding.java:372)
    at javolution.xml.XMLFormat$OutputElement.add(XMLFormat.java:836)
    at javolution.xml.XMLObjectWriter.write(XMLObjectWriter.java:273)
    at org.mobicents.smsc.smpp.SmscManagement.store(SmscManagement.java:216)
    at org.mobicents.smsc.smpp.SmscManagement.createEsme(SmscManagement.java:185)
    at org.mobicents.smsc.smpp.SMSCShellExecutor.createEsme(SMSCShellExecutor.java:155)
    at org.mobicents.smsc.smpp.SMSCShellExecutor.executeSmsc(SMSCShellExecutor.java:215)
    at org.mobicents.smsc.smpp.SMSCShellExecutor.execute(SMSCShellExecutor.java:315)
    at org.mobicents.ss7.management.console.ShellServer.perform(ShellServer.java:168)
    at org.mobicents.protocols.ss7.scheduler.Task.run(Task.java:116)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

    and third... the file itself is 0 size
    -rw-r--r-- 1 root root 0 Jul 8 03:23 SmscManagement_smsc.xml

    dir perms etc seem ok, it creates the file just fine ...

    also, it doesn't seem to use the PORT value, its using 2776 even if I put 2775

Original comment by wasimb...@gmail.com on 7 Jul 2012 at 10:49

GoogleCodeExporter commented 9 years ago
Fixed
http://code.google.com/p/smscgateway/source/detail?r=1a9d985a5bc6

Original comment by amit.bha...@gmail.com on 8 Jul 2012 at 9:15