Guest User

Untitled

a guest
May 24th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. ## conf/dialplan/default.xml
  2.  
  3. <extension name="outbound">
  4. <condition field="destination_number" expression="^9(\d{10,})$">
  5. <action application="bridge" data="sofia/gateway/teliax/$1"/>
  6. </condition>
  7. </extension>
  8.  
  9. ## conf/sip_profiles/external/teliax.xml
  10.  
  11. <include>
  12. <gateway name="teliax">
  13. <!--/// account username *required* ///-->
  14. <param name="username" value="username"/>
  15. <!--/// auth realm: *optional* same as gateway name, if blank ///-->
  16. <param name="realm" value="atl.teliax.net"/>
  17. <!--/// username to use in from: *optional* same as username, if blank ///-->
  18. <!--<param name="from-user" value="cluecon"/>-->
  19. <!--/// domain to use in from: *optional* same as realm, if blank ///-->
  20. <!--<param name="from-domain" value="asterlink.com"/>-->
  21. <!--/// account password *required* ///-->
  22. <param name="password" value="secret"/>
  23. <!--/// extension for inbound calls: *optional* same as username, if blank ///-->
  24. <!--<param name="extension" value="cluecon"/>-->
  25. <!--/// proxy host: *optional* same as realm, if blank ///-->
  26. <!--<param name="proxy" value="asterlink.com"/>-->
  27. <!--/// send register to this proxy: *optional* same as proxy, if blank ///-->
  28. <!--<param name="register-proxy" value="mysbc.com"/>-->
  29. <!--/// expire in seconds: *optional* 3600, if blank ///-->
  30. <!--<param name="expire-seconds" value="60"/>-->
  31. <!--/// do not register ///-->
  32. <!--<param name="register" value="false"/>-->
  33. <!-- which transport to use for register -->
  34. <!--<param name="register-transport" value="udp"/>-->
  35. <!--How many seconds before a retry when a failure or timeout occurs -->
  36. <!--<param name="retry_seconds" value="30"/>-->
  37. <!--Use the callerid of an inbound call in the from field on outbound calls via this gateway -->
  38. <!--<param name="caller-id-in-from" value="false"/>-->
  39. <!--extra sip params to send in the contact-->
  40. <!--<param name="contact-params" value="tport=tcp"/>-->
  41. </gateway>
  42. </include>
Add Comment
Please, Sign In to add comment