From-anveo dialplan

I have a SIP account with anveo, but how do I receive inbound calls:

dur*CLI> dialplan show from-anveo
[ Context 'from-anveo' created by 'pbx_config' ]
  '_X.' =>          1. NoOp(From Anveo ${EXTEN})                  [pbx_config]
                    2. NoOp()                                     [pbx_config]

something like:

[from-anveo]
exten => _X.,1,NoOp(From Anveo ${EXTEN})
exten => _X.,n,Dial(SIP/thufir,20)

provided that thufir is registered in sip.conf?

all settings so far:

durCLI>
dur
CLI>
durCLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
anveo/1234567890 123.123.123.123 Auto (No) No 5010 OK (41 ms)
1 sip peers [Monitored: 1 online, 0 offline Unmonitored: 0 online, 0 offline]
dur
CLI>
durCLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
sip.anveo.com:5010 N 1234567890 165 Registered Wed, 04 Jan 2017 15:09:55
1 SIP registrations.
dur
CLI>
dur*CLI> sip show peer anveo

  • Name : anveo
    Description :
    Secret :
    MD5Secret :
    Remote Secret:
    Context : from-anveo
    Record On feature : automon
    Record Off feature : automon
    Subscr.Cont. :
    Language :
    Tonezone :
    AMA flags : Unknown
    Transfer mode: open
    CallingPres : Presentation Allowed, Not Screened
    Callgroup :
    Pickupgroup :
    Named Callgr :
    Nam. Pickupgr:
    MOH Suggest :
    Mailbox :
    VM Extension : asterisk
    LastMsgsSent : 0/0
    Call limit : 0
    Max forwards : 0
    Dynamic : No
    Callerid : “” <>
    MaxCallBR : 384 kbps
    Expire : -1
    Insecure : port,invite
    Force rport : Auto (No)
    Symmetric RTP: No
    ACL : No
    DirectMedACL : No
    T.38 support : No
    T.38 EC mode : Unknown
    T.38 MaxDtgrm: 4294967295
    DirectMedia : Yes
    PromiscRedir : No
    User=Phone : No
    Video Support: No
    Text Support : No
    Ign SDP ver : No
    Trust RPID : No
    Send RPID : No
    Path support : No
    Path : N/A
    TrustIDOutbnd: Legacy
    Subscriptions: Yes
    Overlap dial : Yes
    DTMFmode : rfc2833
    Timer T1 : 500
    Timer B : 32000
    ToHost : sip.anveo.com
    Addr->IP : 123.123.123.123:5010
    Defaddr->IP : (null)
    Prim.Transp. : UDP
    Allowed.Trsp : UDP
    Def. Username: 1234567890
    SIP Options : (none)
    Codecs : (ulaw)
    Auto-Framing : No
    Status : OK (41 ms)
    Useragent :
    Reg. Contact :
    Qualify Freq : 60000 ms
    Keepalive : 0 ms
    Sess-Timers : Accept
    Sess-Refresh : uas
    Sess-Expires : 1800 secs
    Min-Sess : 90 secs
    RTP Engine : asterisk
    Parkinglot :
    Use Reason : No
    Encryption : No

durCLI>
dur
CLI> dialplan show
func_periodic_hook_context ael-builtin-h-bubble ael-default ael-demo
ael-dundi-e164 ael-dundi-e164-canonical ael-dundi-e164-customers ael-dundi-e164-local
ael-dundi-e164-lookup ael-dundi-e164-switch ael-dundi-e164-via-pstn ael-iaxprovider
ael-iaxtel700 ael-international ael-local ael-longdistance
ael-std-exten-ael ael-trunkint ael-trunkld ael-trunklocal
ael-trunktollfree chanvar default demo
from-anveo globals local parkedcalls
public to_anveo
dur*CLI> dialplan show from-anveo
[ Context ‘from-anveo’ created by ‘pbx_config’ ]
’_X.’ => 1. NoOp(From Anveo ${EXTEN}) [pbx_config]
2. NoOp() [pbx_config]

-= 1 extension (2 priorities) in 1 context. =-
durCLI>
dur
CLI> dialplan show to_anveo
[ Context ‘to_anveo’ created by ‘pbx_config’ ]
’_X.’ => 1. Set(CALLERID(number)=1234567890) [pbx_config]
2. Dial(SIP/anveo/${EXTEN}) [pbx_config]

-= 1 extension (2 priorities) in 1 context. =-
durCLI>
dur
CLI>

per:

http://www.anveo.com/faq.asp?code=sip_asterisk

Yes that should work, You have configured your sip.conf anveo peer to use the from-anveo context, Your logic for how to handle calls should then be in the [from-anveo] context.

1 Like

In this case there’s just one user, one SIP account – me. So, like me, the logic is simple :slight_smile:

If we make it more complex…how would I distinguish different phone numbers?

123 -> a
345 -> b

etc. where the numbers are ten digial North American numbers. The [from-anveo] would explicitly handle specific numbers and perhaps route them to specific SIP accounts? Then a catch for whatever falls through?

Yep you have it exactly.

Create extensions :slight_smile:

5205551234 -> Person 1

5205552345 -> Person 2

_X -> Catch All

1 Like