venturinog your configuration settings mentioned works thanks a lot.
Secondly, I tried messaging while doing entry in sip.conf as
"accept_outofcall_message=yes
outcall_message_control=astsms"
and in extensions_custom.conf as
"[astsms]
exten => .,1,NoOp(SMS receiving dialplan invoked)
exten => .,n,NoOp(To ${MESSAGE(to)})
exten => .,n,NoOp(From ${MESSAGE(from)})
exten => .,n,NoOp(Body ${MESSAGE(body)})
exten => .,n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)})
exten => .,n,MessageSend(${ACTUALTO},${MESSAGE(from)})
exten => .,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
exten => .,n,GotoIf($["${MESSAGE_SEND_STATUS}" != "SUCCESS"]?sendfailedmsg)
exten => .,n,Hangup()
;
; Handle failed messaging
exten => .,n(sendfailedmsg),Set(MESSAGE(body)="[${STRFTIME(${EPOCH},,%d%m%Y-%H:%M:%S)}] Your message to ${EXTEN} has failed. Retry later.")
exten => .,n,Set(ME_1=${CUT(MESSAGE(from),<,2)})
exten => .,n,Set(ACTUALFROM=${CUT(ME_1,@,1)})
exten => .,n,MessageSend(${ACTUALFROM},ServiceCenter)
exten => .,n,Hangup()
exten => _.,n,Hangup()
"
Now I have configured my extensions in zoiper, and the issue faced is some messages get delivered to the other end and some do not. So any suggestions to overcome the issue?
and thirdly this server extension presently works on more than one device parallel but what we need is once it is configured on a single device it get binned to that only till the time it is not logged out.