Hi Juan, thank you very much for you answer.
I need to set two binds, one for TX and one for RX.
What I am doing is creating one smsc "smsc1_tx" setting the
receive-port = 0 (disable) and the port = 5321. And other one,
"smsc1_rx" with receive-port = 5321 and port = 0 (disable).
What I am trying to do is one bind for RX and one for TX.
What I am getting is:
smsc1_rx connected like 5321/0 (port 5321for TX and 0 for RX)
smsc1_tx connected like 5321/5321 (port 5321 for TX and RX)
After looking at the code I realize that the kannel is seeing -no-
receive-port, so setting it to port´s port.
I tried with the transceiver-mode = false, but no difference
Thanks
Regards
Emiliano
On 5/1/07, Juan Nin <[EMAIL PROTECTED]> wrote:
Emiliano Darriba wrote:
> Hi, I am trying to set receive-port = 0, but I keeps connecting on
> port´s "port"After checking the smsc_smpp.c code, I have found this
> line:
>
> conn->name = octstr_format("SMPP:%S:%d/%d:%S:%S",
> host, port,
> (receive_port ? receive_port : port),
> username, system_type);
>
>
> Line 2136: "(receive_port ? receive_port : port)"
> As receive_port is zero, the condition is FALSE and then it falls to
> port, so, if the receive_port is set to zero or none set, it always
> falls to port.
>
> May be I am missing something, but as I can not set the receive port
> to zero, I thought this could be the problem.
> I may be wrong because I saw conf examples with two binds, one for RX
> and one for TX, and no problems reported...
>
> Please answer
> Regards
>
>
Emiliano, I'm not sure I undesrtand you post...
Value "0" has the effect of disabling it, therefore only using "port"
from the userguide:
receive-port port-number The port number for the RECEIVER connection
to the SMSC. May be the same as port. Use value 0 to disable this I/O
thread.
From your post I believe you mean you really want to set "0" as
receive_port???
Port 0 does not exist!!! You can not set a port with value 0!!!
Was that what you wanted??
Regards,
Juan