Zoiper->Freepbx<-voip.ms

I am needing help with setting up sms capability with voip.ms to freepbx using a softphone zoiper. I have already tried to follow the official voip ms guide

I have attached code for what i have so far. I am baffled

This is code from extensions_custom.conf

[sms-in]
exten => _.,1,NoOp(Inbound SMS dialplan invoked)
exten => _.,n,NoOp(To ${MESSAGE(to)})
exten => _.,n,NoOp(From ${MESSAGE(from)})
exten => _.,n,NoOp(Body ${MESSAGE(body)})
exten => _.,n,Set(NUMBER_TO=${MESSAGE_DATA(X-SMS-To)})
exten => _.,n,Set(HOST_TO=${CUT(MESSAGE(to),@,2)})
exten => _.,n,Set(ACTUAL_FROM=${MESSAGE(from)})
exten => _.,n,Set(ACTUAL_TO=pjsip:${NUMBER_TO}@${HOST_TO})
exten => _.,n,MessageSend(${ACTUAL_TO},${ACTUAL_FROM})
exten => _.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
exten => _.,n,Hangup()

[sms-out]
exten => _.,1,NoOp(Outbound Message dialplan invoked)
exten => _.,n,NoOp(To ${MESSAGE(to)})
exten => _.,n,NoOp(From ${MESSAGE(from)})
exten => _.,n,NoOp(Body ${MESSAGE(body)})
exten => _.,n,Set(NUMBER_FROM=${CUT(CUT(MESSAGE(from),@,1),:,2)})
exten => _.,n,Set(NUMBER_TO=${CUT(CUT(MESSAGE(to),@,1),:,2)})
exten => _.,n,Set(ACTUAL_FROM="${NUMBER_FROM}" sip:[email protected]) ; Replace VOIPMS_ACCOUNT and VOIPMS_SERVER_NAME with their corresponding values
exten => _.,n,Set(ACTUAL_TO=pjsip:VOIPms/sip:${NUMBER_TO}@chicago4.voip.ms)      ; Replace TRUNK_NAME and VOIPMS_SERVER_NAME with their corresponding values
exten => _.,n,MessageSend(${ACTUAL_TO},${ACTUAL_FROM})
exten => _.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
exten => _.,n,Hangup()

The code below is in pjsip.endpoint_custom_post.conf


[200](+)         ; Replace NNNNNNNNNN with the corresponding PJSIP extension name
message_context=sms-out


Not sure if this has the voip.ms integration you are looking for but might be worth looking at.

I looked into it and it looks like it does not support voip.ms
i do have alot deposited in voip ms and they do not refund

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.