universe at truemetal.org Guest
|
Posted: Tue Feb 17, 2015 6:10 pm Post subject: [asterisk-users] How to route SIP provider without DID |
|
|
Am 17.02.2015 um 23:44 schrieb hbk:
Quote: | I'm struggling to separate inbound calls fro a SIP provider that does
not send DID.
I have tried .......sip.com/12345678 on register string
different context=from-no-did
Port not possible as only support 5060
|
You're right, this is always an annoying and confusing scenario. Here's
my sample for sipgate which works for separating inbound and outbound:
sip.conf:
register => user:pass@sipgate.de/sipgate-in
[sipgate-out]
type=friend
insecure=invite
nat=no
username=user
fromuser=user
fromdomain=sipgate.de
secret=pass
host=sipgate.de
qualify=no
canreinvite=no
dtmfmode=rfc2833
context=sipgate
extensions.conf:
[sipgate]
exten => sipgate-in,1,NoOp
exten => sipgate-in,n,Dial(SIP/priv)
(This is for incoming calls only)
And for my SIP hardphone which receives the calls from sipgate and dials
out via sipgate:
sip.conf:
[priv]
type=friend
secret=anotherpass
host=dynamic
nat=no
disallow=all
allow=ulaw
allow=alaw
canreinvite=no
context=sipgate-priv
[sipgate-priv]
exten => _X.,1,NoOp
exten => _X.,n,Dial(SIP/${EXTEN}@sipgate-out)
Good luck,
Markus
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|