Command ORIGINATE

Hi all, i am testing the command ORIGINATE, but dont work.
I try with my numebr and work, but when use the numbers for the work dont work

This is the extension

[dongle01]
exten => _AAA.,1,NoOP()
exten => _AAA.,n,Dial(dongle/dongle01/${EXTEN})

This is the call file

Channel: Local/AAABBBBBB@dongle01
MaxRetries: 2
RetryTime: 60
Extension: AAA
Context: dongle01
Priority: 1

It is right or there is the wrong?

What are you actually trying… to do?

I want call the number AAABBBBBB with specific dongle or sip.

The problem isn’t that part, but that the B leg of the Originate a 3 digit extension, when the minimum length allowed by the dialplan is 4 digits.

And once dialed what should it do?

This is correct?
Extension: AAAB

Unlikely, as I believe that chan_dongle only supports one call at a time. Note that chan_dongle appears to be completely unsupported.

I think there are fundamental misunderstandings here, but without knowing what you really want to achieve, it is difficult to come up with the right solution.

I want use the call file or cli for originate the call to N numbers.

I try this and work

[totest]
exten => _39.,1,NoOP()
exten => _39.,n,Dial(dongle/r0/${EXTEN:2},60)
asterisk -rx "channel originate Local/39XXXXXXXXXX@totest extension 39@totest"

This work and i try to my phone
But when change the number and the extension dont work.

i try with 4 digits but dont work

This is the console

    -- Called AAABBBBBB@dongle01
    -- Executing [AAABBBBBB@dongle01:1] NoOp("Local/AAABBBBBB@dongle01-00000005;2", "") in new stack
    -- Executing [AAABBBBBB@dongle01:2] Dial("Local/AAABBBBBB@dongle01-00000005;2", "dongle/dongle01/AAABBBBBB") in new stack
    -- Called dongle/dongle01/AAABBBBBB
    -- Dongle/dongle01-0100000003 is making progress passing it to Local/AAABBBBBB@dongle01-00000005;2
    -- Local/AAABBBBBB@dongle01-00000005;1 is making progress
    -- Dongle/dongle01-0100000003 answered Local/AAABBBBBB@dongle01-00000005;2
    -- Local/AAABBBBBB@dongle01-00000005;1 answered
    -- Channel Dongle/dongle01-0100000003 joined 'simple_bridge' basic-bridge <d4523b84-38bb-489f-a2f7-831cedce7764>
    -- Channel Local/AAABBBBBB@dongle01-00000005;2 joined 'simple_bridge' basic-bridge <d4523b84-38bb-489f-a2f7-831cedce7764>
    -- Channel Local/AAABBBBBB@dongle01-00000005;2 left 'simple_bridge' basic-bridge <d4523b84-38bb-489f-a2f7-831cedce7764>
  == Spawn extension (dongle01, AAABBBBBB, 2) exited non-zero on 'Local/AAABBBBBB@dongle01-00000005;2'
    -- Channel Dongle/dongle01-0100000003 left 'simple_bridge' basic-bridge <d4523b84-38bb-489f-a2f7-831cedce7764>

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