Hi all,
New here and to Asterisk.
Installed Asterisk 11 setup sip and extensions conf, phone system works fine.
When I try to setup SIP message I encounter problem and Google searched with no resolution.
[color=#FF0000]‘MessageSend’
– Executing [100@SMSMessages:1] MessageSend(“Message/ast_msg_queue”, “sip:100,sip:HomeTest1@localhost.local”) in new stack[/color]
[color=#FF0000]Purely numeric hostname (100), and not a peer–rejecting![/color]
SIP.conf
[general]
accept_outofcall_messages=yes
outofcall_message_context=Messages
auth_message_requests=yes
callcounter=yes
extensions.conf
[Messages]
exten => _X.,1,MessageSend(sip:${EXTEN},${MESSAGE(from)})
Debug output
[Mar 28 11:38:33] DEBUG[2369]: chan_sip.c:9167 find_call: = Looking for Call ID: rmEGFSgPjKLhQ-ESb7PxL3w61PNLhPE2 (Checking From) --From tag 0NT6eQBYg7630Dab9BzOmJFTpWjDX-Q2 --To-tag
[Mar 28 11:38:33] DEBUG[2369]: acl.c:979 ast_ouraddrfor: For destination '192.168.0.120', our source address is '192.168.0.10'.
[Mar 28 11:38:33] DEBUG[2369]: chan_sip.c:4032 ast_sip_ouraddrfor: Setting SIP_TRANSPORT_UDP with address 192.168.0.10:5060
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting '10.114.197.177:33720' into...
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:192 ast_sockaddr_split_hostport: ...host '10.114.197.177' and port '33720'.
[Mar 28 11:38:33] DEBUG[2369]: chan_sip.c:17974 check_for_nat: NAT detected for 10.114.197.177 / 192.168.0.120
[Mar 28 11:38:33] DEBUG[2369]: chan_sip.c:8770 sip_alloc: Allocating new SIP dialog for rmEGFSgPjKLhQ-ESb7PxL3w61PNLhPE2 - MESSAGE (No RTP)
[Mar 28 11:38:33] DEBUG[2369]: chan_sip.c:28146 handle_incoming: **** Received MESSAGE (11) - Command in SIP MESSAGE
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting 'localhost.local' into...
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:192 ast_sockaddr_split_hostport: ...host 'localhost.local' and port ''.
[Mar 28 11:38:33] DEBUG[2369]: chan_sip.c:3875 __sip_xmit: Trying to put 'SIP/2.0 401' onto UDP socket destined for 192.168.0.120:53366
[Mar 28 11:38:33] DEBUG[2369]: chan_sip.c:9167 find_call: = Looking for Call ID: rmEGFSgPjKLhQ-ESb7PxL3w61PNLhPE2 (Checking From) --From tag 0NT6eQBYg7630Dab9BzOmJFTpWjDX-Q2 --To-tag
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting 'localhost.local' into...
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:192 ast_sockaddr_split_hostport: ...host 'localhost.local' and port ''.
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting 'localhost.local' into...
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:192 ast_sockaddr_split_hostport: ...host 'localhost.local' and port ''.
[Mar 28 11:38:33] DEBUG[2369]: chan_sip.c:28146 handle_incoming: **** Received MESSAGE (11) - Command in SIP MESSAGE
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting 'localhost.local' into...
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:192 ast_sockaddr_split_hostport: ...host 'localhost.local' and port ''.
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting 'localhost.local' into...
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:192 ast_sockaddr_split_hostport: ...host 'localhost.local' and port ''.
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting 'localhost.local' into...
[Mar 28 11:38:33] DEBUG[2369]: netsock2.c:192 ast_sockaddr_split_hostport: ...host 'localhost.local' and port ''.
[Mar 28 11:38:33] DEBUG[2369]: chan_sip.c:3875 __sip_xmit: Trying to put 'SIP/2.0 202' onto UDP socket destined for 192.168.0.120:53366
[Mar 28 11:38:33] DEBUG[2345][C-00000000]: pbx.c:3675 ast_str_retrieve_variable: Result of 'EXTEN' is '100'
[Mar 28 11:38:33] DEBUG[2345][C-00000000]: pbx.c:4718 pbx_substitute_variables_helper_full: Function result is '<sip:HomeTest1@localhost.local>'
[Mar 28 11:38:33] DEBUG[2345][C-00000000]: pbx.c:4890 pbx_extension_helper: Launching 'MessageSend'
-- Executing [100@SMSMessages:1] MessageSend("Message/ast_msg_queue", "sip:100,<sip:HomeTest1@localhost.local>") in new stack
[Mar 28 11:38:33] DEBUG[2345][C-00000000]: chan_sip.c:8770 sip_alloc: Allocating new SIP dialog for 3ba233a263c3aaa500ecf92a18f44496@[::1]:5060 - MESSAGE (No RTP)
[Mar 28 11:38:33] DEBUG[2345][C-00000000]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting 'localhost.local' into...
[Mar 28 11:38:33] DEBUG[2345][C-00000000]: netsock2.c:192 ast_sockaddr_split_hostport: ...host 'localhost.local' and port ''.
[Mar 28 11:38:33] WARNING[2345][C-00000000]: chan_sip.c:6160 create_addr: Purely numeric hostname (100), and not a peer--rejecting!
[Mar 28 11:38:33] DEBUG[2345][C-00000000]: chan_sip.c:6828 sip_destroy: Destroying SIP dialog 3ba233a263c3aaa500ecf92a18f44496@[::1]:5060
-- Auto fallthrough, channel 'Message/ast_msg_queue' status is 'UNKNOWN'
[Mar 28 11:38:43] DEBUG[2369]: chan_sip.c:4423 __sip_autodestruct: Auto destroying SIP dialog 'rmEGFSgPjKLhQ-ESb7PxL3w61PNLhPE2'
[Mar 28 11:38:43] DEBUG[2369]: chan_sip.c:6828 sip_destroy: Destroying SIP dialog rmEGFSgPjKLhQ-ESb7PxL3w61PNLhPE2
[Mar 28 11:38:49] DEBUG[2369]: chan_sip.c:8770 sip_alloc: Allocating new SIP dialog for 250c05dc161cc8b33235190111a92b10@[::1]:5060 - OPTIONS (No RTP)
[Mar 28 11:38:49] DEBUG[2369]: acl.c:979 ast_ouraddrfor: For destination '192.168.0.120', our source address is '192.168.0.10'.
[Mar 28 11:38:49] DEBUG[2369]: chan_sip.c:4032 ast_sip_ouraddrfor: Setting SIP_TRANSPORT_UDP with address 192.168.0.10:5060
[Mar 28 11:38:49] DEBUG[2369]: chan_sip.c:8565 change_callid_pvt: SIP call-id changed from '250c05dc161cc8b33235190111a92b10@[::1]:5060' to '32fbc94f294b86be37bfcaf57d4a4c9d@192.168.0.10:5060'
[Mar 28 11:38:49] DEBUG[2369]: chan_sip.c:3518 initialize_initreq: Initializing initreq for method OPTIONS - callid 32fbc94f294b86be37bfcaf57d4a4c9d@192.168.0.10:5060
[Mar 28 11:38:49] DEBUG[2369]: chan_sip.c:3875 __sip_xmit: Trying to put 'OPTIONS sip' onto UDP socket destined for 192.168.0.120:53366
[Mar 28 11:38:49] DEBUG[2369]: chan_sip.c:9167 find_call: = Looking for Call ID: 32fbc94f294b86be37bfcaf57d4a4c9d@192.168.0.10:5060 (Checking To) --From tag as6fc0ba12 --To-tag z9hG4bK164c8246
[Mar 28 11:38:49] DEBUG[2369]: chan_sip.c:4567 __sip_ack: Stopping retransmission on '32fbc94f294b86be37bfcaf57d4a4c9d@192.168.0.10:5060' of Request 102: Match Found
[Mar 28 11:38:49] DEBUG[2369]: chan_sip.c:6828 sip_destroy: Destroying SIP dialog 32fbc94f294b86be37bfcaf57d4a4c9d@192.168.0.10:5060
Expert please help
Mogu