ettoreleandrotognoli / python-ami

Python AMI Client
BSD 3-Clause "New" or "Revised" License
107 stars 66 forks source link

Pass multiple variables #33

Closed joaomval closed 5 years ago

joaomval commented 5 years ago

Hello, can you help me me passing multiple variables to originate?

I have tried multiple ways without sucess:

adapter.Originate(
            Channel='SIP/' + destination,
            Async='True',
            Context='demo-menu',
            Extension='s',
            Variable='destination=dest-message=mensagem'

in this case the variable destinations is set with the value "dest-message=mensagem" the same happens if I use |

adapter.Originate( Channel='SIP/' + destination, Async='True', Context='demo-menu', Extension='s', Variable='message=' + message, Variable='destination=' + destination ) in this case python gives error because of duplicated key (Variable)

what should I do? Thanks.