[Home]

Summary:ASTERISK-19380: Asterisk 10.2.0-rc2 MessageSend() application reply to sender issue
Reporter:Chernov Roman (romiras1984)Labels:
Date Opened:2012-02-17 03:59:03.000-0600Date Closed:2012-02-17 10:31:22.000-0600
Priority:MajorRegression?Yes
Status:Closed/CompleteComponents:
Versions:10.2.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When first SIP-client "sender" sends a text messaage to another SIP-client which are both connected to the same Asterisk server message is transmitted successfully and message comes to "reciever". Then when "reciever" REPLY to "sender" message comes to the second (text chat) of the "sender". Why does it happen? Why does not conversation still in the same text chat?

**********************************

Here's my Asterisk CLI logs:

  -- Executing [1882@messages:1] MSet("Message/ast_msg_queue", "~~EXTEN~~=1882") in new stack
   -- Executing [1882@messages:2] Set("Message/ast_msg_queue", "MESSAGE(from)="Alex" <sip:alex@aster.domain>") in new stack
   -- Executing [1882@messages:3] Set("Message/ast_msg_queue", "MESSAGE(to)=sip:1882@aster.domain") in new stack
   -- Executing [1882@messages:4] Set("Message/ast_msg_queue", "MESSAGE(body)=564564") in new stack
   -- Executing [1882@messages:5] Set("Message/ast_msg_queue", "GLOBAL(__from_message)="Alex" <sip:alex@aster.domain>") in new stack
 == Setting global variable '__from_message' to '"Alex" <sip:alex@aster.domain>'
   -- Executing [1882@messages:6] Set("Message/ast_msg_queue", "GLOBAL(__from_user_domain)=alex@aster.domain>") in new stack
 == Setting global variable '__from_user_domain' to 'alex@sombrero.galaxy>'
   -- Executing [1882@messages:7] Set("Message/ast_msg_queue", "GLOBAL(__from_user)=alex") in new stack
 == Setting global variable '__from_user' to 'alex'
   -- Executing [1882@messages:8] Set("Message/ast_msg_queue", "GLOBAL(__dest_message)=sip:1882@aster.domain") in new stack
 == Setting global variable '__dest_message' to 'sip:1882@sombrero.galaxy'
   -- Executing [1882@messages:9] Set("Message/ast_msg_queue", "GLOBAL(__dest_number_domain)=1882@aster.domain") in new stack
 == Setting global variable '__dest_number_domain' to '1882@sombrero.galaxy'
   -- Executing [1882@messages:10] Set("Message/ast_msg_queue", "GLOBAL(__dest_number)=1882") in new stack
 == Setting global variable '__dest_number' to '1882'
   -- Executing [1882@messages:11] Goto("Message/ast_msg_queue", "sw_1_1882,10") in new stack
   -- Goto (messages,sw_1_1882,10)
   -- Executing [sw_1_1882@messages:10] Set("Message/ast_msg_queue", "usersend=roman") in new stack
   -- Executing [sw_1_1882@messages:11] Goto("Message/ast_msg_queue", "_XXXX,12") in new stack
   -- Goto (messages,_XXXX,12)
   -- Executing [_XXXX@messages:12] NoOp("Message/ast_msg_queue", "Finish switch_messages_1") in new stack
   -- Executing [_XXXX@messages:13] Set("Message/ast_msg_queue", "MESSAGE_DATA(from)="Alex" <sip:alex@aster.domain>") in new stack
   -- Executing [_XXXX@messages:14] MessageSend("Message/ast_msg_queue", "sip:roman,"Alex" <sip:alex@aster.domain>") in new stack
   -- Executing [_XXXX@messages:15] NoOp("Message/ast_msg_queue", "Message Send Status -> SUCCESS") in new stack
   -- Auto fallthrough, channel 'Message/ast_msg_queue' status is 'UNKNOWN'
   -- Executing [roman@messages:1] Set("Message/ast_msg_queue", "from_user_domain=alex@sombrero.galaxy>") in new stack
   -- Executing [roman@messages:2] Set("Message/ast_msg_queue", "from_user=alex") in new stack
   -- Executing [roman@messages:3] Set("Message/ast_msg_queue", "from_domain=domain.com:5061") in new stack
   -- Executing [roman@messages:4] GotoIf("Message/ast_msg_queue", "1?5:8") in new stack
   -- Goto (messages,roman,5)
   -- Executing [roman@messages:5] Set("Message/ast_msg_queue", "from_number=1880") in new stack
   -- Executing [roman@messages:6] Set("Message/ast_msg_queue", "usersend=alex") in new stack
   -- Executing [roman@messages:7] Goto("Message/ast_msg_queue", "12") in new stack
   -- Goto (messages,roman,12)
   -- Executing [roman@messages:12] NoOp("Message/ast_msg_queue", "Finish if_messages_2") in new stack
   -- Executing [roman@messages:13] Set("Message/ast_msg_queue", "MESSAGE(from)="Roman" <sip:roman@aster.domain>") in new stack
   -- Executing [roman@messages:14] Set("Message/ast_msg_queue", "MESSAGE(to)=sip:1880@domain.com:5061") in new stack
   -- Executing [roman@messages:15] Set("Message/ast_msg_queue", "MESSAGE(body)=dfgdfgdf") in new stack
   -- Executing [roman@messages:16] Set("Message/ast_msg_queue", "MESSAGE_DATA(from)="Roman" <sip:roman@aster.domain>") in new stack
   -- Executing [roman@messages:17] MessageSend("Message/ast_msg_queue", "sip:alex,"Roman" <sip:roman@aster.domain>") in new stack
   -- Executing [roman@messages:18] NoOp("Message/ast_msg_queue", "Send Message Status -> SUCCESS") in new stack


Comments:By: Richard Mudgett (rmudgett) 2012-02-17 10:31:22.606-0600

The out-of-call messages are not part of a continuing dialog.  Each message is independent of any previous message.  Any "dialog" you are having with these exchanges is imaginary.

Looking at your CLI output I see that you are setting MESSAGE(from), MESSAGE(to), MESSAGE_DATA(from), and MESSAGE_DATA(to).  This is wasteful as those values will not be used by Asterisk.  The MESSAGE(from) and MESSAGE(to) values are set by Asterisk for you to use in message routing.

While I can appreciate any difficulties you are having, this is not a bug report and I am closing it.  Questions like this should be asked on the asterisk-users mailing list.