Closed GoogleCodeExporter closed 9 years ago
I guess your sip server is configured in CSipSimple with a fully qualified
domain name, isn't it?
However your sip server announce itself as being a simple IP 192.168.4.1.
Besides it probably does not use the already opened register socket. And the
call comes probably directly either from the remote party or from the asterisk
without using the register socket.
Anyway, you are in a situation that should not happen with a sip server that
try to call the registered contact and *not* the contact directly.
So the application consider this call as a call that comes from anywhere but
not your asterisk sip account.
And as you already said, and as suggested by logs, in this case filtering rule
will not match.
I could add a special entry for local account filtering, however an easier way
is to create a "Local" account (using corresponding wizard). And use it to set
filter on it.
In this case, as your sip server directly call the local account of the sip
client, csipsimple will detect that it comes from a known account (the local
account), and apply local account filtering rules.
Let me know how it goes with this solution but I think it will help.
If you don't want to create the local account, the other solution would be to
configure asterisk server so that it send the invite to the sip client a way
the sip client detect the fact it comes from this server.
Original comment by r3gis...@gmail.com
on 26 Apr 2011 at 12:56
Just to let you know ( and maybe can be usefull for others in future ), using a
local account won't solve the issue. Anyway, i found a way to make it working
as expected: using an expert account with contact rewrite disabled and make
asterisk side account force the nat helper to prevent calling loops it work.
Thanks.
I've written a patch that add two little features i need as 2 new filters:
1- auto-answer with speaker enabled and remaining in background ( usefull to
make callback from a website with a video you won't cover, in my case for a SIP
based video citophone )
2- open an url if a specified callerid send it as unique body of a MESSAGE sip
msg
Can those 2 be usefull and maybe if i send those features they can be added to
trunk?
Original comment by antanisa...@gmail.com
on 26 Apr 2011 at 2:40
Yes of course you'll be welcome :).
You can send it to developer mailing list or directly to me :).
Original comment by r3gis...@gmail.com
on 26 Apr 2011 at 3:16
Original issue reported on code.google.com by
antanisa...@gmail.com
on 26 Apr 2011 at 12:32