Hi,
I am writing a SIP client using PJSIP for instant messaging. I use Asterisk 10 beta1 for all the SIP tests I perform.
I am trying to configure the dial plan for MESSAGE and MessageSend primitives. But haven’t been successful yet. I get the following error when I reload Asterisk. Could you please help me configure the dial plan for SIP Instant Messaging using SIMPLE?
Warning:
pbx_config.c:1520 pbx_load_config: Invalid priority/label ‘MessageSend’ at line 848 of extensions.conf
extensions.conf:
[raghav]
exten => 1001,1,Dial(SIP/1001)
exten => 1001,2,Voicemail(1001@raghav)
exten => 1001,hint,SIP/1001
exten => 1001,MessageSend(SIP:1001@10.0.0.27)
exten => 1002,1,Dial(SIP/1002)
exten => 1002,2,Voicemail(1002@raghav)
exten => 1002,hint,SIP/1002
exten => 1002,MessageSend(SIP:1002@10.0.0.27)
sip.conf:
accept_outofcall_message = yes
[1001]
type = peer
callerid = U1001
secret = 1001
host = dynamic
context=raghav
call-limit=99
allow=all
[1002]
type = peer
callerid = U1002
secret = 1002
host = dynamic
context=raghav
call-limit=99
allow=all
Thanks,
Raghav