[client]
; Make sure to include inbound prior to outbound because the _NXXNXXXXXX handler will match the incoming call and create a loop
include => voipms-inbound-client
include => voipms-outbound-client
[voipms-outbound-client]
exten => _1NXXNXXXXXX,n,Dial(PJSIP/{EXTEN}@voipms,100,U(sub-announcement-client)
exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,n,Dial(PJSIP/{EXTEN}@voipms,100,U(sub-announcement-client))
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(PJSIP/{EXTEN}@voipms,100,U(sub-announcement-client))
exten => _011.,n,Hangup()
exten => _00.,1,Dial(PJSIP/{EXTEN}@voipms,100,U(sub-announcement-client))
exten => _00.,n,Hangup()
[voipms-inbound-client]
;exten => 8003333222,1,Answer() ;your DID
exten => 4379718586,1,Answer()
same => n,Wait(1)
same => n,Playback(client)
[sub-announcement-client]
exten = s,1,NoOp()
same = n,Wait(1)
same = n,Playback(client)
same = n,Return()
This is what all my contexts basically look like right now, with “client” replaced with the name of the client. Where in this would it decide the trunk to use?