Send message to certian contact

Hello
I can send message from user2 to user1 with this
exten =>23,1,MessageSend(pjsip:User1@23.19.74.164,User2)

so user1 can register from multiple device and I want to send message to specific device .when user1 register from any device I want to save contact info and send message to her with contact info .for example this is contact info
User1/sip:j6ms711v@23.19.74.164:44520;tran
I test this but not working
MessageSend(pjsip:User1/sip:j6ms711v@23.19.74.164,User2)

I found the solution .all connection created with webrtc.so transport is ws and this is work

exten =>23,1,MessageSend(pjsip:User1/sip:j6ms711v@23.19.74.164:57952\;transport=ws,User2)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.