[Spce-user] SPCE and Asterisk
Skyler
skchopperguy at gmail.com
Thu Apr 21 06:09:52 EDT 2011
Hi,
It sounds like you want to SIP trunk your asterisk to SPCE for
inbound/outbound service from SPCE to Asterisk. If so, your asterisk
configuration looks incorrect. Asterisk should be SIP trunk to your SPCE,
looks like you have added SPCE as a user. Try the below (may need tweak for
your specific application).
Sip.conf
[general]
context = incoming
allowexternaldomains = yes
[sipwise.mydomain.com]
type = friend
qualify = no
host = sipwise.mydomain.com
secret = 0123456789
fromuser = spce868292965
insecure = port,invite
disallow = all
call-limit = 1
allow = g729,ulaw
outboundproxy = sipwise.mydomain.com
Extensions.conf
[incoming]
exten => _34868xxxxxx,1,Playback(welcome)
exten => _34868xxxxxx,2,Dial(SIP/201)
[from-nixus]
include => outgoing
[from-local]
include => outgoing
[outgoing]
exten => _X.,1,Set(CALLERID(number)=34868292965)
exten => _X.,2,Dial(SIP/34${EXTEN}@sipwise.mydomain.com)
From: spce-user-bounces at lists.sipwise.com
[mailto:spce-user-bounces at lists.sipwise.com] On Behalf Of Sébastien Cramatte
Sent: Thursday, April 07, 2011 3:35 PM
To: spce-user at lists.sipwise.com
Subject: [Spce-user] SPCE and Asterisk
Hello,
¿ Does anyone can give me some clue about howto setup SPCE with an external
Asterisk ?
I've got an SPCE server configured with 5 DDI and public SIP trunk.
With I can receive and make calls without issue.
In parallel I've got an asterisk 1.6 with 10 LAN extensions.
I want to bind SPCE with asterisk to route inbound call to 34868xxxxxx to
Asterisk and allow Asterisk to make outbound call via SPCE.
PSTN <--> SPCE (34868xxxxxx) <--> ASTERISK (ext. 200-210)
I've been able to route inbound call and place call to local spce registered
users.
But unfortunately I can't place any outbound calls to PSTN gateways.
Currently I've create a SPCE subscriber with 34868292965 and sip username
spce868292965
And configured it in Asterisk SIP.conf
---- sip.conf ---
...
[200]
type=friend
qualify=yes
host=dynamic
context=from-local
secret=01234
insecure=port,invite
[201]
type=friend
qualify=yes
host=dynamic
context=from-local
secret=01234
insecure=port,invite
[spce868292965]
type=friend
qualify=yes
host=sipwise.mydomain.com
context=default
callerid=868292965
secret=0123456789
fromuser=spce868292965
fromdomain=sipwise.mydomain.com
insecure=port,invite
call-limit=1
outboundproxy=sipwise.mydomain.com
---- extensions.conf ---
[default]
exten => _s,1,Playback(welcome)
exten => _s,2,Dial(SIP/201,120)
[from-nixus]
include => outgoing
[outgoing]
exten => _X.,1,Set(CALLERID(number)=34868292965)
exten => _X.,2,Dial(SIP/34${EXTEN}@sipwise.mydomain.com
<mailto:EXTEN%7D at sipwise.mydomain.com> )
----
Thank you for your help
Best regards
_____
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1498/3523 - Release Date: 03/22/11
Internal Virus Database is out of date.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20110421/f9359b10/attachment-0001.html>
More information about the Spce-user
mailing list