[OpenSER-Users] Sending Text Response from Openser to client

Iñaki Baz Castillo ibc at in.ilimit.es
Wed Feb 6 09:47:38 CET 2008


On Wednesday 06 February 2008 09:19:03 Ali Jawad wrote:
> I am using something like the below, I could be all wrong about this
>
>
> route[2]
> {
>         # pstn handling, simply route out to pstn.
>          xlog("L_INFO","rewritehostport to Splendor_VOIP_GW:5065");
>          sl_send_reply("Call Going To PSTN"); <===== I would like to
> send this to the Voip client display window.
>          sethostport("xx.xx.xx.xx");
>          route(1);
> }


sl_send_reply() should have "code" and "reason", for example:

  sl_send_reply("404", "Not found");
  sl_send_reply("302", "Moved temporaly");
  sl_send_reply("100", "Trying");

In your case I'd use:

  sl_send_reply("100", "Call Going To PSTN");

but obviously this is pure SIP, nothing says that your VoIP client will 
display the reason of a "100" reply.



-- 
Iñaki Baz Castillo
ibc at in.ilimit.es




More information about the Users mailing list