Perhaps you could use something like this:
if (!lookup("location")) { lookup("aliases"); };
That means if there is no contact in location table (SIP phone is not registered, then the server will try to lookup in aliases table. The aliases table should rewrite the Request-URI to the PSTN gateway.
Jan.
On 08-12 07:54, Chen Youcheng wrote:
hello,
i try to give two contacts for a callee. One is sip contact and one is pstn contact. When the callee is off line,the call should be lead to pstn contact. I have done: serctl ul add yongcheng sip:017923435@gateway.de. sip contact is yongcheng@mydomain.de. I cannot finish the mapping from yongcheng@mydomain.de to 017923435@gateway.de. how can I do?
best regards
Yongcheng Chen
Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers