I have put the calltest.js in /usr/local/freeswitch/scripts and changed sofia to openzap/default/1001@192.168.1.2 in the coding and i got the error:
Error:
2008-09-22 10:13:26 [ERR] switch_core_session.c:249 switch_core_session_outgoing_channel() Could not locate channel type openzap
2008-09-22 10:13:26 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [openzap] cause: [CHAN_NOT_IMPLEMENTED]
2008-09-22 10:13:26 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [openzap/default/1001@192.168.1.2]
2008-09-22 10:13:26 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method!
so i have changed that to sofia again.
As Anthony Minessale said, i have changed @ symbol to % like sofia/default/1001%192.168.1.2 in the coding.But i am getting the following error:
Error:
2008-09-22 10:18:08 [WARNING] mod_sofia.c:1949 sofia_outgoing_channel() Cannot locate registered user 1001@192.168.1.2
2008-09-22 10:18:08 [NOTICE] mod_sofia.c:2046 sofia_outgoing_channel() Close Channel N/A [CS_NEW]
2008-09-22 10:18:08 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [sofia] cause: [NO_ROUTE_DESTINATION]
2008-09-22 10:18:08 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [sofia/default/1001%192.168.1.2]
2008-09-22 10:18:08 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method!
Thanks.