sipunit rejecting rejecting Messages - mobicents

I am using SipUnit 2.0 for my framework and currently I am stuck with the following. Would appreciate any help.
As to my knowledge, sipUnit creates sipphone, with address in the format of user#domain, and the stack filters out the incoming messages to the sipphone based on the Request URI or the TO address with its contact address.
But my current scenario is that the sipUnit Stack is receiving INVITE messages in the format INVITE sip:domain:port
Is there any way to work around it?
Thanks and regards,
Nilim

Related

how to create realtime webmail reader in php

Hope you all are doing well. I came up with very important question. My task was to creating an email box using Laravel. I did it successfully using Imap. My problem is related efficieny and performance. Currently i am sending request after every 20 seconds to the server and getting new email messages. I dont want to send requests to server. Is there any way to make it real time. For example, my webmail server should inform me that he has received new emails and i would display new messages in my inbox in laravel application.
I am not bound to php. any framework and progamming language are acceptable. Need solution just.
Any help would be highly appreciated. Thanks in advance.

What kind of requests do e-mail clients send when retrieving e-mails?

I am working on an IMAP implementation using AWS API gateways in which I have to retrieve e-mails from a S3-bucket and get them into an e-mail client somehow, but I've not been able to find which requests those clients send when you try to retrieve e-mails from another source. My guess is GET-requests, but I'm honestly not even sure if it's REST-requests that are being sent. Does anyone have an idea?
Thanks in advance!

Strophe XMPP receiving only stanzas with full JID

I'm creating a web XMPP client to connect to an XMPP ejabberd server and I have the following problem:
My client can send messages just alright.
The problem is when I try to receive messages. I only receive stanzas directed to my full JID, that is including the resource I am using, so I don't receive stanzas directed to my user#domain but I do receive stanzas sent to my user#domain/resource.
This is not an ideal situation since the other clients I need to communicate with work with bare JIDs.
I have little experience with Strophe so maybe someone with more experience can illustrate what I'm doing wrong. Thanks in advance!
Have you checked if your xmpp server offers a setting to route messages to all resources?
OpenFire offers a property named route.all-resources which will forward messages to all resources for a person.
Also, you may want to adjust the priority of your resource, as only the resource with the highest priority will have the message sent to it (if the message does not specify a resource).
Here is an example of setting your resource priority to 10 with Strophe.js
connection.send($pres().c("priority").t("10"));
This article describes the intended behaviour, and also this answer from a related question may help you understand what's happening.

Accept all incoming email, send messages from multiple identities

I am working on a research project that has to do with responding to spam. I want to implement the following functionality:
1. A mail server that saves all incoming email messages in an easily accessable form - hard drive, database, etc. For example, if someone sends a message to peter#domain.com or akjfhasfkjf#domain.com, this message should be accepted and saved.
2. I should be able to reply to these messages from the same server/account. E.g. a message gets delivered to peter#domain.com, so the spammer receives a response from the same address.
Any suggestions on any software / packages that can help me with that? If I can interface with them with Java or Python, it would be even better.
Thanks.
you could run a postfix mailserver with fuglu,a python framework for mail filters. it would be very simple to write a plugin that does what you want.
but remember: responding to spam is in most cases a bad idea. the sender address is almost always forged, so the reply goes some innocent victim instead of the spammers inbox and your server could be blacklisted for backscattering.

how to send SMS/Email from an application

first of all thanks a lot to all of you for past valuable suggestions,we are creating an application where on certain events wants to send email/sms to specified phone number we already tried with the openURL call but it opens the existing inbuilt email/sms application of the iphone.Our requirement is to send sms/email without opening the inbuilt iphone email/sms application is it possible if yes what are the supported API's to achieve it.
thanks in advance.
You can do this with a short code by way of a SMS/MMS aggregator like OpenMarket or as another person has posted you can use the SMS Gateway but this requires the knowledge of the end users carrier name. If your replying to a SMS on the iPhone I believe you can use the API which in turn would give you the carrier id of the incoming SMS message you would like to reply to.
Maybe you could explain your problem a little more so we can better grasp your question.
You can see my other answer from a similar question. Basically you can send an email to the phone if you know the provider. The provider will then format the email into a SMS message.