Connecting to SAPO: Difference between revisions
Jump to navigation
Jump to search
Created page with "Go to [http://net.sapo.pt/extras/voip/ SAPO website] for more information about SAPO. In this example: *SAPO_number -the number that SAPO provides (9 digit, starts with a 3..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 44: | Line 44: | ||
Note: You can route more outgoing calls through SAPO by not restricting the pattern to "\+351.*". | Note: You can route more outgoing calls through SAPO by not restricting the pattern to "\+351.*". | ||
'''See also''' | |||
* [[Stopping and restarting Yate]] | |||
* [[Routing]] | |||
[[Category:SIP]] [[Category:Routing]] [[Category:Regexroute]] | |||
Latest revision as of 15:37, 31 October 2013
Go to SAPO website for more information about SAPO.
In this example:
- SAPO_number -the number that SAPO provides (9 digit, starts with a 3)
- SAPO_password - the password SAPO provides
In your accfile.conf :
[sapo] enabled=yes protocol=sip username=+351SAPO_number description=SAPO SIP ;interval=600 formats=ulaw authname=+351SAPO_number password=SAPO_password number=+351SAPO_number domain=voip.sapo.pt registrar=voip.sapo.pt:5070 outbound=proxy.voip.sapo.pt localaddress=auto
In your regexroute.conf :
[default]
; Accept all incoming calls and route them to the general number
^\+351SAPO_number$=goto incoming
; Match +351 numbers
^\+351.*$=goto outgoing
; Match 9 digit numbers as if +351 prefixed
^[0-9]\{9\}$=goto outgoing;called=+351\0
[outgoing]
;Send all outgoing calls through SAPO SIP
^.*$=sip/sip:\0;line=sapo;caller=+351SAPO_number;domain=voip.sapo.pt
[incoming]
;Send all incoming calls to extension
^.*$=lateroute/myexten
Note: You can route more outgoing calls through SAPO by not restricting the pattern to "\+351.*".
See also