[Spce-user] SPCE and Asterisk

Sébastien Cramatte scramatte at gmail.com
Thu Apr 7 18:35:22 EDT 2011


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)

----

Thank you for your help


Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20110408/7e5bb157/attachment.html>


More information about the Spce-user mailing list