not able to send extra parameters
akshgods opened this issue · 1 comments
akshgods commented
using jaxl 3.
I want to send some extra parameters to xmpp server. but not getting those extra parameters in msg.
I'm trying with this method which is inside jaxl.php.
public function send_msg($to,$body,$sender_id,$id,$xmpp_msg_attribute,$thread=null, $subject=null) {
$msg = new XMPPMsg(
array(
'id'=>$id,
'sender_id'=>$sender_id,
'type'=>'normal',
'to'=>$to,
'from'=>$this->full_jid->to_string(),
'attributes'=> 'extra information',
),
$body,
$thread,
$subject
);
$this->send($msg);
}
but output sending without extra parameters:
<message xml:lang='en'
to='7070707070@localhost.com'
from='9696969696@localhost.com/jaxl#3090b93066351b9a90ebad79bb208745'
id='5b6137010b0bc'
xmlns='jabber:client'>
<body><p>check me</p></body>
</message>
I didn't found attributes , sender_id . i also tried changing attributes -> attrs.
anything i'm doing wrong here?
portcoweb commented
You also need to modify a constructor inside file named xmpp_msg.php inside xmpp folder