sms gsm to sms sip номер отправителя

Здравствуйте!

Пытаюсь принимать смс через chan_dongle в чат sip клиента Zoiper.

Использую такую конструкцию

exten => sms,1,Set(MESSAGE(body)=${BASE64_DECODE(${SMS_BASE64})})
exten => sms,n,Set(MESSAGE(from)=${CALLERID(num)})
exten => sms,n,Verbose(1,${MESSAGE(from)})
exten => sms,n,MessageSend(sip:test)
exten => sms,n,Hangup()

СМС приходит но отправитель Unknow, хотелось бы видеть реальный номер.

 [Vodafone] Got SMS from +380XXXXXXXX: 'Привет'
    -- Executing [sms@from-trunk:1] Set("Local/sms@from-trunk-00000000;1", "MESSAGE(body)=Привет") in new stack
    -- Executing [sms@from-trunk:2] Set("Local/sms@from-trunk-00000000;1", "MESSAGE(from)=+380XXXXXXXX") in new stack
    -- Executing [sms@from-trunk:3] Verbose("Local/sms@from-trunk-00000000;1", "1,+380XXXXXXXX") in new stack
 +380XXXXXXXX
    -- Executing [sms@from-trunk:4] MessageSend("Local/sms@from-trunk-00000000;1", "sip:2") in new stack
    -- Executing [sms@from-trunk:5] Hangup("Local/sms@from-trunk-00000000;1", "") in new stack
  == Spawn extension (from-trunk, sms, 5) exited non-zero on 'Local/sms@from-trunk-00000000;1'
    -- Executing [h@from-trunk:1] Macro("Local/sms@from-trunk-00000000;1", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("Local/sms@from-trunk-00000000;1", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("Local/sms@from-trunk-00000000;1", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("Local/sms@from-trunk-00000000;1", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/sms@from-trunk-00000000;1' in macro 'hangupcall'
  == Spawn extension (from-trunk, h, 1) exited non-zero on 'Local/sms@from-trunk-00000000;1'

Перепробовал разные варианты, пока безрезультатно, прошу вашей помощи в доработки конструкции. Спасибо.

Asterisk 13.11.2

 

 

Max
Max
6
| 1 0 0
Asked on 10/26/16, 1:40 PM
0
vote
7024 Views

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Поделится

Будьте в курсе

Об этом форуме

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

65 follower(s)

Stats

Asked: 10/26/16, 1:40 PM
Seen: 7024 times
Last updated: 10/26/16, 1:42 PM

Более 1 000 000 компаний в мире используют Asterisk.

Присоединяйтесь к нам и сделайте вашу компанию лучше.