RouteSipToGsmPort
This command creates or deletes rule for routing incoming SIP call from the specified SIP device on the specified GSM Port.
SIP device is identified with its IP address, port_index parameter defines which GSM port will be used for outgoing calls. sip_device_ip_address and port_index may have value "ANY" which means that incoming SIP call will be accepted from ANY SIP device and will be routed on ANY available GSM port. Last optional parameter (default : "ADD") defines if rule will be added ("ADD") or removed ("REMOVE").
Mobile Robot listens (both UDP and TCP) on default SIP port 5060. Listening port is configurable from registry (registry key services/gsmrobotd/parameters/sip, value ListeningPort). The RTP Flow is also routed both way and G.711 is supported. The RFC 2833 (DTMF support) is also supported from SIP to GSM only.
COMMAND
Command | Line Arguments | Returns |
---|---|---|
RouteSipToGsmPort | SipDeviceAddress, PortIndex, Command (ADD/REMOVE) | In the case of error, Error Code |
OUTPUT
Command status in the following format:
"%s\n", command_status
EXAMPLE
~# RouteSipToGsmPort 10.2.5.125 1
OK
~# RouteSipToGsmPort 10.2.5.125 1 REMOVE
OK
~# RouteSipToGsmPort ANY 1
OK
~# RouteSipToGsmPort 10.2.5.125 ANY
OK
~# RouteSipToGsmPort ANY ANY
OK
~# RouteSipToGsmPort ANY ANY REMOVE
OK