sigcomp.sn 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ## For more information about scenarios, please refer to the Programmer's Guide
  2. # This scenario shows how to use two SigComp compartments (one for the REGISTER and one for SUBSCRIBE).
  3. # However, for performance reasons, in your application you should use only one Compartment for all sessions.
  4. # user's parameters (like ANSI-C #define)
  5. %%domain ericsson.com
  6. %%user mamadou
  7. %%pwd mamadou
  8. %%proxy_ip 192.168.0.16 # IP address or FQDN
  9. %%proxy_port 4060
  10. %%proxy_trans tcp # udp, tcp, tls or sctp
  11. %%expires 30 # expires used by all dialogs
  12. %%sleep-sec 1.0 # number of seconds to wait before sending next sip message
  13. %%reg-sid
  14. %%sub-reg-sid
  15. %%sub-pres-sid
  16. %%pub-sid
  17. %%inv_audio_sid
  18. #--local-ip 10.0.2.15\
  19. # Configure the stack
  20. # Realm, IMPI and IMPU are mandatory
  21. ++cst --realm $$(domain) --impi $$(user) --impu sip:$$(user)@$$(domain) --pwd $$(pwd) \
  22. --pcscf-ip $$(proxy_ip) --pcscf-port $$(proxy_port) --pcscf-trans $$(proxy_trans) --local-port 5060 \
  23. --sigcomp-id urn:uuid:2e5fdc76-00be-4314-8202-1116fa82a473 \
  24. --sigcomp-id urn:uuid:2e5fdc76-00be-4314-8202-1116fa82a474 \
  25. --header Privacy=none --header Allow=INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER \
  26. --header P-Access-Network-Info=ADSL;utran-cell-id-3gpp=00000000 \
  27. --header User-Agent=IM-client/OMA1.0 doubango/v1.0.0 # last should not have backslash
  28. # Run the engine
  29. ++r
  30. # REGISTER
  31. ++reg --xp $$(expires) --caps +g.oma.sip-im --caps +g.3gpp.smsip --caps language="en,fr" \
  32. --sigcomp-id urn:uuid:2e5fdc76-00be-4314-8202-1116fa82a473 \
  33. --header Action-Header=Myheader-value @@action \
  34. >>(reg-sid)
  35. ++sleep --sec 1
  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. # --sigcomp-id urn:uuid:2e5fdc76-00be-4314-8202-1116fa82a473 \
  39. # --header Allow-Events=refer, presence, presence.winfo, xcap-diff, conference >>(sub-reg-sid)
  40. # Press ENTER
  41. ++sleep --sec -1
  42. # Exit the application
  43. ++e