[Asterisk-Users] Enumlookup and Asterisk

Daniel Concepcion dani at danielcp.net
Thu Feb 19 10:15:01 MST 2004


Hi People, 

I have the following problem using enum between two asterisk servers. 

I have the following map: 

AS5300 -> Asterisk2 -> Asterisk1 -> Cisco 7940
When one call entry from as5300 go to Asterisk2 
(Asterisk2 do the enum and forward to Asterisk1)
Then the phone ring, I answer all works wellm then I hangup in the phone and the phone
ring again, I answer all ok, I hangup again and the call finish !!
:)

Any idea about this issue? 

extension.conf in Asterisk2: 
exten => _.,1,EnumLookup(${EXTEN})
exten => _.,2,Dial(${ENUM},,g)
exten => _.,3,Hangup

Relevant extension.conf in Asterisk1

exten => 911830204,1,Ringing
exten => 911830204,2,Answer
exten => 911830204,3,Dial(SIP/20104,30,r)
exten => 911830204,4,Hangup

Log in Asterisk2:

    -- Executing NoOp("SIP/-08122e70", "") in new stack
    -- Executing Goto("SIP/-08122e70", "from-sip-post|911830204|1") in new stack
    -- Goto (from-sip-post,911830204,1)
    -- Executing EnumLookup("SIP/-08122e70", "911830204") in new stack
    -- Executing Dial("SIP/-08122e70", "SIP/911830204 at asterisk1||g") in new stack
    -- Called 911830204 at asterisk1
    -- SIP/asterisk1-7e3c is ringing
    -- SIP/asterisk1-7e3c answered SIP/-08122e70
    -- Attempting native bridge of SIP/-08122e70 and SIP/asterisk1-7e3c
    -- Executing Hangup("SIP/-08122e70", "") in new stack
  == Spawn extension (from-sip-post, 911830204, 3) exited non-zero on 'SIP/-08122e70'
    -- Executing EnumLookup("SIP/-08122e70", "h") in new stack
    -- Executing Dial("SIP/-08122e70", "SIP/911830204 at asterisk1||g") in new stack
    -- Called 911830204 at asterisk1
    -- SIP/asterisk1-0d92 is ringing
    -- SIP/asterisk1-0d92 answered SIP/-08122e70
    -- Attempting native bridge of SIP/-08122e70 and SIP/asterisk1-0d92
    -- Executing Hangup("SIP/-08122e70", "") in new stack
  == Spawn extension (from-sip-post, h, 3) exited non-zero on 'SIP/-08122e70'



Log in Asterisk1:

    -- Executing NoOp("SIP/-4081ba88", "") in new stack
    -- Executing Goto("SIP/-4081ba88", "from-sip-post|911830204|1") in new stack
    -- Goto (from-sip-post,911830204,1)
    -- Executing Ringing("SIP/-4081ba88", "") in new stack
    -- Executing Answer("SIP/-4081ba88", "") in new stack
    -- Executing Dial("SIP/-4081ba88", "SIP/20104|30|r") in new stack
    -- Called 20104
    -- SIP/20104-50f9 is ringing
    -- SIP/20104-50f9 answered SIP/-4081ba88
    -- Attempting native bridge of SIP/-4081ba88 and SIP/20104-50f9
  == Spawn extension (from-sip-post, 911830204, 3) exited non-zero on 'SIP/-4081ba88'
    -- Executing NoOp("SIP/-4081ba88", "") in new stack
    -- Executing Goto("SIP/-4081ba88", "from-sip-post|911830204|1") in new stack
    -- Goto (from-sip-post,911830204,1)
    -- Executing Ringing("SIP/-4081ba88", "") in new stack
    -- Executing Answer("SIP/-4081ba88", "") in new stack
    -- Executing Dial("SIP/-4081ba88", "SIP/20104|30|r") in new stack
    -- Called 20104
    -- SIP/20104-896e is ringing
    -- SIP/20104-896e answered SIP/-4081ba88
    -- Attempting native bridge of SIP/-4081ba88 and SIP/20104-896e
  == Spawn extension (from-sip-post, 911830204, 3) exited non-zero on 'SIP/-4081ba88'

regards,
Daniel



More information about the asterisk-users mailing list