core-micromethod.sn 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. ## For more information about scenarios, please refer to the Programmer's Guide
  2. # user's parameters (like ANSI-C #define)
  3. %%domain open-ims.test
  4. %%user popo
  5. %%pwd popo
  6. %%proxy_ip 192.168.0.10 # IP address or FQDN
  7. %%proxy_port 5060
  8. %%proxy_trans udp # udp, tcp, tls or sctp
  9. %%expires 60 # expires used by all dialogs
  10. %%sleep-sec 1.0 # number of seconds to wait before sending next sip message
  11. %%reg-sid
  12. %%sub-reg-sid
  13. %%sub-pres-sid
  14. %%pub-sid
  15. %%inv_audio_sid
  16. %%inv_file_sid
  17. # Configure the stack
  18. # Realm, IMPI and IMPU are mandatory
  19. #--stun-ip numb.viagenie.ca --stun-port 3478 --stun-usr $$(user)@$$(domain) --stun-pwd $$(pwd)
  20. ++cst --realm $$(domain) --impi $$(user)@$$(domain) --impu sip:$$(user)@$$(domain) --pwd $$(pwd) \
  21. --pcscf-ip $$(proxy_ip) --pcscf-port $$(proxy_port) --pcscf-trans $$(proxy_trans) \
  22. --header Privacy=none --header Allow=INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER \
  23. --header P-Access-Network-Info=ADSL;utran-cell-id-3gpp=00000000 \
  24. --header User-Agent=IM-client/OMA1.0 doubango/v1.0.0 # last should not have backslash
  25. # Run the engine
  26. ++r
  27. # OPTIONS to hack AOR
  28. #++opt
  29. #++sleep --sec $$(sleep-sec)
  30. # REGISTER
  31. ++reg --xp $$(expires) --caps +g.oma.sip-im --caps +g.3gpp.smsip --caps language="en,fr" \
  32. --header Action-Header=Myheader-value @@action \
  33. >>(reg-sid)
  34. # sleep
  35. ++sleep --sec $$(sleep-sec)
  36. # SUBSCRIBE to reg event package (silent hangup)
  37. #++sub --to sip:$$(user)@$$(domain) --xp $$(expires) --silent --header Event=reg --header Accept=application/reginfo+xml \
  38. # --header Allow-Events=refer, presence, presence.winfo, xcap-diff, conference >>(sub-reg-sid)
  39. #SUBSCRIBE to presence event package (alice)
  40. #++sub --to sip:alice@$$(domain) --xp $$(expires) --header Event=presence --header Supported=eventlist\
  41. # --header Accept=multipart/related, application/rlmi+xml, application/pidf+xml, application/rpid+xml, application/xcap-diff+xml, message/external-body \
  42. # --header Allow-Events=refer, presence, presence.winfo, xcap-diff, conference >>(sub-pres-sid)
  43. #PUBLISH
  44. #++sn --path ./publish.sn
  45. #send Pager Mode IM
  46. #++m --to sip:alice@$$(domain) \
  47. # --header NS=imdn <urn:ietf:params:imdn> \
  48. # --header imdn.Message-ID=34jk324j \
  49. # --header DateTime=2006-04-04T12:16:49-05:00 \
  50. # --header imdn.Disposition-Notification=positive-delivery, negative-delivery \
  51. # --header Content-Type=text/plain \
  52. # --pay Hello World
  53. #Send Binary SMS (RP-DATA)
  54. #++sms --smsc sip:+33185145269@$$(domain);user=phone;npi=ISDN --to sip:+33685214585@$$(domain);user=phone \
  55. # --header Content-Type=application/vnd.3gpp.sms \
  56. # --header Transfer-Encoding=binary \
  57. # --pay hello world
  58. #send INVITE
  59. #++av --to sip:bob@$$(domain) \
  60. # --header Action-Header=Myheader-value @@action \
  61. # >>(inv_audio_sid)
  62. #++hu --sid $$(inv_audio_sid)
  63. ++file --to sip:bob@$$(domain) --path ./core-micromethod.sn \
  64. --header Action-Header=Myheader-value @@action \
  65. >>(inv_file_sid)
  66. ++sleep --sec -1
  67. #++sleep --sec -1
  68. #++ho --sid $$(inv_audio_sid)
  69. #++sleep --sec -1
  70. #++res --sid $$(inv_audio_sid)
  71. #++sleep --sec -1
  72. #++ect --sid $$(inv_audio_sid) --to alice@$$(domain)
  73. #++sleep --sec -1
  74. #++dtmf --sid $$(inv_audio_sid) --event 1
  75. # Press ENTER
  76. ++sleep --sec -1
  77. # unsunscribe (reg and pres)
  78. #++hu --sid $$(sub-reg-sid)
  79. #++hu --sid $$(sub-pres-sid)
  80. #++hu --sid $$(pub-sid)
  81. # sleep
  82. #++sleep --sec $$(sleep-sec)
  83. # unregister
  84. #++hu --sid $$(reg-sid)
  85. # sleep
  86. #++sleep --sec $$(sleep-sec)
  87. # Exit the application
  88. ++e