We are setting up On-Demand token delivery through Verizon's EMAG system, but run into this error while testing.
Error connecting to SMS Provider. HTTP Response from SMS Provider is [ PatternSyntaxException: Dangling meta character '*' near index 0 *.<statusCode>(.)</statusCode> ^ ].
The SMS Provider Configuration section
Has Base URL which we have confirmed with the vendor.
A certificate which has been confirmed valid.
The HTTP Method is [PUT] or [GET]
The Parameter section is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<AuthentXML xmlns="http://xml.emag.vzw.com:80/XMLsms/send?wsdl" version="1.0">
<header>
<tsoid>Auth_Sandbox</tsoid>
<application>SMSDelivery</application>
<account>$cfg.user</account>
<licensekey>$cfg.password</licensekey>
<asid>UNIQUE_SESSION_VALUE</asid>
</header>
<body>
<request>
<action>DataSession</action>
<data xmlns:dat="http://xml.emag.vzw.com:80/XMLsms/smrelay?wsdl">
<dat:phoneNumber>$msg.address</dat:phoneNumber>
<dat:namedData>
<dat:dataItem name="messageText">$msg.message</dat:dataItem>
</dat:namedData>
</data>
</request>
</body>
</AuthentXML>
Account information is all correctly instituted per vendor conformation.
Connection Timeout is default.
Success Response Code: is 0
Response Format: *.<statusCode>(.)</statusCode>
Any recommendation on setup would be appreciated.
<dat:phoneNumber>$msg.address</dat:phoneNumber>
Add + sign in front of the $ sign and see if it works.
<dat:phoneNumber>+$msg.address</dat:phoneNumber>