Connecting to SAPO
From Yate Documentation
(Difference between revisions)
(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...") |
|||
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]] |
Revision as of 16:12, 18 September 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