Hi Srinivasa,

What I meant was that you should use the default-sender of
a sendsms-user configuration block in order to limit the
scope of the "short code".

Placing the "short code" in the global-sender parameter of
the smsbox configuration block will force all sendsms-user
interfaces to use the "short code" when an origination address
is not defined for an MT SMS.

Also, the Destination Address for all MO SMS are forced to be
the global-sender defined "short code".

Here's the pseudo-code derived from the source code:

OA = Origination Address
DA = Destination Address

For MO messages:
  ( From smsbox.c:obey_request_thread()...)
  if ( "faked_sender" set ) then
    DA = "faked_sender"
  else if ( "global_sender" set ) then
    DA = "global_sender"
  else
    DA = "DA from SMS"

For MT messages:
  ( From smsbox.c:smsbox_req_handler(), smsbox_req_sendota(), and
    smsbox_sendsms_post()...)
  if ( "faked_sender" set ) then
    OA = "faked_sender"
  else if ( "OA" set ) then
    OA = OA
  else if ( "default_sender" set ) then
    OA = "default_sender"
  else if ( "global_sender" set ) then
    OA = "global_sender"

Therefore, it is better to use the default-sender in the
sendsms-user configuration block since it generates less side-effects.

See ya...

d.c.

**>From: "msrinivas" <[EMAIL PROTECTED]>
**>To: "'Davy Chan'" <[EMAIL PROTECTED]>,
**>        "'Eric Monchanin'" <[EMAIL PROTECTED]>
**>Cc: <[EMAIL PROTECTED]>
**>Subject: RE: Question about shortcode
**>Date: Tue, 7 Dec 2004 13:15:34 +0530
**>
**>
**>Hi ,
**>
**>Even if you set the global-send="our shot code" and if  you push the Message
**>by specifying the "from" parameter then it will use the "from" value
**>specified through sendsms interface. if you are not specifying the from
**>parameter when you are pushing the message then it will use the
**>global-sender.
**>
**>
**>Cheers,
**>Srinivasa Rao Munagala
**>
**>-----Original Message-----
**>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
**>Davy Chan
**>Sent: Thursday, November 25, 2004 9:29 AM
**>To: Eric Monchanin
**>Cc: [EMAIL PROTECTED]
**>Subject: Re: Question about shortcode
**>
**>
**>**>Date: Wed, 24 Nov 2004 16:21:05 -0500
**>**>From: Eric Monchanin <[EMAIL PROTECTED]>
**>**>User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
**>**>To: [EMAIL PROTECTED]
**>**>Subject: Re: Question about shortcode
**>**>In-Reply-To: <[EMAIL PROTECTED]>
**>**>
**>**>some details:
**>**>
**>**>we want all our messages to be sent with the shortcode set as reply
**>address
**>**>would it be enough to set
**>**>in sms-box
**>**>global-sender = "our short code"
**>**>
**>**>and would it override all "from" if we set any ?
**>**>
**>**>Eric Monchanin a ?crit :
**>**>
**>**>>Hi,
**>**>>
**>**>>Sorry if this looks silly, but we have a working kannel config, and it
**>**>>was not my job to take care of it.
**>**>>Now, we just received the "shortcode" for our business.
**>**>>If think it's an identifier to set for each transaction with our
**>**>>aggregator but not quite sure.
**>**>>Can anyone give me some details about that, and/or tell me if I can
**>**>>configure it in kannel.conf file.
**>
**>I would suggest you use the "default-sender" parameter found in
**>the group "sendsms-user" instead of the "global-sender" parameter
**>in the group "smsbox".
**>
**>The "default-sender" will only be used if you transfer and SMS to
**>the smsbox without an Origination Address (ie connect to kannel's
**>/cgi-bin/sendsms and send an SMS without a "from=..." or X-Kannel-From).
**>If you do set the Origination Address then Kannel will use your
**>specified address.
**>
**>On another note ...
**>  Does anyone else but me think that a 20 digit "Short Code" is
**>  an oxymoron?
**>
**>See ya...
**>
**>d.c.

Reply via email to