Ну уже чуть ближе к теме.
Получается так в
extensions.conf
Код: Выделить всё
[messages]
exten => 8322008631,1,NoOp(Caller ID is ${CALLERID(all)})
exten => 8322008631,2,MessageSend(sip:alexader,${CALLERID(num)}<sip:${CALLERID(num)}@in-elite.com>)
exten => 8322008632,1,NoOp(Caller ID is ${CALLERID(all)})
exten => 8322008632,2,MessageSend(sip:irina,${CALLERID(num)}<sip:${CALLERID(num)}@in-elite.com>)
и Результат такой
[Mar 24 20:55:37] NOTICE[28139]: chan_sip.c:23584 handle_response_peerpoke: Peer 'irina' is now Reachable. (15ms / 2000ms)
== Extension Changed 8322008632[status] new state Idle for Notify User alexander
-- Executing [8322008631@messages:1] NoOp("Message/ast_msg_queue", "Caller ID is "" <8322008632>") in new stack
-- Executing [8322008631@messages:2] MessageSend("Message/ast_msg_queue", "sip:alexader,8322008632<sip:8322008632@in-elite.com>") in new stack
[Mar 24 20:55:43] ERROR[28119][C-00000000]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("alexader", "(null)", ...): Name or service not known
[Mar 24 20:55:43] WARNING[28119][C-00000000]: chan_sip.c:6054 create_addr: No such host: alexader
-- Auto fallthrough, channel 'Message/ast_msg_queue' status is 'UNKNOWN'
-- Executing [832sip:irina,8322008632<sip:8322008632@in-elite.com>2008632@messages:1] NoOp("Message/ast_msg_queue", "Caller ID is "" <8322008632>") in new stack
-- Executing [8322008632@messages:2] MessageSend("Message/ast_msg_queue", "sip:irina,8322008632<sip:8322008632@in-elite.com>") in new stack
-- Auto fallthrough, channel 'Message/ast_msg_queue' status is 'UNKNOWN'
-- Executing [8322008632@messages:1] NoOp("Message/ast_msg_queue", "Caller ID is "" <8322008632>") in new stack
-- Executing [8322008632@messages:2] MessageSend("Message/ast_msg_queue", "sip:irina,8322008632<sip:8322008632@in-elite.com>") in new stack
-- Auto fallthrough, channel 'Message/ast_msg_queue' status is 'UNKNOWN'
-- Executing [8322008632@messages:1] NoOp("Message/ast_msg_queue", "Caller ID is "" <8322008632>") in new stack
-- Executing [8322008632@messages:2] MessageSend("Message/ast_msg_queue", "sip:irina,8322008632<sip:8322008632@in-elite.com>") in new stack
-- Auto fallthrough, channel 'Message/ast_msg_queue' status is 'UNKNOWN'
Так вот что странно, первый раз послал сам себе, ок пришло, второй раз отослал пользователю irina принял пользователь irina отсылает она обратно текстовое сообщение но уже сама себе... бред, почему назначается один CALLERID на двух пользователей. Ну нифига не понемаю что за фигня...