LinkSys SPA-3000 and Asterisk.
Using TRIXBOX I make that port fxs (200 SIP number) can dial to fxo (Subscriber Information
- User ID: SipuraPSTN ).
In the FreePBX
Outbound Routes:
Route Name: 9_outside
Dial Patterns: 9|.
TrungSequence: Sip/SipuraPSTN
in Incoming Route
any DID / any CID
Set Destination - Core: 200<200>
in SIP Trunk - Trunk SIP/SipuraPSTN
Outgoing Settings -
Trunk Name: SipuraPSTN
PEER Details:
canreinvite=no
context=from-pstn
host=dynamic
nat=no
port=5061
secret=SipuraPSTN
type=peer
in sip_additional.conf:
[200]
username=OfficePhone
type=friend
secret=200
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
nat=never
mailbox=200@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=200 <200>
[SipuraPSTN]
type=peer
secret=SipuraPSTN
port=5061
nat=no
host=dynamic
context=from-pstn
canreinvite=no
in sip.conf:
[103]
host=dynamic
context=default
type=friend
username=CrazyOffice
nat=no
secret=55556666
callerid=crazy_office <103>
[230]
host=dynamic
context=default
type=friend
username=PAP2Line1
nat=no
secret=230
callerid=Pap2Line1 <230>
Now work, that: Numbers 230 and 103 can dial each other. 200 number can dial in the PSTN
line if press before numer 9.
Dial from town if call line that connected to fxo(PSTN) SPA-3000 at once ringing fxs
port(200 SIP numer).
Before that I make that can dial from SIP numbers 230 and 103 to 200. Now that dont worc.
Don’t know why. Just short hoot.
Give me please a way where to dig. What to do to make that SIP numbers can dial to PSTN line
to the city numbers(city numbers like 20399 and 995067084) just like place number 9 before
the city number.
And what to do when call from PSTN line go to *, it make a choise at what sip number dial.
How to attach a configs ?
Thanks !!