Good day,
Environment:
- private home network with:
- wlan router Cisco E4200
- Synology NAS DS712 with Disk Station Manager 4 and Asterisk 1.8 (running)
- Clients with Windows XP with Windows Messenger 5.1
Goal:
- Use Asterisk to send instant messages from one computer to an other. No VOIP.
Config:
- Sip.conf
[General]
accept_outofcall_message=yes
outofcall_message_context=messenger
[Admin01.PC02]
;username=Admin01.PC02
;secret=whatever
callerid="Test Admin PC02"
type=friend
host=dynamic
context=messenger
[Admin01.PC03]
;username=Admin01.PC03
;secret=whatever
callerid="Test Admin PC03"
type=friend
host=dynamic
context=messenger
- extensions.conf
[messenger]
; Enable Instant Messaging
; Presence status (available, busy, etc) will not be displayed as this is not part of
; the SIP protocol used by Microsoft Messenger (they use the proprietary SIMPLE protocol)
exten => _X.,1,NoOp(Instant Messaging dialplan invoked)
exten => _X.,n,NoOp(To ${MESSAGE(to)})
exten => _X.,n,NoOp(From ${MESSAGE(from)})
exten => _X.,n,NoOp(Body ${MESSAGE(body)})
exten => _X.,n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)})
exten => _X.,n,MessageSend(${ACTUALTO},${MESSAGE(from)})
exten => _X.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
exten => _X.,n,GotoIf($["${MESSAGE_SEND_STATUS}" != “SUCCESS”]?sendfailedmsg)
exten => _X.,n,Hangup()
; Handle failed messaging
exten => _X.,n(sendfailedmsg),Set(MESSAGE(body)="[${STRFTIME(${EPOCH},%d%m%Y-%H:%M:%S)}] Your message to ${EXTEN} has failed. Retry later.")
exten => _X.,n,Set(ME_1=${CUT(MESSAGE(from),<,2)})
exten => _X.,n,Set(ACTUALFROM=${CUT(ME_1,@,1)})
exten => _X.,n,MessageSend(${ACTUALFROM},ServiceCenter)
exten => _X.,n,Hangup()
; Enable VOIP for users
exten => Admin01.PC02,1,Goto(0200,1)
exten => 0200,1,Dial(SIP/Admin01.PC02)
exten => 0200,2,HangUp()
exten => Admin01.PC3,1,Goto(0300,1)
exten => 0300,1,Dial(SIP/Admin01.PC03)
exten => 0300,2,HangUp()
Problem:
- I can sign In from the different clients
- It is not possible to add contacts
- Most important: it is not possible to send messages between the clients / users
Error Message on Asterisk:
[Jun 20 19:06:58] WARNING[32653] chan_sip.c: Unsupported SDP media type in offer: x-ms-message 5060 sip sip:Admin01.PC03@Server01
[Jun 20 19:06:58] WARNING[32653] chan_sip.c: Failing due to no acceptable offer found
[Jun 20 19:06:58] NOTICE[32645] chan_sip.c: Asked to get a channel of unsupported format (nothing) while capability is (gsm|ulaw|alaw|h263|testlaw)
[Jun 20 19:06:58] WARNING[32645] app_dial.c: Unable to create channel of type ‘SIP’ (cause 58 - Bearer capability not available)
Question:
As Asterisk is quite new to me, I can not trace the problem, although I searched for hours and studied the manual. How can I get sending instant messages to work, please?
Edit: I upgraded to Asterisk 10, but still “Unsupported SDP media type in offer: x-ms-message 5060”. Ideas?
Thanks and krgds
Philipp