originate call via SIP trunk and asterisk manager

ikjeft01
Joined: Sat 03 of Apr, 2010

Re: originate call via SIP trunk and asterisk manager

Posted:Sat 03 of Apr, 2010 (00:41 UTC)
this is an example of a call that WORKS from my sip phone to a mitel extension:
Dial("IAX2/1091-7243", "SIP/Mitel/4035|300|") in new stack

using the same syntax (SIP/Mitel/4035) fails when using manager
ikjeft01
Joined: Sat 03 of Apr, 2010

originate call via SIP trunk and asterisk manager

Posted:Sat 03 of Apr, 2010 (00:32 UTC)
i have asterisk 1.4 installed. it is connected to a mitel pbx via a SIP trunk. i can call from mitel extension to asterisk extension, and from asterisk extension to mitel extension. i can call from asterisk extension to an outside line.

i am attempting to use asterisk manager to start a call and am experiencing some issues. I can start a call to an asterisk extension, using "Local/1234" (where "1234" is a local extension). i can NOT seem to get outbound dialing, trhough the mitel, working, using the syntax "Technology/trunk/number_to_dial".

The SIP trunk is defined in sip_additional.conf with a name of "Mitel", but trying "SIP/Mitel/number_to_dial" fails to create a call (seems to time out). the trunk shows in freepbx as SIP/Mitel (just as there is a ZAP/g0 trunk).

The SIP outbound route is defined in extensions.conf in a context [outrt-001-Mitel300ICP], and i CAN make outbound calls using "Local/number_to_dial@outrt-001-Mitel3300ICP". However, there are call control issues (seems that manager thinks the call is "answered" as soon as the context is entered).

I'm sure it's just a matter of knowing which word to use for technology and channel. Can somebody please tell me where i can find the correct name of the channel, or if there is some other syntax i should be using?

this is an example of a call that WORKS from my sip phone to a mitel extension:
Dial("IAX2/1091-7243", "SIP/Mitel/4035|300|") in new stack

using the same syntax (SIP/Mitel/4035) fails when using manager

this works in the CLI:
gramoDEV*CLI> originate SIP/Mitel/4035 extension 1093

as does:
gramoDEV*CLI> originate SIP/Mitel/918005551212 extension 1093

HOWEVER, in the first case 1093 is dialed AFTER 4035 picks up, and in the second case 1093 is dialed almost immediately while the call is being set up to 918005551212.