I have a kamailio load balancing requests across 2 Asterisk Servers, and all is working well.
Only problem now is when utilizing feature codes to look to listen into calls using the chanspy application I am having issues.
I am passing calls to *2222 into Asterisk, where an IVR answers the call, then sends an INVITE back to kamailio to check to see if the extension I want to listen into is in an active call (hash table), and the call will then be forwarded to the Asterisk in question and chanspy applied so it can be listened to.
The problem I have is when I send an INVITE from Asterisk Server, and then kamailio sends an INVITE back to the same Asterisk Server I get the following failure in asterisk console;
Not accepting call completion offers from call-forward recipient
2015-07-14 10:49:38] NOTICE: app_dial.c:901 do_forward: Not accepting call completion offers from call-forward recipient Local/*33331022-MAGNORTH13@from-outside-00000001;1
[2015-07-14 10:49:38] NOTICE: chan_local.c:973 local_call: No such extension/context *33331022-MAGNORTH13@from-outside while calling Local channel
[2015-07-14 10:49:38] NOTICE: app_dial.c:1003 do_forward: Forwarding failed to dial ‘Local/*33331022-MAGNORTH13@from-outside’
Has anyone configured chanspy to work across multiple servers with kamailio in the mix?
And also is there a work around for the above errors, when sending INVITES in and out of an Asterisk Server?