core-inexbee.sn 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ## For more information about scenarios, please refer to the Programmer's Guide
  2. # user's parameters (like ANSI-C #define)
  3. # No Proxy-CSCF ==> we are using DNS-NAPTR discovery
  4. %%domain ims.inexbee.com
  5. %%user bob
  6. %%pwd bob
  7. %%proxy_trans udp # udp, tcp, tls or sctp
  8. %%expires 30 # expires used by all dialogs
  9. %%sleep-sec 2.0 # number of seconds to wait before sending next sip message
  10. %%reg-sid
  11. %%sub-reg-sid
  12. %%sub-pres-sid
  13. %%pub-sid
  14. # Configure the stack
  15. # Realm, IMPI and IMPU are mandatory
  16. ++cst --realm $$(domain) --impi $$(user)@$$(domain) --impu sip:$$(user)@$$(domain) --pwd $$(pwd) \
  17. --dns-naptr --pcscf-ip 192.168.16.225 --pcscf-port 4060 --pcscf-trans $$(proxy_trans)\
  18. --header Privacy=header;id --header Allow=INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER \
  19. --header P-Access-Network-Info=ADSL;utran-cell-id-3gpp=00000000 \
  20. --header User-Agent=IM-client/OMA1.0 doubango/v1.0.0 # last should not have backslash
  21. # Run the engine
  22. ++r
  23. # REGISTER
  24. ++reg --xp $$(expires) --caps +g.oma.sip-im --caps +g.3gpp.smsip --caps language="en,fr" \
  25. --header Action-Header=Myheader-value @@action\
  26. >>(reg-sid)
  27. # sleep
  28. #++sleep --sec $$(sleep-sec)
  29. subscribe to reg event package
  30. #++sub --to sip:$$(user)@$$(domain) --xp $$(expires) --header Event=reg --header Accept=application/reginfo+xml \
  31. # --header Allow-Events=refer, presence, presence.winfo, xcap-diff, conference >>(sub-reg-sid)
  32. #subscribe to presence event package (alice)
  33. #++sub --to sip:alice@$$(domain) --xp $$(expires) --header Event=presence --header Supported=eventlist\
  34. # --header Accept=multipart/related, application/rlmi+xml, application/pidf+xml, application/rpid+xml, application/xcap-diff+xml, message/external-body \
  35. # --header Allow-Events=refer, presence, presence.winfo, xcap-diff, conference >>(sub-pres-sid)
  36. #publish
  37. #++sn --path ./publish.sn
  38. ++av --to sip:004@$$(domain) \
  39. --header Action-Header=Myheader-value @@action \
  40. >>(inv_audio_sid)
  41. # sleep
  42. ++sleep --sec -1 # Press ENTER
  43. # unsunscribe (reg and pres)
  44. #++hu --sid $$(sub-reg-sid)
  45. #++hu --sid $$(sub-pres-sid)
  46. #++hu --sid $$(pub-sid)
  47. # sleep
  48. #++sleep --sec $$(sleep-sec)
  49. # unregister
  50. #++hu --sid $$(reg-sid)
  51. # sleep
  52. #++sleep --sec $$(sleep-sec)
  53. # Exit the application
  54. ++e