Recently, I've been having issues with the URIs returned from e.164.org and 
toll free calls. It seems that the URIs that are returned from ENUMQUERY and 
ENUMRESULT are no longer the proper numbering schemes that the poviders use.

I've been using the following [enum] template in my outbound route for quite 
some time with great success until recently.

[enum](!)
exten => _X.,n,Set(ARRAY(i,id)=1,${ENUMQUERY(+${EXTEN},ALL,e164.org)})
exten => _X.,n,Set(max=${ENUMRESULT(${id},getnum)})
exten => _X.,n,While($["${i}" <= "${max}"])
exten => _X.,n,Set(uri=${ENUMRESULT(${id},${i})})
exten => _X.,n,Exec(${IF($["${uri:0:3}" = 
"sip"]?Dial(SIP/${uri:4},40,KL(7200000:120000)T):NoOp(ENUM URI is not of type 
SIP))})
exten => _X.,n,Exec(${IF($["${uri:0:4}" = 
"iax2"]?Dial(IAX2/${uri:5},40,KL(7200000:120000)T):NoOp(ENUM URI is not of 
type IAX2))})
exten => _X.,n,Set(i=${MATH(${i}+1,i)})
exten => _X.,n,EndWhile()

The console results are as follows.  Each of sip-happens, siptollfreegateway, 
and voipmich return either a 404 or 403 error.

I'm wondering if their ENUM records are old and no longer represent how 
callers should reach their servers.

  == ast_get_enum(num='+18002662278', tech='ALL', suffix='e164.org', 
options='', record=1                                                            
          
  == ENUM options(): pos=1, options='0'                                         
                                                                               
  == ast_get_enum() profiling: FAIL, 8.7.2.2.6.6.2.0.0.8.1.e164.org, 405 ms     
                                                                               
    -- Executing [18002662...@outbound:3] Set("SIP/aastra-sip1-0c004d98", 
"ARRAY(i,id)=1,0") in new stack
    -- Executing [18002662...@outbound:4] Set("SIP/aastra-sip1-0c004d98", 
"max=3") in new stack
    -- Executing [18002662...@outbound:5] While("SIP/aastra-sip1-0c004d98", 
"1") in new stack
    -- Executing [18002662...@outbound:6] Set("SIP/aastra-sip1-0c004d98", 
"uri=sip:164164180018002662...@sip.tollfreegateway.com") in new stack
    -- Executing [18002662...@outbound:7] Exec("SIP/aastra-sip1-0c004d98", 
"Dial(SIP/164164180018002662...@sip.tollfreegateway.com,40,KL(7200000:120000)T)")
 
in new stack
    -- Limit Data for this call:
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP TOS bits 136
  == Using SIP VRTP CoS mark 4
  == Using UDPTL TOS bits 184
  == Using UDPTL CoS mark 5
    -- Called 164164180018002662...@sip.tollfreegateway.com
    -- Got SIP response 480 "Temporarily Unavailable" back from 204.8.45.222
    -- SIP/sip.tollfreegateway.com-140f2228 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [18002662...@outbound:8] Exec("SIP/aastra-sip1-0c004d98", 
"NoOp(ENUM URI is not of type IAX2)") in new stack
    -- Executing [18002662...@outbound:9] Set("SIP/aastra-sip1-0c004d98", 
"i=2") in new stack
    -- Executing [18002662...@outbound:10] EndWhile("SIP/aastra-
sip1-0c004d98", "") in new stack
    -- Executing [18002662...@outbound:5] While("SIP/aastra-sip1-0c004d98", 
"1") in new stack
    -- Executing [18002662...@outbound:6] Set("SIP/aastra-sip1-0c004d98", 
"uri=sip:164164180018002662...@tollfree.sip-happens.com") in new stack
    -- Executing [18002662...@outbound:7] Exec("SIP/aastra-sip1-0c004d98", 
"Dial(SIP/164164180018002662...@tollfree.sip-
happens.com,40,KL(7200000:120000)T)") in new stack
    -- Limit Data for this call:
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP TOS bits 136
  == Using SIP VRTP CoS mark 4
  == Using UDPTL TOS bits 184
  == Using UDPTL CoS mark 5
    -- Called 164164180018002662...@tollfree.sip-happens.com
    -- SIP/tollfree.sip-happens.com-140f3668 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [18002662...@outbound:8] Exec("SIP/aastra-sip1-0c004d98", 
"NoOp(ENUM URI is not of type IAX2)") in new stack
    -- Executing [18002662...@outbound:9] Set("SIP/aastra-sip1-0c004d98", 
"i=3") in new stack
    -- Executing [18002662...@outbound:10] EndWhile("SIP/aastra-
sip1-0c004d98", "") in new stack
    -- Executing [18002662...@outbound:5] While("SIP/aastra-sip1-0c004d98", 
"1") in new stack
    -- Executing [18002662...@outbound:6] Set("SIP/aastra-sip1-0c004d98", 
"uri=sip:180018002662...@tf.voipmich.com") in new stack
    -- Executing [18002662...@outbound:7] Exec("SIP/aastra-sip1-0c004d98", 
"Dial(SIP/180018002662...@tf.voipmich.com,40,KL(7200000:120000)T)") in new 
stack
    -- Limit Data for this call:
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP TOS bits 136
  == Using SIP VRTP CoS mark 4
  == Using UDPTL TOS bits 184
  == Using UDPTL CoS mark 5
    -- Called 180018002662...@tf.voipmich.com
    -- SIP/tf.voipmich.com-140f2228 is circuit-busy

-- 
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to