Hello!
I'm trying to send a call to an outside line means javascript.
When I turn the call over regexroute.conf - all good.
regexroute.conf
^\(.*\)$=sip/sip:\1;line=sipnet;caller;callername
When I turn the call via JavaScript - all bad.
message.caller = "0041817436";
message.line = "sipnet";
Channel.callJust("sip/sip:"+message.called); // or Channel.callJust("line/"+message.called);
I noticed a difference between calling through regexroute.conf via JavaScript:
regexroute.conf
INVITE sip:79041234567@sipnet.ru:5060 SIP/2.0
/*blablabla*/
From: <sip:0041817436@sipnet.ru:5060>;tag=289999931
/*blablabla*/
Call-ID: 982755624@sipnet.ru:5060
------
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 91.142.81.148:5060;rport=5060;branch=z9hG4bK687133507
From: <sip:0041817436@sipnet.ru:5060>;tag=289999931
To: <sip:79041234567@sipnet.ru:5060>
Call-ID: 982755624@sipnet.ru:5060
CSeq: 4 INVITE
Server: CommuniGatePro/6.0.4
Content-Length: 0
JavaScript
INVITE sip:79041234567@sipnet.ru:5060 SIP/2.0
/*blablabla*/
From: "701" <sip:0041817436@91.142.81.148>;tag=43446094
/*blablabla*/
Call-ID:
1389324428@91.142.81.148------
SIP/2.0 500 account has been moved to a remote system
Via: SIP/2.0/UDP 91.142.81.148:5060;rport=5060;branch=z9hG4bK632837736
From: "701" <sip:0041817436@91.142.81.148>;tag=43446094
To: <sip:79041234567@sipnet.ru:5060>;tag=6E04F49F
Call-ID:
1389324428@91.142.81.148CSeq: 4 INVITE
Server: CommuniGatePro/6.0.4
Content-Length: 0
Tell me please, what am I doing wrong?