In reply to CBEYOND with asterisk 1.6:
This is trunk configuration:
Trunk Name: cbeyond
CID option block foreign CIDs
username=main number
type=peer
srvlookup=no
secret=
qualify=yes
;outboundproxy=sip-roxy.chi0.cbeyond.net
insecure=port,invite
dtmfmode=inband
dtmf=auto
host=sipconnect.chi0.cbeyond.net
fromdomain=sipconnect.chi0.cbeyond.net
disallow=all
context=from-pstn
canreinvite=yes
allow=ulaw
user context main DID
user details:
type=peer
secret=
qualify=yes
dtmfmode=inband
dtmf=auto
disallow=all
allow=ulaw
register string:
main number:password@cbeyond/main number
INBOUND ROUTE: very simple
DID NUMBER: 10 digits that belongs to us
SET destination whatever ....
If we called other number than main it is still redirected to main IVR as main number because of that:
-- Executing [MAINNUMBER@from-pstn:1] Set("SIP/cbeyond-0000001a", "__FROM_DID=MAINNUMBER") in new stack - if we used B number it should be:
-- Executing [MAINNUMBER@from-pstn:1] Set("SIP/cbeyond-0000001a", "__FROM_DID=B number") in new stack but ALWAYS shows MAIN NUMBER