Ami virtual extension

How to call “virtual extensions” using AMI?.

Action: Originate
Channel: SIP/422
Exten: 832323232323
Priority: 1

What do I need to write in “Channel”?

local/[email protected]
1 Like

local/[email protected] - not work

what I see on the console after a call from a sip phone :

    -- Executing [[email protected]:23] Dial("SIP/422-0000129b", "Local/[email protected]&Local/FMGL-2120169#@from-internal,22,HhTtrIM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
    -- Local/[email protected];1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [[email protected]:1] ExecIf("Local/[email protected];1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [[email protected]:2] NoOp("Local/[email protected];1", "Applying SIP Headers to channel Local/[email protected];1") in new stack
    -- Executing [[email protected]:3] Set("Local/[email protected];1", "TECH=Local") in new stack
    -- Executing [[email protected]:4] Set("Local/[email protected];1", "SIPHEADERKEYS=") in new stack
    -- Executing [[email protected]:5] While("Local/[email protected];1", "0") in new stack
    -- Jumping to priority 13
    -- Executing [[email protected]:14] Return("Local/[email protected];1", "") in new stack
  == Spawn extension (from-internal, 101, 1) exited non-zero on 'Local/[email protected];1'
    -- Local/[email protected];1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Local/FMGL-2120169#@from-internal-000005b2;1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [[email protected]:1] ExecIf("Local/FMGL-2120169#@from-internal-000005b2;1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack`

This is a partial log.

Post a full call trace using pastebin.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.