|
@@ 748-753 (lines=6) @@
|
| 745 |
|
redirect(base_url() . 'freeswitch/fssipprofile_add/'); |
| 746 |
|
exit; |
| 747 |
|
} |
| 748 |
|
if(preg_match('/\s/',$sipprofile_data['name'])) |
| 749 |
|
{ |
| 750 |
|
$this->session->set_flashdata('astpp_notification', 'SIP Profile name must not have any space!'); |
| 751 |
|
redirect(base_url() . 'freeswitch/fssipprofile_add/'); |
| 752 |
|
exit; |
| 753 |
|
} |
| 754 |
|
if(!preg_match('/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\z/', $sipprofile_data['sip_ip'])) |
| 755 |
|
{ |
| 756 |
|
$this->session->set_flashdata('astpp_notification', 'SIP IP must be proper!'); |
|
@@ 754-759 (lines=6) @@
|
| 751 |
|
redirect(base_url() . 'freeswitch/fssipprofile_add/'); |
| 752 |
|
exit; |
| 753 |
|
} |
| 754 |
|
if(!preg_match('/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\z/', $sipprofile_data['sip_ip'])) |
| 755 |
|
{ |
| 756 |
|
$this->session->set_flashdata('astpp_notification', 'SIP IP must be proper!'); |
| 757 |
|
redirect(base_url() . 'freeswitch/fssipprofile_add/'); |
| 758 |
|
exit; |
| 759 |
|
} |
| 760 |
|
$sipprofile_data['id']=''; |
| 761 |
|
$check_authentication = $this->freeswitch_model->profile_authentication($sipprofile_data); |
| 762 |
|
if ($check_authentication->num_rows == 0) { |